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
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.maven.project.MavenProject
     

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addJavaVersion(com.fasterxml.jackson.databind.node.ObjectNode extObject)
     
    void
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)