@@ -793,13 +793,22 @@ under the License.</licenseText>
793793 <plugin >
794794 <groupId >org.apache.maven.plugins</groupId >
795795 <artifactId >maven-pmd-plugin</artifactId >
796- <dependencies >
797- <dependency >
798- <groupId >net.sourceforge.pmd</groupId >
799- <artifactId >pmd-core</artifactId >
800- <version >7.13.0</version >
801- </dependency >
802- </dependencies >
796+ <configuration >
797+ <analysisCache >true</analysisCache >
798+ <analysisCacheLocation >.pmd/.cache</analysisCacheLocation >
799+ <printFailingErrors >true</printFailingErrors >
800+ <rulesets >
801+ <ruleset >.pmd/ruleset.xml</ruleset >
802+ </rulesets >
803+ </configuration >
804+ <executions >
805+ <execution >
806+ <goals >
807+ <goal >check</goal >
808+ </goals >
809+ <phase >verify</phase >
810+ </execution >
811+ </executions >
803812 </plugin >
804813 <plugin >
805814 <groupId >org.eclipse.sisu</groupId >
@@ -816,6 +825,10 @@ under the License.</licenseText>
816825 </plugins >
817826 </pluginManagement >
818827 <plugins >
828+ <plugin >
829+ <groupId >org.apache.maven.plugins</groupId >
830+ <artifactId >maven-pmd-plugin</artifactId >
831+ </plugin >
819832 <plugin >
820833 <groupId >io.github.olamy.maven.plugins</groupId >
821834 <artifactId >jacoco-aggregator-maven-plugin</artifactId >
@@ -853,6 +866,7 @@ under the License.</licenseText>
853866 <exclude >**/*.odg</exclude >
854867 <exclude >**/*.svg</exclude >
855868 <exclude >.asf.yaml</exclude >
869+ <exclude >.pmd/ruleset.xml</exclude >
856870 <exclude >.mvn/**</exclude >
857871 <exclude >.jbang/**</exclude >
858872 <!--
@@ -1176,5 +1190,19 @@ under the License.</licenseText>
11761190 </plugins >
11771191 </build >
11781192 </profile >
1193+ <profile >
1194+ <id >pmd</id >
1195+ <activation >
1196+ <activeByDefault >true</activeByDefault >
1197+ </activation >
1198+ <build >
1199+ <plugins >
1200+ <plugin >
1201+ <groupId >org.apache.maven.plugins</groupId >
1202+ <artifactId >maven-pmd-plugin</artifactId >
1203+ </plugin >
1204+ </plugins >
1205+ </build >
1206+ </profile >
11791207 </profiles >
11801208</project >
0 commit comments