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 AbstractBuildinfoMojoCreates a buildinfo file recording build environment and output (frompackage), as specified in Reproducible Builds for the JVM for mono-module build, and extended for multi-module build.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanattachSpecifies whether to attach the generated buildinfo file to the project.private org.apache.maven.project.MavenProjectHelperprojectHelperUsed for attaching the buildinfo file in the project.-
Fields inherited from class org.apache.maven.plugins.artifact.buildinfo.AbstractBuildinfoMojo
artifactHandlerManager, buildinfoFile, project, rtInformation, session
-
-
Constructor Summary
Constructors Constructor Description BuildinfoMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(java.util.Map<org.apache.maven.artifact.Artifact,java.lang.String> artifacts)Execute after buildinfo has been generated for current build (eventually aggregated).-
Methods inherited from class org.apache.maven.plugins.artifact.buildinfo.AbstractBuildinfoMojo
copyAggregateToRoot, execute, generateBuildinfo, getExecutionRoot, hasBadOutputTimestamp, skip
-
-
-
-
Field Detail
-
attach
@Parameter(property="buildinfo.attach", defaultValue="true") private boolean attachSpecifies 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.
-
-
Method Detail
-
execute
public void execute(java.util.Map<org.apache.maven.artifact.Artifact,java.lang.String> artifacts) throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:AbstractBuildinfoMojoExecute after buildinfo has been generated for current build (eventually aggregated).- Specified by:
executein classAbstractBuildinfoMojo- 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
-
-