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
+
+
+
+