@Mojo(name="build",
defaultPhase=INSTALL)
public class BuildMojo
extends AbstractBuildSupportMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
skipBuild |
protected boolean |
skipTag
Skip building tags
|
autoPull, CONTEXT_KEY_BUILD_TIMESTAMP, CONTEXT_KEY_LOG_DISPATCHER, CONTEXT_KEY_START_CALLED, DOCKER_BUILD_TIMESTAMP, dockerAccessFactory, execution, imageConfigResolver, imageName, imagePullPolicy, 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, getBuildContextcontextualize, customizeConfig, execute, getBuildTimestamp, getBuildTimestampFile, getDockerAccessContext, getImagePullManager, getLogDispatcher, getLogPrefix, getPomLabel, getRegistryConfig, getResolvedImages, getVolumes, isDockerAccessRequired@Parameter(property="docker.skip.build",
defaultValue="false")
protected boolean skipBuild
@Parameter(property="docker.skip.tag",
defaultValue="false")
protected boolean skipTag
protected void executeInternal(ServiceHub hub) throws DockerAccessException, org.apache.maven.plugin.MojoExecutionException
AbstractDockerMojoexecuteInternal in class AbstractDockerMojohub - context for accessing backendsDockerAccessExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected void buildAndTag(ServiceHub hub, ImageConfiguration imageConfig) throws org.apache.maven.plugin.MojoExecutionException, DockerAccessException
org.apache.maven.plugin.MojoExecutionExceptionDockerAccessExceptionprotected Date getReferenceDate() throws org.apache.maven.plugin.MojoExecutionException
getReferenceDate in class AbstractDockerMojoorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2018. All rights reserved.