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 Summary
FieldsModifier and TypeFieldDescriptionprivate booleanSpecifies whether to attach the generated buildinfo file to the project.private org.apache.maven.project.MavenProjectHelperUsed for attaching the buildinfo file in the project.Fields inherited from class org.apache.maven.plugins.artifact.buildinfo.AbstractBuildinfoMojo
artifactHandlerManager, buildinfoFile, project, rtInformation, sessionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugins.artifact.buildinfo.AbstractBuildinfoMojo
copyAggregateToRoot, execute, generateBuildinfo, getExecutionRoot, hasBadOutputTimestamp, skipMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
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 projectHelperUsed 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.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
-