Skip to content

[MPH-210] Failure to evaluate on Maven 3.9 + JDK 21 #327

@jira-importer

Description

@jira-importer

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions