[
https://issues.apache.org/jira/browse/MPH-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17626015#comment-17626015
]
Piotr Zygielo commented on MPH-191:
-----------------------------------
help:evaluate works for me with JDK18:
{noformat}
$ mvn -V org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate
-Dexpression=project.properties -N
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /usr/local/maven
Java version: 18.0.1.1, vendor: Oracle Corporation, runtime:
/usr/local/jdk-18.0.1.1
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.19.16-100.fc35.x86_64", arch: "amd64", family:
"unix"
[INFO] Scanning for projects...
[INFO]
[INFO] -------------< org.apache.maven.plugins:maven-help-plugin >-------------
[INFO] Building Apache Maven Help Plugin 3.3.1-SNAPSHOT
[INFO] ----------------------------[ maven-plugin ]----------------------------
[INFO]
[INFO] --- maven-help-plugin: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.3.1-SNAPSHOT' as
project.
[INFO]
<properties>
<assembly.tarLongFileMode>posix</assembly.tarLongFileMode>
<checkstyle.violation.ignore>RedundantThrows,NewlineAtEndOfFile,ParameterNumber,MethodLength,FileLength</checkstyle.violation.ignore>
<distMgmtSnapshotsName>Apache Development Snapshot
Repository</distMgmtSnapshotsName>
<distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
<fluidoSkinVersion>1.11.1</fluidoSkinVersion>
<gpg.useagent>true</gpg.useagent>
<javaVersion>8</javaVersion>
<maven.compiler.createMissingPackageInfoClass>false</maven.compiler.createMissingPackageInfoClass>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.gitcommitid.nativegit>true</maven.gitcommitid.nativegit>
<maven.plugin.tools.version>3.6.4</maven.plugin.tools.version>
<maven.site.cache>.../maven-sites</maven.site.cache>
<maven.site.path>plugins-archives/maven-help-plugin-LATEST</maven.site.path>
<mavenPluginToolsVersion>3.6.4</mavenPluginToolsVersion>
<mavenVersion>3.2.5</mavenVersion>
<minimalJavaBuildVersion>1.8</minimalJavaBuildVersion>
<minimalMavenBuildVersion>3.2.5</minimalMavenBuildVersion>
<organization.logo>https://www.apache.org/images/asf_logo_wide_2016.png</organization.logo>
<project.build.outputTimestamp>2022-08-14T12:24:27Z</project.build.outputTimestamp>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<sisuVersion>0.3.5</sisuVersion>
<sonar.host.url>https://builds.apache.org/analysis/</sonar.host.url>
<sourceReleaseAssemblyDescriptor>source-release</sourceReleaseAssemblyDescriptor>
<surefire.reportFormat>plain</surefire.reportFormat>
<surefire.version>3.0.0-M7</surefire.version>
</properties>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.272 s
[INFO] Finished at: 2022-10-29T09:03:08+02:00
[INFO] ------------------------------------------------------------------------
{noformat}
> help:evaluate fails on Java 18 - java.util.Hashtable.table not accessible
> -------------------------------------------------------------------------
>
> Key: MPH-191
> URL: https://issues.apache.org/jira/browse/MPH-191
> Project: Maven Help Plugin
> Issue Type: Bug
> Components: evaluate
> Affects Versions: 3.3.0
> Reporter: Ondrej Zizka
> Priority: Minor
>
> When running help:evaluate:
> {noformat}
> 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
> {noformat}
> {noformat}
> $ $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{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)