diff --git a/plugins/network-elements/nicira-nvp/pom.xml b/plugins/network-elements/nicira-nvp/pom.xml
index b046610f274..86a169932f0 100644
--- a/plugins/network-elements/nicira-nvp/pom.xml
+++ b/plugins/network-elements/nicira-nvp/pom.xml
@@ -50,6 +50,10 @@
+
+ org.apache.maven.plugins
+ maven-pmd-plugin
+
diff --git a/pom.xml b/pom.xml
index 1763d687230..e7f56f96cce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -904,8 +904,18 @@
org.apache.maven.plugins
maven-pmd-plugin
3.1
+
+
+ org.apache.cloudstack
+ checkstyle
+ ${project.version}
+
+
false
+
+ cloud-pmd.xml
+
diff --git a/tools/checkstyle/src/main/resources/cloud-pmd.xml b/tools/checkstyle/src/main/resources/cloud-pmd.xml
new file mode 100644
index 00000000000..ec2914f68f4
--- /dev/null
+++ b/tools/checkstyle/src/main/resources/cloud-pmd.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ Ruleset that brings all the rulesets we want from the pmd jar, because
+ the maven-pmd-plugin doesn't find them otherwise. This is also the place
+ to add our own future rulesets, if any.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+