Class AddExtensionMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.quarkus.maven.QuarkusProjectMojoBase
io.quarkus.maven.AddExtensionMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AddExtensionsMojo

@Mojo(name="add-extension") public class AddExtensionMojo extends QuarkusProjectMojoBase
Allow adding an extension to an existing pom.xml file. Because you can add one or several extension in one go, there are 2 mojos: add-extensions and add-extension. Both supports the extension and extensions parameters.
  • Field Details

    • extensions

      @Parameter(property="extensions") Set<String> extensions
      The list of extensions to be added.
    • extension

      @Parameter(property="extension") String extension
      For usability reason, this parameter allows adding a single extension.
  • Constructor Details

    • AddExtensionMojo

      public AddExtensionMojo()
  • Method Details

    • validateParameters

      protected void validateParameters() throws org.apache.maven.plugin.MojoExecutionException
      Overrides:
      validateParameters in class QuarkusProjectMojoBase
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • doExecute

      public void doExecute(io.quarkus.devtools.project.QuarkusProject quarkusProject, io.quarkus.devtools.messagewriter.MessageWriter log) throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      doExecute in class QuarkusProjectMojoBase
      Throws:
      org.apache.maven.plugin.MojoExecutionException