Class MojoBuildDocker
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo
-
- br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiContainerPackMojo
-
- br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiDockerMojo
-
- br.com.c8tech.tools.maven.plugin.osgi.container.MojoBuildDocker
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="buildDockerImage", defaultPhase=PACKAGE, requiresProject=true, threadSafe=true) public class MojoBuildDocker extends AbstractOsgiDockerMojo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiDockerMojo
AbstractOsgiDockerMojo.Metadata
-
-
Field Summary
Fields Modifier and Type Field Description static StringDOCKER_FILE-
Fields inherited from class br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiDockerMojo
buildDocker, connectTimeoutMillis, dockerClassifier, dockerConfigFile, dockerInfoDirectory, password, readTimeoutMillis, retryCount, testOutputDirectory, useMavenSettingsForAuth, useProxy, username
-
Fields inherited from class br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiContainerPackMojo
DOWNLOAD_STATUS, EQUINOX_CONFIGURATION_NAME, EQUINOX_CONFIGURATION_PATH, FELIX_CONFIGURATION_NAME, FELIX_CONFIGURATION_PATH, PROPERTY_CACHE_DIR, PROPERTY_WORK_DIR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMojoBuildDocker(org.apache.maven.project.MavenProject pProject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.spotify.docker.client.DockerClient dockerClient)protected voidexecuteExtraInitializationSteps()-
Methods inherited from class br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiDockerMojo
buildDockerInfoJar, ensureDockerInfoDirectory, ensureMetadataFile, executeMojo, formatImageName, readMetadata, writeImageInfo, writeMetadata, writeMetadata
-
Methods inherited from class br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiContainerPackMojo
addMavenArtifactSet, addScope, calculateContainerConfigurationFileOutputPath, createDefaultDirectories, doBeforeSkipMojo, getBaseContainerConfigurationFileUrl, getBundleValidArtifactFilter, getCacheDirectory, getConfiguratorInitialFile, getContainer, getContainerCacheDirectory, getContainerPomDependenciesGAV, getContainerWorkDirectory, getDefaultSupportedPackagings, getEncoding, getExcludedArtifacts, getLocalRepositoryGAV, getLogbackConfigurationFile, getMavenArtifactSets, getMsgChoiceArtifact, getProjectBuilder, getScopes, isOptionalConsidered, isRunOnlyAtExecutionRoot, isSkip, isSkipConfigurationGen, isTransitiveConsidered, loadProperties, setBaseContainerConfigurationFileUrl, setConfiguratorInitialFile, setContainerPomDependenciesGAV, setEncoding, setLocalRepositoryGAV, setLogbackConfigurationFile, setScopes, setSkipConfigurationGen
-
Methods inherited from class br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo
addExtraSupportedPackaging, cleanWorkDirectory, combineScopes, copyInternalFileToProjectDir, copyInternalFileToProjectDir, doInitialValidation, execute, getBasedir, getBuildDir, getCachedFileNamePattern, getCacheSubDirectory, getClassifier, getDependenciesHelper, getDirectoryHelper, getExtraSupportedPackagings, getFilterFactory, getFinalName, getGoalName, getLocalRepository, getMavenSession, getPluginDescriptor, getProject, getProjectHelper, getRemoteRepositories, getRepositorySystem, getRuntimeInformation, getSupportedPackagings, getWorkDirectory, getWorkSubDirectory, isAggregator, isVerbose, loadProject, loadProject, registerArtifactsIntoAggregatorBuildContext, setBuildDir, setClassifier, setExtraSupportedPackagings, setFinalName, setWorkDirectory
-
-
-
-
Field Detail
-
DOCKER_FILE
public static final String DOCKER_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute(com.spotify.docker.client.DockerClient dockerClient) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein classAbstractOsgiDockerMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
executeExtraInitializationSteps
protected void executeExtraInitializationSteps() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Overrides:
executeExtraInitializationStepsin classAbstractOsgiContainerPackMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
-