From df911baf368a480715c7f6e31b6cc7791f8c9748 Mon Sep 17 00:00:00 2001 From: Ilkka Seppala Date: Sun, 27 Dec 2015 21:21:31 +0200 Subject: [PATCH] Added maven pmd plugin and configured it to fail build when violations are found #327 --- exclude-pmd.properties | 3 +++ pom.xml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 exclude-pmd.properties diff --git a/exclude-pmd.properties b/exclude-pmd.properties new file mode 100644 index 000000000..d97b3b827 --- /dev/null +++ b/exclude-pmd.properties @@ -0,0 +1,3 @@ +com.iluwatar.servicelayer.common.BaseEntity=UnusedPrivateField +com.iluwatar.doublechecked.locking.App=EmptyStatementNotInLoop,EmptyWhileStmt +com.iluwatar.doublechecked.locking.InventoryTest=EmptyStatementNotInLoop,EmptyWhileStmt diff --git a/pom.xml b/pom.xml index 1285c8108..f5f32b177 100644 --- a/pom.xml +++ b/pom.xml @@ -296,7 +296,37 @@ -Xmx1024M ${argLine} + + org.apache.maven.plugins + maven-pmd-plugin + 3.6 + + true + 5 + true + + + + + check + + + exclude-pmd.properties + + + + + + + + org.apache.maven.plugins + maven-pmd-plugin + 3.6 + + + +