Package io.quarkus.maven
Class ExtensionDescriptorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.quarkus.maven.ExtensionDescriptorMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="extension-descriptor",
defaultPhase=PROCESS_RESOURCES,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
threadSafe=true)
public class ExtensionDescriptorMojo
extends org.apache.maven.plugin.AbstractMojo
Generates Quarkus extension descriptor for the runtime artifact.
Also generates META-INF/quarkus-extension.json which includes properties of the extension such as name, labels, maven coordinates, etc that are used by the tools.
- Author:
- Alexey Loubyansky
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJavaVersion(com.fasterxml.jackson.databind.node.ObjectNode extObject) voidexecute()Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}") protected org.apache.maven.project.MavenProject project
-
-
Constructor Details
-
ExtensionDescriptorMojo
public ExtensionDescriptorMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
addJavaVersion
public void addJavaVersion(com.fasterxml.jackson.databind.node.ObjectNode extObject)
-