GeezerVison is showing github.com — [MPH-210] Failure to evaluate on Maven 3.9 + JDK 21 · Issue #327 · apache/maven-help-plugin
[MPH-210] Failure to evaluate on Maven 3.9 + JDK 21 #327
Description
Guillaume Nodet opened MPH-210 and commented
Note that this only happens on JDK >= 21 and Maven 3.x.
➜ maven-help-plugin git:(master) ✗ mvn -V help:evaluate -Dexpression=project.build.resources
Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Maven home: /Users/gnodet/.sdkman/candidates/maven/3.9.5
Java version: 21, vendor: Oracle Corporation, runtime: /Users/gnodet/.sdkman/candidates/java/21-open
Default locale: en_FR, platform encoding: UTF-8
OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"
[INFO] Scanning for projects...
[INFO]
[INFO] -------------< org.apache.maven.plugins:maven-help-plugin >-------------
[INFO] Building Apache Maven Help Plugin 3.4.1-SNAPSHOT
[INFO] from pom.xml
[INFO] ----------------------------[ maven-plugin ]----------------------------
[INFO]
[INFO] --- help:3.3.0:evaluate (default-cli) @ maven-help-plugin ---
[INFO] No artifact parameter specified, using 'org.apache.maven.plugins:maven-help-plugin:maven-plugin:3.4.1-SNAPSHOT' as project.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.586 s
[INFO] Finished at: 2023-10-19T15:28:12+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate (default-cli) on project maven-help-plugin: Execution default-cli of goal org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate failed: No converter available
[ERROR] ---- Debugging information ----
[ERROR] message : No converter available
[ERROR] type : org.apache.maven.model.merge.ModelMerger$MergingList
[ERROR] converter : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
[ERROR] message[1] : Unable to make field protected transient int java.util.AbstractList.modCount accessible: module java.base does not "opens java.util" to unnamed module @10c47c79
[ERROR] -------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Issue Links:
- MPH-211 Upgrade maven-plugin parent to 41
("is blocked by")
Activity
hupling commented on Oct 31, 2025
i have the same problem, but only on windows
ky0n commented on Nov 22, 2025
Adding --add-opens=java.base/java.util=ALL-UNNAMED to the mavenOpts prevents the error. Not a fix, but it's a workaround.
Java-11 does not need it, but at least Java-17 needs the mavenOpts. Workaround tested with Java-17,21,25.
added a commit that references this issue
on Aug 21, 2026This issue will close once commit eb52c5f is merged into the 'master' branch.eb52c5f added 3 commits that reference this issue
on Sep 4, 2026This issue will close once commit 5ac0be0 is merged into the 'master' branch.5ac0be0 This issue will close once commit 99b6943 is merged into the 'master' branch.99b6943 This issue will close once commit 93f3845 is merged into the 'master' branch.93f3845 added a commit that references this issue
on Nov 14, 2026This issue will close once commit b7e04b5 is merged into the 'master' branch.b7e04b5
Metadata
Metadata
Development
No branches or pull requestsIssue actions