You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ad...@apache.org on 2026/09/15 17:15:11 UTC
(maven-pmd-plugin) branch master updated: Enable IT MPMD-304-toolchain-support for maven4 (#736)
This is an automated email from the ASF dual-hosted git repository.
adangel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 740e1ac Enable IT MPMD-304-toolchain-support for maven4 (#736)
740e1ac is described below
commit 740e1ac6d679dca46c63709e5cdfc154417fdaa7
Author: Andreas Dangel <ad...@apache.org>
AuthorDate: Tue Sep 15 19:15:05 2026 +0200
Enable IT MPMD-304-toolchain-support for maven4 (#736)
Just use java17 to avoid UnsupportedClassVersionError. Maven4 requires java 17+.
---
src/it/MPMD-304-toolchain-support/invoker.properties | 12 +-----------
src/it/MPMD-304-toolchain-support/pom.xml | 2 +-
2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/src/it/MPMD-304-toolchain-support/invoker.properties b/src/it/MPMD-304-toolchain-support/invoker.properties
index 7c1dbe3..0027722 100644
--- a/src/it/MPMD-304-toolchain-support/invoker.properties
+++ b/src/it/MPMD-304-toolchain-support/invoker.properties
@@ -15,15 +15,5 @@
# specific language governing permissions and limitations
# under the License.
-# the jdk toolchain "11" is selected in pom.xml
-invoker.toolchain.jdk.version = 11
-
+invoker.toolchain.jdk.version = 17
invoker.goals = clean verify
-
-# Restricting this test to maven 3 only, which is compatible with Java 8.
-# With the toolchain setting, PmdExecutor will be called with Java 11
-# and uses classes from Maven (e.g. MojoExecutionException). Maven 4 requires
-# at least Java 17, so maven-pmd-plugin/PMD can't be executed anymore on
-# Java 11.
-# TODO: Make toolchain support maven4 compatible
-invoker.maven.version=!4+
diff --git a/src/it/MPMD-304-toolchain-support/pom.xml b/src/it/MPMD-304-toolchain-support/pom.xml
index 8e2de9d..41ca8c6 100644
--- a/src/it/MPMD-304-toolchain-support/pom.xml
+++ b/src/it/MPMD-304-toolchain-support/pom.xml
@@ -28,7 +28,7 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <javaVersion>11</javaVersion>
+ <javaVersion>17</javaVersion>
</properties>
<build>