@Mojo(name="watch",
defaultPhase=PACKAGE,
requiresDependencyResolution=COMPILE)
@Execute(goal="deploy")
public class WatchMojo
extends AbstractDockerMojo
access, apiVersion, archive, authConfig, authConfigFactory, autoCreateCustomNetworks, autoPull, buildArgs, buildRecreate, buildStrategy, certPath, clusterAccess, containerNamePattern, CONTEXT_KEY_BUILD_TIMESTAMP, CONTEXT_KEY_LOG_DISPATCHER, CONTEXT_KEY_START_CALLED, DMP_PLUGIN_DESCRIPTOR, DOCKER_BUILD_TIMESTAMP, DOCKER_EXTRA_DIR, dockerAccessFactory, dockerHost, enricher, environment, filter, forcePull, generator, imageConfigResolver, imagePullPolicy, images, jkubeServiceHub, keepContainer, keepRunning, log, logDate, logStdout, machine, mavenFileFilter, mavenFilterReader, maxConnections, minimalApiVersion, mode, openshiftPullSecret, outputDirectory, plexusContainer, profile, project, projectHelper, pullRegistry, reactorProjects, registry, removeVolumes, repositorySystem, resolvedImages, resourceDir, resources, runtimeMode, s2iBuildNameSuffix, s2iImageStreamLookupPolicyLocal, serviceHubFactory, session, settings, skip, skipBuild, skipBuildPom, skipExtendedAuth, skipMachine, sourceDirectory, useColor, useProjectClasspath, verbose, watchInterval, watchMode, watchPostExec, watchPostGoal| Constructor and Description |
|---|
WatchMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.jkube.kit.common.KitLogger |
createLogger(String prefix) |
List<ImageConfiguration> |
customizeConfig(List<ImageConfiguration> configs)
Customization hook called by the base plugin.
|
void |
execute() |
protected void |
executeInternal(ServiceHub hub)
Hook for subclass for doing the real job
|
protected org.eclipse.jkube.kit.config.access.ClusterConfiguration |
getClusterConfiguration() |
protected org.eclipse.jkube.kit.config.service.JKubeServiceHub |
getJKubeServiceHub() |
protected String |
getLogPrefix() |
protected WatchService.WatchContext |
getWatchContext(ServiceHub hub) |
org.eclipse.jkube.watcher.api.WatcherContext |
getWatcherContext() |
addSimpleDockerfileConfig, callBuildPlugin, contextualize, createMojoParameters, createSimpleDockerfileConfig, executeBuildPlugins, extractEnricherConfig, extractGeneratorConfig, follow, getAndEnsureOutputDirectory, getBuildContext, getBuildServiceConfig, getBuildTimestamp, getBuildTimestampFile, getDockerAccessContext, getEnricherContext, getGavLabel, getGeneratorContext, getImagePullManager, getLogDispatcher, getReferenceDate, getRegistryConfig, getResolvedImages, getSessionCacheStore, initImageConfiguration, isDockerAccessRequired, logException, processDmpPluginDescription, shouldSkipBecauseOfPomPackaging, showLogs, useColorForLoggingpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractDockerMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected org.eclipse.jkube.kit.config.access.ClusterConfiguration getClusterConfiguration()
getClusterConfiguration in class AbstractDockerMojoprotected void executeInternal(ServiceHub hub) throws org.apache.maven.plugin.MojoExecutionException
AbstractDockerMojoexecuteInternal in class AbstractDockerMojohub - context for accessing backendsorg.apache.maven.plugin.MojoExecutionExceptionpublic org.eclipse.jkube.watcher.api.WatcherContext getWatcherContext()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.eclipse.jkube.kit.config.service.JKubeServiceHub getJKubeServiceHub()
throws org.apache.maven.artifact.DependencyResolutionRequiredException
getJKubeServiceHub in class AbstractDockerMojoorg.apache.maven.artifact.DependencyResolutionRequiredExceptionpublic List<ImageConfiguration> customizeConfig(List<ImageConfiguration> configs)
AbstractDockerMojocustomizeConfig in interface ConfigHelper.CustomizercustomizeConfig in class AbstractDockerMojoconfigs - configuration to customizeprotected org.eclipse.jkube.kit.common.KitLogger createLogger(String prefix)
protected String getLogPrefix()
getLogPrefix in class AbstractDockerMojoprotected WatchService.WatchContext getWatchContext(ServiceHub hub) throws IOException, org.apache.maven.artifact.DependencyResolutionRequiredException
IOExceptionorg.apache.maven.artifact.DependencyResolutionRequiredExceptionCopyright © 2020. All rights reserved.