Class AbstractImageMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    ImageBuildMojo, ImagePushMojo

    public class AbstractImageMojo
    extends BuildMojo
    Base class for Image related mojos.
    • Constructor Detail

      • AbstractImageMojo

        public AbstractImageMojo()
    • 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.
        Overrides:
        beforeExecute in class BuildMojo
        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
        Overrides:
        doExecute in class BuildMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException - in case of a failure
      • forcedDependencies

        protected List<io.quarkus.maven.dependency.Dependency> forcedDependencies​(io.quarkus.runtime.LaunchMode mode)
        Description copied from class: QuarkusBootstrapMojo
        Allows implementations to provide extra dependencies that should be enforced on the application. Originally requested by Camel K.
        Overrides:
        forcedDependencies in class QuarkusBootstrapMojo
        Parameters:
        mode - launch mode the application is being bootstrapped in
        Returns:
        list of extra dependencies that should be enforced on the application