@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, getBuildContext
contextualize, customizeConfig, execute, getBuildTimestamp, getBuildTimestampFile, getDockerAccessContext, getGavLabel, getImagePullManager, getLogDispatcher, getLogPrefix, getRegistryConfig, getResolvedImages, getVolumes, isDockerAccessRequired
public 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
AbstractDockerMojo
executeInternal
in class AbstractDockerMojo
hub
- context for accessing backendsIOException
org.apache.maven.plugin.MojoExecutionException
protected void buildAndTag(ServiceHub hub, ImageConfiguration imageConfig) throws org.apache.maven.plugin.MojoExecutionException, IOException
org.apache.maven.plugin.MojoExecutionException
IOException
protected Date getReferenceDate()
getReferenceDate
in class AbstractDockerMojo
Copyright © 2021. All rights reserved.