Package org.apache.maven.plugins.pmd
Class AggregatorCpdViolationCheckMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.pmd.AbstractPmdViolationCheckMojo<Duplication>
org.apache.maven.plugins.pmd.CpdViolationCheckMojo
org.apache.maven.plugins.pmd.AggregatorCpdViolationCheckMojo
- All Implemented Interfaces:
ContextEnabled,Mojo
@Mojo(name="aggregate-cpd-check",
defaultPhase=VERIFY,
threadSafe=true,
aggregator=true)
@Execute(goal="aggregate-cpd")
public class AggregatorCpdViolationCheckMojo
extends CpdViolationCheckMojo
Fail the build in an aggregator project if there were any CPD violations in the source code.
- Since:
- 3.15.0
-
Field Summary
Fields inherited from class org.apache.maven.plugins.pmd.CpdViolationCheckMojo
failOnViolationFields inherited from class org.apache.maven.plugins.pmd.AbstractPmdViolationCheckMojo
aggregate, project -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugins.pmd.CpdViolationCheckMojo
execute, getErrorDetails, getPriority, isFailOnViolation, newViolationDetailsInstance, printErrorMethods inherited from class org.apache.maven.plugins.pmd.AbstractPmdViolationCheckMojo
executeCheck, getMaxAllowedViolations, printErrorsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AggregatorCpdViolationCheckMojo
public AggregatorCpdViolationCheckMojo()
-
-
Method Details
-
isAggregator
protected boolean isAggregator()- Overrides:
isAggregatorin classAbstractPmdViolationCheckMojo<Duplication>
-