Class BuildinfoMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.artifact.buildinfo.AbstractBuildinfoMojo
org.apache.maven.plugins.artifact.buildinfo.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 Details

    • 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 Details

    • BuildinfoMojo

      public BuildinfoMojo()
  • Method Details

    • execute

      public void execute(Map<org.apache.maven.artifact.Artifact,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