Note: This Mojo should be used as a Maven report.
Full name:
org.apache.maven.plugins:maven-pmd-plugin:2.4:pmd
Description:
Creates a PMD report.
Attributes:
2.0.| Name | Type | Since | Description |
|---|---|---|---|
| outputDirectory | File |
2.0 |
The output directory for the final HTML report. Note that this parameter is only evaluated if the goal is run directly from the command line or during the default lifecycle. If the goal is run indirectly as part of a site generation, the output directory configured in the Maven Site Plugin is used instead. |
| targetDirectory | File |
2.0 |
The output directory for the intermediate XML report. |
| 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. |
| excludeRoots | File[] |
2.2 |
The project source directories that should be excluded. |
| excludes | String[] |
2.2 |
A list of files to exclude from checking. Can contain Ant-style
wildcards and double wildcards. Note that these exclusion patterns
only operate on the path of a source file relative to its source
root directory. In other words, files are excluded based on their
package and/or class name. If you want to exclude entire source
root directories, use the parameter excludeRoots
instead. |
| format | String |
2.0 |
Set the output format type, in addition to the HTML report. Must be
one of: "none", "csv", "xml", "txt" or the full class name of the
PMD renderer to use. See the net.sourceforge.pmd.renderers package
javadoc for available renderers. XML is required if the pmd:check
goal is being used. Default value is: xml. |
| includeTests | boolean |
2.2 |
Run PMD on the tests. Default value is: false. |
| includes | String[] |
2.2 |
A list of files to include from checking. Can contain Ant-style wildcards and double wildcards. Defaults to **\/*.java. |
| linkXRef | boolean |
2.0 |
Link the violation line numbers to the source xref. Links will be
created automatically if the jxr plugin is being used. Default value is: true. |
| minimumPriority | int |
2.1 |
The rule priority threshold; rules with lower priority than this
will not be evaluated. Default value is: 5. |
| rulesets | String[] |
2.0 |
The PMD rulesets to use. See the Stock Rulesets for a list of some included. Defaults to the basic, imports and unusedcode rulesets. |
| skip | boolean |
2.1 |
Skip the PMD report generation. Most useful on the command line via
"-Dpmd.skip=true". Default value is: false. |
| sourceEncoding | String |
2.0 |
The file encoding to use when reading the Java sources. Default value is: ${project.build.sourceEncoding}. |
| targetJdk | String |
2.0 |
The target JDK to analyse based on. Should match the target used in
the compiler plugin. Valid values are currently 1.3,
1.4, 1.5 and 1.6.
Note:
support for |
| xrefLocation | File |
2.0 |
Location of the Xrefs to link to. Default value is: ${project.reporting.outputDirectory}/xref. |
| xrefTestLocation | File |
2.0 |
Location of the Test Xrefs to link to. Default value is: ${project.reporting.outputDirectory}/xref-test. |
Whether to build an aggregated report at the root, or build individual reports.
boolean2.2No${aggregate}falseThe project source directories that should be excluded.
java.io.File[]2.2Noexcludes :
A list of files to exclude from checking. Can contain Ant-style
wildcards and double wildcards. Note that these exclusion patterns
only operate on the path of a source file relative to its source
root directory. In other words, files are excluded based on their
package and/or class name. If you want to exclude entire source
root directories, use the parameter excludeRoots
instead.
java.lang.String[]2.2Noformat :
Set the output format type, in addition to the HTML report. Must be one of: "none", "csv", "xml", "txt" or the full class name of the PMD renderer to use. See the net.sourceforge.pmd.renderers package javadoc for available renderers. XML is required if the pmd:check goal is being used.
java.lang.String2.0No${format}xmlRun PMD on the tests.
boolean2.2Nofalseincludes :
A list of files to include from checking. Can contain Ant-style wildcards and double wildcards. Defaults to **\/*.java.
java.lang.String[]2.2NolinkXRef :
Link the violation line numbers to the source xref. Links will be created automatically if the jxr plugin is being used.
boolean2.0No${linkXRef}trueThe rule priority threshold; rules with lower priority than this will not be evaluated.
int2.1No${minimumPriority}5The output directory for the final HTML report. Note that this parameter is only evaluated if the goal is run directly from the command line or during the default lifecycle. If the goal is run indirectly as part of a site generation, the output directory configured in the Maven Site Plugin is used instead.
java.io.File2.0Yes${project.reporting.outputDirectory}rulesets :
The PMD rulesets to use. See the Stock Rulesets for a list of some included. Defaults to the basic, imports and unusedcode rulesets.
java.lang.String[]2.0Noskip :
Skip the PMD report generation. Most useful on the command line via "-Dpmd.skip=true".
boolean2.1No${pmd.skip}falseThe file encoding to use when reading the Java sources.
java.lang.String2.0No${encoding}${project.build.sourceEncoding}The output directory for the intermediate XML report.
java.io.File2.0Yes${project.build.directory}The target JDK to analyse based on. Should match the target used in
the compiler plugin. Valid values are currently 1.3,
1.4, 1.5 and 1.6.
Note:
support for 1.6 was added in version
2.3 of this plugin.
java.lang.String2.0No${targetJdk}Location of the Xrefs to link to.
java.io.File2.0No${project.reporting.outputDirectory}/xrefLocation of the Test Xrefs to link to.
java.io.File2.0No${project.reporting.outputDirectory}/xref-test