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, CATALOG_ARTIFACT_NAME, CATALOG_HEADER, failOnMissingContainerfile, images, podman, PODMAN_DIRECTORY, project, pushRegistry, registries, resolvedImages, settings, skip, skipAuth, skopeo
-
-
Constructor Summary
Constructors Constructor Description CleanMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteInternal(ServiceHub hub)Executes this Mojo internally.protected booleanrequireImageConfiguration()Returns whether the image configuration should be initializedprotected booleanskipGoal()Check if the execution of the mojo should be skipped-
Methods inherited from class nl.lexemmens.podman.AbstractPodmanMojo
checkAuthentication, execute, getFullImageNameWithPushRegistry, initImageConfigurations, singleImageConfigurationToFullImageList
-
-
-
-
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
-
skipGoal
protected boolean skipGoal()
Description copied from class:AbstractPodmanMojoCheck if the execution of the mojo should be skipped- Specified by:
skipGoalin classAbstractPodmanMojo- Returns:
- whether the mojo should be skipped
-
requireImageConfiguration
protected boolean requireImageConfiguration()
Description copied from class:AbstractPodmanMojoReturns whether the image configuration should be initialized- Overrides:
requireImageConfigurationin classAbstractPodmanMojo- Returns:
- image configuration must be initialized
-
-