Package io.fabric8.maven.docker
Class LogsMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.fabric8.maven.docker.AbstractDockerMojo
-
- io.fabric8.maven.docker.LogsMojo
-
- All Implemented Interfaces:
ConfigHelper.Customizer,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
@Mojo(name="logs") public class LogsMojo extends AbstractDockerMojo
Mojo for printing logs of a container. By default the logs of all containers are shown interwoven with the time occured. The log output can be highly customized in the plugin configuration, please refer to the reference manual for documentation. This Mojo is intended for standalone usage. SeeStartMojofor how to enabling logging when starting containers.- Since:
- 26.03.14
- Author:
- roland
-
-
Field Summary
-
Fields inherited from class io.fabric8.maven.docker.AbstractDockerMojo
autoPull, CONTEXT_KEY_BUILD_TIMESTAMP, CONTEXT_KEY_LOG_DISPATCHER, CONTEXT_KEY_START_CALLED, DOCKER_BUILD_TIMESTAMP, dockerAccessFactory, execution, imageConfigResolver, imagePullPolicy, jib, jibImageFormat, keepContainer, log, outputDirectory, packaging, project, registry, removeVolumes, serviceHubFactory, session, settings, skipExtendedAuth, skipPom, sourceDirectory, useColor, verbose
-
-
Constructor Summary
Constructors Constructor Description LogsMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteInternal(ServiceHub hub)Hook for subclass for doing the real job-
Methods inherited from class io.fabric8.maven.docker.AbstractDockerMojo
contextualize, customizeConfig, execute, getBuildTimestamp, getBuildTimestampFile, getContainerNameMatcher, getContainersForPattern, getDockerAccessContext, getGavLabel, getImageNameMatcher, getImagePullManager, getLogDispatcher, getLogPrefix, getReferenceDate, getRegistryConfig, getResolvedImages, getVolumes, invokedTogetherWithDockerStart, isDockerAccessRequired, pullImage, shouldSkipPom
-
-
-
-
Method Detail
-
executeInternal
protected void executeInternal(ServiceHub hub) throws org.apache.maven.plugin.MojoExecutionException, DockerAccessException
Description copied from class:AbstractDockerMojoHook for subclass for doing the real job- Specified by:
executeInternalin classAbstractDockerMojo- Parameters:
hub- context for accessing backends- Throws:
org.apache.maven.plugin.MojoExecutionExceptionDockerAccessException
-
-