Skip to content

Commit 2d8b9ef

Browse files
author
Vincent Potucek
committed
[FIX-PMD] maven-pmd-plugin: reactivate PMD - minimumPriority 1
1 parent ffd30a3 commit 2d8b9ef

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
.factorypath
1717
.vscode/
1818
repo/
19-
/*.svg
19+
/*.svg
20+
/**/pmd.cache

pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,17 +799,36 @@ under the License.</licenseText>
799799
<plugin>
800800
<groupId>org.apache.maven.plugins</groupId>
801801
<artifactId>maven-pmd-plugin</artifactId>
802+
<configuration>
803+
<analysisCache>true</analysisCache>
804+
<minimumPriority>1</minimumPriority>
805+
<printFailingErrors>true</printFailingErrors>
806+
</configuration>
802807
<dependencies>
803808
<dependency>
804809
<groupId>net.sourceforge.pmd</groupId>
805810
<artifactId>pmd-core</artifactId>
806811
<version>7.12.0</version>
807812
</dependency>
808813
</dependencies>
814+
<executions>
815+
<execution>
816+
<id>maven-pmd-plugin</id>
817+
<goals>
818+
<goal>check</goal>
819+
</goals>
820+
<phase>verify</phase>
821+
</execution>
822+
</executions>
809823
</plugin>
810824
</plugins>
811825
</pluginManagement>
812826
<plugins>
827+
<!-- why profile not working? -->
828+
<plugin>
829+
<groupId>org.apache.maven.plugins</groupId>
830+
<artifactId>maven-pmd-plugin</artifactId>
831+
</plugin>
813832
<plugin>
814833
<groupId>io.github.olamy.maven.plugins</groupId>
815834
<artifactId>jacoco-aggregator-maven-plugin</artifactId>
@@ -1170,5 +1189,19 @@ under the License.</licenseText>
11701189
</plugins>
11711190
</build>
11721191
</profile>
1192+
<profile>
1193+
<id>pmd</id>
1194+
<activation>
1195+
<activeByDefault>true</activeByDefault>
1196+
</activation>
1197+
<build>
1198+
<plugins>
1199+
<plugin>
1200+
<groupId>org.apache.maven.plugins</groupId>
1201+
<artifactId>maven-pmd-plugin</artifactId>
1202+
</plugin>
1203+
</plugins>
1204+
</build>
1205+
</profile>
11731206
</profiles>
11741207
</project>

0 commit comments

Comments
 (0)