Package nl.lexemmens.podman
Class CleanMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- nl.lexemmens.podman.AbstractPodmanMojo
-
- nl.lexemmens.podman.CleanMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="clean", defaultPhase=PRE_CLEAN) public class CleanMojo extends AbstractPodmanMojoCleanMojo 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.
-
-
Field Summary
-
Fields inherited from class nl.lexemmens.podman.AbstractPodmanMojo
batch, failOnMissingContainerfile, images, podman, PODMAN_DIRECTORY, project, pushRegistry, registries, resolvedImages, settings, skip, skipAuth
-
-
Constructor Summary
Constructors Constructor Description CleanMojo()Creates a new instance of this Mojo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteInternal(ServiceHub hub)Executes this Mojo internally.-
Methods inherited from class nl.lexemmens.podman.AbstractPodmanMojo
checkAuthentication, execute, getFullImageNameWithPushRegistry
-
-
-
-
Method Detail
-
executeInternal
public void executeInternal(ServiceHub hub) throws org.apache.maven.plugin.MojoExecutionException
Description copied from class:AbstractPodmanMojoExecutes this Mojo internally.- Specified by:
executeInternalin classAbstractPodmanMojo- Parameters:
hub- AServiceHubinstance providing access to relevant services- Throws:
org.apache.maven.plugin.MojoExecutionException- In case anything happens during execution which prevents execution from continuing
-
-