@Mojo(name="watch",
defaultPhase=PACKAGE,
requiresDependencyResolution=COMPILE)
@Execute(goal="deploy")
public class WatchMojo
extends io.fabric8.maven.docker.WatchMojo
| Modifier and Type | Field and Description |
|---|---|
protected ClusterConfiguration |
access |
protected org.apache.maven.repository.RepositorySystem |
repositorySystem |
protected boolean |
skip
To skip over the execution of the goal
|
protected boolean |
useColor |
protected boolean |
verbose |
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| Constructor and Description |
|---|
WatchMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected io.fabric8.maven.docker.util.Logger |
createLogger(String prefix) |
List<io.fabric8.maven.docker.config.ImageConfiguration> |
customizeConfig(List<io.fabric8.maven.docker.config.ImageConfiguration> configs) |
void |
execute() |
protected void |
executeInternal(io.fabric8.maven.docker.service.ServiceHub hub) |
protected ClusterConfiguration |
getClusterConfiguration() |
protected Fabric8ServiceHub |
getFabric8ServiceHub() |
protected String |
getLogPrefix() |
WatcherContext |
getWatcherContext() |
createMojoParameters, getBuildContextcontextualize, getBuildTimestamp, getBuildTimestampFile, getDockerAccessContext, getGavLabel, getImagePullManager, getLogDispatcher, getReferenceDate, getRegistryConfig, getResolvedImages, getVolumes, isDockerAccessRequired@Parameter(property="fabric8.skip",
defaultValue="false")
protected boolean skip
@Parameter protected ClusterConfiguration access
@Parameter(property="fabric8.useColor",
defaultValue="true")
protected boolean useColor
@Parameter(property="fabric8.verbose",
defaultValue="false")
protected boolean verbose
@Component protected org.apache.maven.repository.RepositorySystem repositorySystem
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class io.fabric8.maven.docker.AbstractDockerMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected ClusterConfiguration getClusterConfiguration()
protected void executeInternal(io.fabric8.maven.docker.service.ServiceHub hub)
throws org.apache.maven.plugin.MojoExecutionException
executeInternal in class io.fabric8.maven.docker.WatchMojoorg.apache.maven.plugin.MojoExecutionExceptionpublic WatcherContext getWatcherContext() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected Fabric8ServiceHub getFabric8ServiceHub()
public List<io.fabric8.maven.docker.config.ImageConfiguration> customizeConfig(List<io.fabric8.maven.docker.config.ImageConfiguration> configs)
customizeConfig in interface io.fabric8.maven.docker.config.ConfigHelper.CustomizercustomizeConfig in class io.fabric8.maven.docker.AbstractDockerMojoprotected io.fabric8.maven.docker.util.Logger createLogger(String prefix)
protected String getLogPrefix()
getLogPrefix in class io.fabric8.maven.docker.AbstractDockerMojoCopyright © 2019. All rights reserved.