Class BuildMojo

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

    @Mojo(name="build",
          defaultPhase=PACKAGE,
          requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
          threadSafe=true)
    public class BuildMojo
    extends QuarkusBootstrapMojo
    Builds the Quarkus application.
    • Constructor Detail

      • BuildMojo

        public BuildMojo()
    • Method Detail

      • beforeExecute

        protected boolean beforeExecute()
                                 throws org.apache.maven.plugin.MojoExecutionException
        Description copied from class: QuarkusBootstrapMojo
        This callback allows to evaluate whether this mojo should be executed, skipped or fail.
        Specified by:
        beforeExecute in class QuarkusBootstrapMojo
        Returns:
        false if the execution of the mojo should be skipped, true if the mojo should be executed
        Throws:
        org.apache.maven.plugin.MojoExecutionException - in case of a failure
      • doExecute

        protected void doExecute()
                          throws org.apache.maven.plugin.MojoExecutionException
        Description copied from class: QuarkusBootstrapMojo
        Main mojo execution code
        Specified by:
        doExecute in class QuarkusBootstrapMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException - in case of a failure
      • setLog

        public void setLog​(org.apache.maven.plugin.logging.Log log)
        Specified by:
        setLog in interface org.apache.maven.plugin.Mojo
        Overrides:
        setLog in class QuarkusBootstrapMojo