Class CreateExtensionMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="create-extension",
          requiresProject=false)
    public class CreateExtensionMojo
    extends org.apache.maven.plugin.AbstractMojo
    Creates the base of a Quarkus Extension in different layout depending on the options and environment.

    Create in the quarkus-parent project directory (or the extensions parent dir)


    It will:
    • generate the new Quarkus extension in the extensions parent as a module (parent, runtime and deployment), with unit test and devmode test on option.
    • On option, generate the new integration test in the integration tests parent as a module.
    • add the dependencies to the bom/application/pom.xml.

    Creating a Quarkiverse extension


    When using -DgroupId=io.quarkiverse.[featureId], the new extension will use the Quarkiverse layout.

    Creating a standalone extension


    • generate the new Quarkus extension in the current directory (parent, runtime and deployment), with unit test and devmode test on option.
    • On option, generate the new integration test module in the current directory.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.maven.project.MavenProject project  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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 Detail

      • project

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

      • CreateExtensionMojo

        public CreateExtensionMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException