Class CheckBuildPlanMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.artifact.buildinfo.CheckBuildPlanMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="check-buildplan", threadSafe=true, requiresProject=true) public class CheckBuildPlanMojo extends org.apache.maven.plugin.AbstractMojoCheck from buildplan that plugins used don't have known Reproducible Builds issues.- Since:
- 3.3.0
-
-
Field Summary
Fields Modifier and Type Field Description private booleanfailOnNonReproducibleMake build fail if execution plan contains non-reproducible plugins.private org.apache.maven.lifecycle.LifecycleExecutorlifecycleExecutorprivate java.lang.StringoutputTimestampTimestamp for reproducible output archive entries, either formatted as ISO 8601yyyy-MM-dd'T'HH:mm:ssXXXor as an int representing seconds since the epoch (like SOURCE_DATE_EPOCH).private java.io.FilepluginIssuesProvide a plugin issues property file to override plugin'snot-reproducible-plugins.properties.private org.apache.maven.project.MavenProjectprojectprivate org.apache.maven.execution.MavenSessionsessionprivate java.lang.String[]tasksAllow to specify which goals/phases will be used to calculate execution plan.
-
Constructor Summary
Constructors Constructor Description CheckBuildPlanMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.maven.lifecycle.MavenExecutionPlancalculateExecutionPlan()voidexecute()private java.util.PropertiesloadIssues()
-
-
-
Field Detail
-
project
@Component private org.apache.maven.project.MavenProject project
-
session
@Component private org.apache.maven.execution.MavenSession session
-
lifecycleExecutor
@Component private org.apache.maven.lifecycle.LifecycleExecutor lifecycleExecutor
-
tasks
@Parameter(property="check.buildplan.tasks", defaultValue="deploy") private java.lang.String[] tasksAllow to specify which goals/phases will be used to calculate execution plan.
-
outputTimestamp
@Parameter(defaultValue="${project.build.outputTimestamp}") private java.lang.String outputTimestampTimestamp for reproducible output archive entries, either formatted as ISO 8601yyyy-MM-dd'T'HH:mm:ssXXXor as an int representing seconds since the epoch (like SOURCE_DATE_EPOCH).
-
pluginIssues
@Parameter(property="check.plugin-issues") private java.io.File pluginIssues
Provide a plugin issues property file to override plugin'snot-reproducible-plugins.properties.
-
failOnNonReproducible
@Parameter(property="check.failOnNonReproducible", defaultValue="true") private boolean failOnNonReproducibleMake build fail if execution plan contains non-reproducible plugins.
-
-
Method Detail
-
calculateExecutionPlan
protected org.apache.maven.lifecycle.MavenExecutionPlan calculateExecutionPlan() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
loadIssues
private java.util.Properties loadIssues() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-