pmd:cpd-check
Full name:
org.apache.maven.plugins:maven-pmd-plugin:2.6:cpd-check
Description:
Fail the build if there were any CPD violations in the source code.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Since version: 2.0.
- Binds by default to the lifecycle phase: verify.
- Invokes the execution of this plugin's goal cpd prior to executing itself.
Required Parameters
Name |
Type |
Since |
Description |
failOnViolation |
boolean |
2.0 |
Whether to fail the build if the validation check fails. Default value is: true. |
targetDirectory |
File |
2.0 |
The location of the XML report to check, as generated by the PMD
report.
|
Optional Parameters
Name |
Type |
Since |
Description |
aggregate |
boolean |
2.2 |
Whether to build an aggregated report at the root, or build
individual reports. Default value is: false. |
skip |
boolean |
2.0 |
Skip the CPD violation checks. Most useful on the command line via
"-Dcpd.skip=true". Default value is: false. |
verbose |
boolean |
2.0 |
Print details of check failures to build output. Default value is: false. |
Parameter Details
aggregate:
Whether to build an aggregated report at the root, or build
individual reports.
- Type: boolean
- Since: 2.2
- Required: No
- Expression: ${aggregate}
- Default: false
failOnViolation:
Whether to fail the build if the validation check fails.
- Type: boolean
- Since: 2.0
- Required: Yes
- Expression: ${pmd.failOnViolation}
- Default: true
skip:
Skip the CPD violation checks. Most useful on the command line via
"-Dcpd.skip=true".
- Type: boolean
- Since: 2.0
- Required: No
- Expression: ${cpd.skip}
- Default: false
targetDirectory:
The location of the XML report to check, as generated by the PMD
report.
- Type: java.io.File
- Since: 2.0
- Required: Yes
- Expression: ${project.build.directory}
verbose:
Print details of check failures to build output.
- Type: boolean
- Since: 2.0
- Required: No
- Expression: ${pmd.verbose}
- Default: false