Class 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 Detail

      • mavenArtifactFile

        @Parameter(property="orphedomos.mavenArtifactFile",
                   required=true,
                   defaultValue="${project.basedir}/target/orphedomos.placeholder.txt")
        protected File mavenArtifactFile
        Location of the artifact that will be published for this module.
    • Constructor Detail

      • DockerBuildMojo

        public DockerBuildMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractDockerMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • doExecute

        public void doExecute()
                       throws org.apache.maven.plugin.MojoExecutionException,
                              org.apache.maven.plugin.MojoFailureException
        Description copied from class: AbstractDockerMojo
        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.
        Specified by:
        doExecute in class AbstractDockerMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException - a mojo exception
        org.apache.maven.plugin.MojoFailureException - a mojo failure
      • setUpPlaceholderFileAsMavenArtifact

        protected void setUpPlaceholderFileAsMavenArtifact()