Package io.fabric8.maven.docker
Class RemoveMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.fabric8.maven.docker.AbstractDockerMojo
-
- io.fabric8.maven.docker.RemoveMojo
-
- All Implemented Interfaces:
ConfigHelper.Customizer,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
@Mojo(name="remove", defaultPhase=POST_INTEGRATION_TEST) public class RemoveMojo extends AbstractDockerMojoMojo for removing images. By default only data images are removed. Data images are images without a run configuration. By settingremoveAll(property:docker.removeAll) also other images can be removed. In order to explicitly restrict the images to remove, useimagesto specify a (comma separated) list of images to remove.- Since:
- 23.10.14
- Author:
- roland
-
-
Field Summary
-
Fields inherited from class io.fabric8.maven.docker.AbstractDockerMojo
archive, autoPull, buildArgs, CONTEXT_KEY_BUILD_TIMESTAMP, CONTEXT_KEY_LOG_DISPATCHER, CONTEXT_KEY_START_CALLED, DOCKER_BUILD_TIMESTAMP, dockerAccessFactory, execution, imageConfigResolver, imagePullPolicy, jib, jibImageFormat, keepContainer, log, mavenFileFilter, mavenFilterReader, outputDirectory, packaging, project, reactorProjects, registry, removeVolumes, serviceHubFactory, session, settings, skipExtendedAuth, skipPom, sourceDirectory, useColor, verbose
-
-
Constructor Summary
Constructors Constructor Description RemoveMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteInternal(ServiceHub hub)Hook for subclass for doing the real job-
Methods inherited from class io.fabric8.maven.docker.AbstractDockerMojo
contextualize, createMojoParameters, createProjectPaths, customizeConfig, execute, getBuildTimestamp, getBuildTimestampFile, getContainerNameMatcher, getContainersForPattern, getDockerAccessContext, getGavLabel, getImageNameMatcher, getImagePullManager, getLogDispatcher, getLogPrefix, getReferenceDate, getRegistryConfig, getResolvedImages, getVolumes, invokedTogetherWithDockerStart, isDockerAccessRequired, pullImage, shouldSkipPom
-
-
-
-
Method Detail
-
executeInternal
protected void executeInternal(ServiceHub hub) throws DockerAccessException, org.apache.maven.plugin.MojoExecutionException
Description copied from class:AbstractDockerMojoHook for subclass for doing the real job- Specified by:
executeInternalin classAbstractDockerMojo- Parameters:
hub- context for accessing backends- Throws:
DockerAccessExceptionorg.apache.maven.plugin.MojoExecutionException
-
-