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.AbstractMojo
Check from buildplan that plugins used don't have known Reproducible Builds issues.
- Since:
- 3.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanMake build fail if execution plan contains non-reproducible plugins.private org.apache.maven.lifecycle.LifecycleExecutorprivate StringTimestamp 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 FileProvide a plugin issues property file to override plugin'snot-reproducible-plugins.properties.private org.apache.maven.project.MavenProjectprivate org.apache.maven.execution.MavenSessionprivate String[]Allow to specify which goals/phases will be used to calculate execution plan.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.lifecycle.MavenExecutionPlanvoidexecute()private PropertiesMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
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
Allow to specify which goals/phases will be used to calculate execution plan. -
outputTimestamp
Timestamp 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
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.
-
-
Constructor Details
-
CheckBuildPlanMojo
public CheckBuildPlanMojo()
-
-
Method Details
-
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
- Throws:
org.apache.maven.plugin.MojoExecutionException
-