diff --git a/.pmd/ruleset.xml b/.pmd/ruleset.xml
new file mode 100644
index 000000000000..64efc827de4c
--- /dev/null
+++ b/.pmd/ruleset.xml
@@ -0,0 +1,27 @@
+
+
+
+ Programmatic approach to maintain code quality on large scale.
+ .*/compat/maven-compat/.*
+
+
diff --git a/pom.xml b/pom.xml
index c0386c89308d..e6cf486d30cf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -798,13 +798,20 @@ under the License.
org.apache.maven.plugins
maven-pmd-plugin
-
-
- net.sourceforge.pmd
- pmd-core
- 7.14.0
-
-
+
+ true
+ true
+
+ .pmd/ruleset.xml
+
+
+
+
+
+ check
+
+
+
org.eclipse.sisu
@@ -821,6 +828,10 @@ under the License.
+
+ org.apache.maven.plugins
+ maven-pmd-plugin
+
io.github.olamy.maven.plugins
jacoco-aggregator-maven-plugin