[MPH-191] help:evaluate fails on Java 18 - java.util.Hashtable.table not accessible

Open
#166 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
build-system, cli

Research direction

Start by reproducing the help:evaluate command shown in the report on Java 18 and inspect the maven-help-plugin 3.3.0 evaluation path involved in the failure. Done means the command completes without the XStream accessibility error and produces the requested project.properties output.

Written by the indexing model from the issue text.

Description

bug priority:minor

Ondrej Zizka opened MPH-191 and commented

When running help:evaluate:

com.thoughtworks.xstream.converters.reflection.ReflectionConverter[ERROR] message[2]          : Unable to make field private transient java.util.Hashtable$Entry[] java.util.Hashtable.table accessible: module java.base does not "opens java.util" to unnamed module @4fc3529


$ $MVN $MVN_OPTS help:system help:effective-settings help:effective-pom dependency:tree help:evaluate -Dexpression=project.properties -q -DforceStdout[ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate (default-cli) on project tracker-service-app: 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.plugins.help.AbstractEffectiveMojo$SortedProperties[ERROR] converter           : com.thoughtworks.xstream.converters.reflection.SerializableConverter[ERROR] message[1]          : Unable to make private void java.util.Hashtable.readObject(java.io.ObjectInputStream) throws java.io.IOException,java.lang.ClassNotFoundException accessible: module java.base does not "opens java.util" to unnamed module @4fc3529[ERROR] converter[1]        : com.thoughtworks.xstream.converters.reflection.ReflectionConverter[ERROR] message[2]          : Unable to make field private transient java.util.Hashtable$Entry[] java.util.Hashtable.table accessible: module java.base does not "opens java.util" to unnamed module @4fc3529

Affects: 3.3.0

Dominant language
Java
Stars
29
Forks
42
Avg merge
23h 15m
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-help-plugin

All issues in apache/maven-help-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.