Class 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
    • Field Detail

      • project

        @Parameter(defaultValue="${project}")
        protected org.apache.maven.project.MavenProject project
    • Constructor Detail

      • ExtensionDescriptorMojo

        public ExtensionDescriptorMojo()
    • Method Detail

      • 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)