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