Class BuildinfoMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="buildinfo",
          defaultPhase=VERIFY,
          threadSafe=true)
    public class BuildinfoMojo
    extends AbstractBuildinfoMojo
    Creates a buildinfo file recording build environment and output (from package), as specified in Reproducible Builds for the JVM for mono-module build, and extended for multi-module build.
    • Field Detail

      • attach

        @Parameter(property="buildinfo.attach",
                   defaultValue="true")
        private boolean attach
        Specifies whether to attach the generated buildinfo file to the project.
      • projectHelper

        @Component
        private org.apache.maven.project.MavenProjectHelper projectHelper
        Used for attaching the buildinfo file in the project.
    • Constructor Detail

      • BuildinfoMojo

        public BuildinfoMojo()
    • Method Detail

      • execute

        public void execute​(java.util.Map<org.apache.maven.artifact.Artifact,​java.lang.String> artifacts)
                     throws org.apache.maven.plugin.MojoExecutionException
        Description copied from class: AbstractBuildinfoMojo
        Execute after buildinfo has been generated for current build (eventually aggregated).
        Specified by:
        execute in class AbstractBuildinfoMojo
        Parameters:
        artifacts - a Map of artifacts added to the build info with their associated property key prefix (outputs.[#module.].#artifact)
        Throws:
        org.apache.maven.plugin.MojoExecutionException