Skip to content

Commit 1c7544d

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

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-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+
/**/.cache

pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,17 +799,37 @@ 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+
<analysisCacheLocation>${project.basedir}/.pmd/.cache</analysisCacheLocation>
805+
<minimumPriority>1</minimumPriority>
806+
<printFailingErrors>true</printFailingErrors>
807+
</configuration>
802808
<dependencies>
803809
<dependency>
804810
<groupId>net.sourceforge.pmd</groupId>
805811
<artifactId>pmd-core</artifactId>
806812
<version>7.12.0</version>
807813
</dependency>
808814
</dependencies>
815+
<executions>
816+
<execution>
817+
<id>maven-pmd-plugin</id>
818+
<goals>
819+
<goal>check</goal>
820+
</goals>
821+
<phase>verify</phase>
822+
</execution>
823+
</executions>
809824
</plugin>
810825
</plugins>
811826
</pluginManagement>
812827
<plugins>
828+
<!-- why profile not working? -->
829+
<plugin>
830+
<groupId>org.apache.maven.plugins</groupId>
831+
<artifactId>maven-pmd-plugin</artifactId>
832+
</plugin>
813833
<plugin>
814834
<groupId>io.github.olamy.maven.plugins</groupId>
815835
<artifactId>jacoco-aggregator-maven-plugin</artifactId>
@@ -1170,5 +1190,19 @@ under the License.</licenseText>
11701190
</plugins>
11711191
</build>
11721192
</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>
11731207
</profiles>
11741208
</project>

0 commit comments

Comments
 (0)