@Mojo(name="build",
defaultPhase=INSTALL)
public class BuildMojo
extends AbstractBuildSupportMojo
| Modifier and Type | Field and Description |
|---|---|
static String |
DMP_PLUGIN_DESCRIPTOR |
static String |
DOCKER_EXTRA_DIR |
protected String |
name |
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, 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, getGavLabel, getImagePullManager, getLogDispatcher, getLogPrefix, getRegistryConfig, getResolvedImages, getVolumes, isDockerAccessRequiredpublic static final String DMP_PLUGIN_DESCRIPTOR
public static final String DOCKER_EXTRA_DIR
@Parameter(property="docker.skip.build",
defaultValue="false")
protected boolean skipBuild
@Parameter(property="docker.name",
defaultValue="")
protected String name
@Parameter(property="docker.skip.tag",
defaultValue="false")
protected boolean skipTag
protected void executeInternal(ServiceHub hub) throws IOException, org.apache.maven.plugin.MojoExecutionException
AbstractDockerMojoexecuteInternal in class AbstractDockerMojohub - context for accessing backendsIOExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected void buildAndTag(ServiceHub hub, ImageConfiguration imageConfig) throws org.apache.maven.plugin.MojoExecutionException, IOException
org.apache.maven.plugin.MojoExecutionExceptionIOExceptionprotected Date getReferenceDate()
getReferenceDate in class AbstractDockerMojoCopyright © 2018. All rights reserved.