diff --git a/src/it/MPMD-379-JDK21/invoker.properties b/src/it/MPMD-379-JDK21/invoker.properties index 03135633..451e64ea 100644 --- a/src/it/MPMD-379-JDK21/invoker.properties +++ b/src/it/MPMD-379-JDK21/invoker.properties @@ -18,9 +18,8 @@ # available toolchains under linux: # https://github.com/apache/infrastructure-p6/blob/production/modules/build_nodes/files/toolchains.xml -# the jdk toolchain "21:openjdk" is selected in pom.xml +# the jdk toolchain "21" is selected in pom.xml invoker.toolchain.jdk.version = 21 -invoker.toolchain.jdk.vendor = openjdk invoker.goals = clean verify invoker.buildResult = failure diff --git a/src/it/MPMD-379-JDK21/pom.xml b/src/it/MPMD-379-JDK21/pom.xml index 89d97143..d1580654 100644 --- a/src/it/MPMD-379-JDK21/pom.xml +++ b/src/it/MPMD-379-JDK21/pom.xml @@ -39,8 +39,7 @@ under the License. maven-compiler-plugin @compilerPluginVersion@ - ${javaVersion} - ${javaVersion} + ${javaVersion} @@ -85,7 +84,6 @@ under the License. ${javaVersion} - openjdk diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index e781b861..5b3a14c8 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -64,18 +64,15 @@ public class PmdReport extends AbstractPmdReport { /** * The target JDK to analyze based on. Should match the source used in the compiler plugin. - * Valid values depend on the used PMD version. With the default PMD version valid values are - * currently 1.3, 1.4, 1.5, 1.6, 1.7, - * 1.8, 9, 10, 11, 12, 13, - * 14, 15, 16, 17, 18, 19, - * 20, 21, and 22. + * Valid values depend on the used PMD version. Most common values are + * 8, 11, 17, and 21. * - *

You can override the default PMD version by specifying PMD as a dependency, - * see Upgrading PMD at Runtime.

- * - *

To see the supported Java versions for each PMD version, see + *

The full list of supported Java versions for each PMD version is available at * Java support (PMD).

* + *

You can override the default PMD version by specifying PMD as a dependency, + * see Upgrading PMD at Runtime.

+ * *

* Note: this parameter is only used if the language parameter is set to java. *