Parameterize PMD plugin with its underlying implementation version and

use latest.
This commit is contained in:
Gary Gregory 2021-11-18 15:13:03 -05:00
parent 8f48ed8adf
commit 6cb2e5a937
1 changed files with 18 additions and 4 deletions

22
pom.xml
View File

@ -651,6 +651,8 @@
<commons.surefire.version>3.0.0-M5</commons.surefire.version>
<commons.javadoc.version>3.3.1</commons.javadoc.version>
<commons.japicmp.version>0.15.3</commons.japicmp.version>
<commons.pmd.version>3.15.0</commons.pmd.version>
<commons.pmd-impl.version>6.40.0</commons.pmd-impl.version>
<!-- Commons Release Plugin -->
<commons.bc.version>3.12.0</commons.bc.version>
@ -679,6 +681,21 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${commons.pmd.version}</version>
<dependencies>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java8</artifactId>
<version>${commons.pmd-impl.version}</version>
</dependency>
</dependencies>
<configuration>
<targetJdk>${maven.compiler.target}</targetJdk>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
@ -861,11 +878,8 @@
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.15.0</version>
<configuration>
<targetJdk>${maven.compiler.target}</targetJdk>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>