Class CleanMojo

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

    @Mojo(name="clean",
          defaultPhase=PRE_CLEAN)
    public class CleanMojo
    extends AbstractPodmanMojo
    CleanMojo for building container images using Podman. This Mojo *must* run during the pre-clean phase, when Podman's root storage location is set to be in the target directory.
    • Constructor Detail

      • CleanMojo

        public CleanMojo()
        Creates a new instance of this Mojo.
    • Method Detail

      • executeInternal

        public void executeInternal​(ServiceHub hub)
                             throws org.apache.maven.plugin.MojoExecutionException
        Description copied from class: AbstractPodmanMojo
        Executes this Mojo internally.
        Specified by:
        executeInternal in class AbstractPodmanMojo
        Parameters:
        hub - A ServiceHub instance providing access to relevant services
        Throws:
        org.apache.maven.plugin.MojoExecutionException - In case anything happens during execution which prevents execution from continuing