From bb9a3d67a30f0e08d4d56b7ff7dcb965ef555746 Mon Sep 17 00:00:00 2001 From: aheritier Date: Fri, 3 Feb 2006 22:50:30 +0000 Subject: [PATCH] MPPMD-21 : New properties "maven.pmd.failonerror" and "maven.pmd.failonruleviolation" to fail the build if any errors or problems are found. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@374770 13f79535-47bb-0310-9956-ffa450edef68 --- pmd/plugin.jelly | 6 +++++- pmd/plugin.properties | 6 +++++- pmd/xdocs/changes.xml | 1 + pmd/xdocs/properties.xml | 14 ++++++++++++++ 4 files changed, 25 insertions(+), 2 deletions(-) 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. + +