@Mojo(name="build", defaultPhase=INSTALL) public class BuildMojo extends AbstractBuildSupportMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
skipBuild |
autoPull, CONTEXT_KEY_BUILD_TIMESTAMP, CONTEXT_KEY_LOG_DISPATCHER, CONTEXT_KEY_PREVIOUSLY_PULLED, CONTEXT_KEY_START_CALLED, DOCKER_BUILD_TIMESTAMP, dockerAccessFactory, execution, imageConfigResolver, keepContainer, log, project, registry, removeVolumes, serviceHubFactory, session, settings, skipExtendedAuth, useColor, verbose
Constructor and Description |
---|
BuildMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildAndTag(ServiceHub hub,
ImageConfiguration imageConfig) |
protected void |
executeInternal(ServiceHub hub)
Hook for subclass for doing the real job
|
protected Date |
getReferenceDate() |
createMojoParameters, getBuildContext
contextualize, customizeConfig, execute, getBuildTimestamp, getBuildTimestampFile, getConfiguredRegistry, getDockerAccessContext, getLogDispatcher, getLogPrefix, getPomLabel, getRegistryConfig, getResolvedImages, getVolumes, isDockerAccessRequired
@Parameter(property="docker.skip.build", defaultValue="false") protected boolean skipBuild
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 void buildAndTag(ServiceHub hub, ImageConfiguration imageConfig) throws org.apache.maven.plugin.MojoExecutionException, DockerAccessException
org.apache.maven.plugin.MojoExecutionException
DockerAccessException
protected Date getReferenceDate() throws org.apache.maven.plugin.MojoExecutionException
getReferenceDate
in class AbstractDockerMojo
org.apache.maven.plugin.MojoExecutionException
Copyright © 2018. All rights reserved.