@Mojo(name="source", defaultPhase=PACKAGE) public class SourceMojo extends AbstractBuildSupportMojo
BuildImageSelectMode
, the alias name of the build configuration.autoPull, CONTEXT_KEY_BUILD_TIMESTAMP, CONTEXT_KEY_LOG_DISPATCHER, CONTEXT_KEY_START_CALLED, DOCKER_BUILD_TIMESTAMP, dockerAccessFactory, execution, imageConfigResolver, imagePullPolicy, keepContainer, log, project, registry, removeVolumes, serviceHubFactory, session, settings, skipExtendedAuth, useColor, verbose
Constructor and Description |
---|
SourceMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
executeInternal(ServiceHub hub)
Hook for subclass for doing the real job
|
protected boolean |
isDockerAccessRequired()
Override this if your mojo doesnt require access to a Docker host (like creating and attaching
docker tar archives)
|
createMojoParameters, getBuildContext
contextualize, customizeConfig, execute, getBuildTimestamp, getBuildTimestampFile, getDockerAccessContext, getGavLabel, getImagePullManager, getLogDispatcher, getLogPrefix, getReferenceDate, getRegistryConfig, getResolvedImages, getVolumes
protected void executeInternal(ServiceHub hub) throws DockerAccessException, org.apache.maven.plugin.MojoExecutionException
AbstractDockerMojo
executeInternal
in class AbstractDockerMojo
hub
- context for accessing backendsDockerAccessException
org.apache.maven.plugin.MojoExecutionException
protected boolean isDockerAccessRequired()
AbstractDockerMojo
isDockerAccessRequired
in class AbstractDockerMojo
true
as the default valueCopyright © 2021. All rights reserved.