diff --git a/pmd/plugin.jelly b/pmd/plugin.jelly index 6ebfc1c6..fe69a9f9 100644 --- a/pmd/plugin.jelly +++ b/pmd/plugin.jelly @@ -114,7 +114,11 @@ - + + New properties "maven.pmd.failonerror" and "maven.pmd.failonruleviolation" to fail the build if any errors or problems are found. New property "maven.pmd.console" to display pmd errors to the console. Do not generate links to JXR files if they are not created. Use properties maven.jxr.destdir and maven.jxr.destdir.test to generate links from the PMD report to jxr files. diff --git a/pmd/xdocs/properties.xml b/pmd/xdocs/properties.xml index 3b124fc8..3f12ff30 100644 --- a/pmd/xdocs/properties.xml +++ b/pmd/xdocs/properties.xml @@ -101,6 +101,20 @@ Whether or not to display PMD errors to the console. Defaults to false. + + maven.pmd.failonerror + Yes + + Whether or not to fail the build if any errors occur while processing the files. Defaults to false. + + + + maven.pmd.failonruleviolation + Yes + + Whether or not to fail the build if PMD finds any problems. Defaults to false. + +