public abstract class AbstractDockerMojo
extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
AbstractDockerMojo() |
public void setProviderName(String providerName)
public void setSkip(boolean skip)
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void registerStartedContainer(String containerId, ContainerInspectionResult container)
protected Collection<StartedContainerInfo> getStartedContainers()
protected Optional<StartedContainerInfo> getInfoForContainerStartId(String startId)
protected void registerBuiltImage(String imageId, ImageBuildConfiguration imageConfig) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected Collection<BuiltImageInfo> getBuiltImages()
protected void cleanUpStartedContainers()
protected DockerProvider getDockerProvider()
protected Credentials getCredentials()
protected Optional<BuiltImageInfo> getBuiltImageForStartId(String imageId)
protected void registerPluginError(DockerPluginError error)
protected List<DockerPluginError> getPluginErrors()
protected void enqueueForPushing(String imageId, ImageBuildConfiguration imageConfig) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void enqueueForPushing(String imageId, Optional<String> nameAndTag, Optional<String> registry) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void enqueueForPushingToRegistry(String imageId, Optional<String> nameAndTag, String registry) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected List<PushableImage> getImagesToPush()
protected void attachTag(String imageId, String nameAndTag) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void handleDockerException(String message, DockerException e) throws org.apache.maven.plugin.MojoFailureException
DockerException as a MojoFailureException with a more specific
error message. Extract into a common, template method in this base class to allow pre "verify" Mojos to handle
errors differently.message - The message for the exceptione - The Docker Exceptionorg.apache.maven.plugin.MojoFailureException - to indicate Plugin failureCopyright © 2016. All Rights Reserved.