Class DockerBuildMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.technologybrewery.orphedomos.mojo.AbstractDockerMojo
-
- org.technologybrewery.orphedomos.mojo.DockerBuildMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="build-docker-image", defaultPhase=PACKAGE) public class DockerBuildMojo extends AbstractDockerMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected FilemavenArtifactFileLocation of the artifact that will be published for this module.-
Fields inherited from class org.technologybrewery.orphedomos.mojo.AbstractDockerMojo
aliases, buildArgs, dockerContext, dockerfilePath, dryRun, imageName, imageVersion, repoId, repoUrl, settings, targetArchitectures, useBuildKit, usePlainTextPassword
-
-
Constructor Summary
Constructors Constructor Description DockerBuildMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoExecute()Encapsulates all build logic associated with this plugin goal -AbstractDockerMojo.execute()delegates to this method after performing execution handling that is common across all Mojos.voidexecute()protected voidsetUpPlaceholderFileAsMavenArtifact()-
Methods inherited from class org.technologybrewery.orphedomos.mojo.AbstractDockerMojo
findPasswordForServer, getArgumentsList, getDockerfilePath, getImageTag, getImageTagWithArch, isOrphedomosModule, login, logout, prependRegistry
-
-
-
-
Field Detail
-
mavenArtifactFile
@Parameter(property="orphedomos.mavenArtifactFile", required=true, defaultValue="${project.basedir}/target/orphedomos.placeholder.txt") protected File mavenArtifactFileLocation of the artifact that will be published for this module.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractDockerMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
doExecute
public void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractDockerMojoEncapsulates all build logic associated with this plugin goal -AbstractDockerMojo.execute()delegates to this method after performing execution handling that is common across all Mojos.- Specified by:
doExecutein classAbstractDockerMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- a mojo exceptionorg.apache.maven.plugin.MojoFailureException- a mojo failure
-
setUpPlaceholderFileAsMavenArtifact
protected void setUpPlaceholderFileAsMavenArtifact()
-
-