You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Aldrin (Jira)" <ji...@apache.org> on 2021/09/16 11:39:00 UTC

[jira] [Comment Edited] (MPH-173) An API incompatibility was encountered while executing org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate: java.lang.ExceptionInInitializerError: null

    [ https://issues.apache.org/jira/browse/MPH-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17416052#comment-17416052 ] 

Martin Aldrin edited comment on MPH-173 at 9/16/21, 11:38 AM:
--------------------------------------------------------------

sorry for late reply, I must have missed the updates. 

Anyhow, I have tested this now with JDK17 and it works perfect, In Java 17 the workaround that Ning provided are no longer allowed.

 

When can we expect a new release of maven-help-plugin?


was (Author: martin@aldrin.net):
sorry for late reply, I must have missed the updates. 

Anyhow, I have tested this now with JDK17 and it works perfect, In Java 17 the workaround that Ning provided are no longer allowed.

> An API incompatibility was encountered while executing org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate: java.lang.ExceptionInInitializerError: null
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MPH-173
>                 URL: https://issues.apache.org/jira/browse/MPH-173
>             Project: Maven Help Plugin
>          Issue Type: Bug
>          Components: evaluate
>    Affects Versions: 3.2.0
>         Environment: Redhat 7
>            Reporter: Martin Aldrin
>            Priority: Major
>             Fix For: 3.3.0
>
>
> Exception occur when I try to build with JDK 16
> Command: mvn help:evaluate -f pom.xml -Dexpression=project.properties
> {noformat}
> Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
>  Maven home: maven/3.8.1
>  Java version: 16.0.1, vendor: Azul Systems, Inc., runtime: openjdk/16.0.1
>  Default locale: en_US, platform encoding: ISO-8859-1
>  OS name: "linux", version: "3.10.0-1127.8.2.el7.x86_64", arch: "amd64", family: "unix"
>  [INFO] [jenkins-event-spy] Generate maven-spy-20210609-083439-2219272842220994490755.log.tmp ...
>  [INFO] Scanning for projects...
>  [INFO] 
>  [INFO] -------------< x:x >--------------
>  [INFO] Building x 0.0.1991-SNAPSHOT
>  [INFO] --------------------------------[ jar ]---------------------------------
>  [INFO] 
>  [INFO] — maven-help-plugin:3.2.0:evaluate (default-cli) @ x —
>  [INFO] No artifact parameter specified, using 'x:x:jar:0.0.1991-SNAPSHOT' as project.
>  [INFO] ------------------------------------------------------------------------
>  [INFO] BUILD FAILURE
>  [INFO] ------------------------------------------------------------------------
>  [INFO] Total time: 0.839 s
>  [INFO] Finished at: 2021-06-09T08:34:40+02:00
>  [INFO] ------------------------------------------------------------------------
>  [INFO] [jenkins-event-spy] Generated maven-spy-20210609-083439-2219272842220994490755.log
>  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate (default-cli) on project x: Execution default-cli of goal org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate: java.lang.ExceptionInInitializerError: null
>  [ERROR] -----------------------------------------------------
>  [ERROR] realm = plugin>org.apache.maven.plugins:maven-help-plugin:3.2.0
>  [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
>  [ERROR] urls[0] = .repository/org/apache/maven/plugins/maven-help-plugin/3.2.0/maven-help-plugin-3.2.0.jar
>  [ERROR] urls[1] = .repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
>  [ERROR] urls[2] = .repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
>  [ERROR] urls[3] = .repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
>  [ERROR] urls[4] = .repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
>  [ERROR] urls[5] = .repository/org/codehaus/plexus/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.jar
>  [ERROR] urls[6] = .repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
>  [ERROR] urls[7] = .repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
>  [ERROR] urls[8] = .repository/org/apache/maven/plugin-tools/maven-plugin-tools-generators/3.5.2/maven-plugin-tools-generators-3.5.2.jar
>  [ERROR] urls[9] = .repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/3.5.2/maven-plugin-tools-api-3.5.2.jar
>  [ERROR] urls[10] = .repository/org/codehaus/plexus/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
>  [ERROR] urls[11] = .repository/junit/junit/3.8.1/junit-3.8.1.jar
>  [ERROR] urls[12] = .repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar
>  [ERROR] urls[13] = .repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar
>  [ERROR] urls[14] = .repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
>  [ERROR] urls[15] = .repository/net/sf/jtidy/jtidy/r938/jtidy-r938.jar
>  [ERROR] urls[16] = .repository/org/apache/maven/shared/maven-shared-utils/3.2.1/maven-shared-utils-3.2.1.jar
>  [ERROR] urls[17] = .repository/commons-io/commons-io/2.5/commons-io-2.5.jar
>  [ERROR] urls[18] = .repository/org/apache/maven/shared/maven-artifact-transfer/0.10.0/maven-artifact-transfer-0.10.0.jar
>  [ERROR] urls[19] = .repository/org/apache/maven/shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.jar
>  [ERROR] urls[20] = .repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar
>  [ERROR] urls[21] = .repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
>  [ERROR] urls[22] = .repository/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar
>  [ERROR] urls[23] = .repository/org/apache/maven/reporting/maven-reporting-exec/1.4/maven-reporting-exec-1.4.jar
>  [ERROR] urls[24] = .repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
>  [ERROR] urls[25] = .repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-6/plexus-interactivity-api-1.0-alpha-6.jar
>  [ERROR] urls[26] = .repository/org/codehaus/plexus/plexus-utils/3.2.0/plexus-utils-3.2.0.jar
>  [ERROR] urls[27] = .repository/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar
>  [ERROR] urls[28] = .repository/com/thoughtworks/xstream/xstream/1.4.11.1/xstream-1.4.11.1.jar
>  [ERROR] urls[29] = .repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar
>  [ERROR] urls[30] = .repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar
>  [ERROR] urls[31] = .repository/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar
>  [ERROR] Number of foreign imports: 1
>  [ERROR] import: Entry[import from realm ClassRealm[project>x:0.0.1991-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
>  [ERROR] 
>  [ERROR] -----------------------------------------------------: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @70c0a3d5
>  [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/PluginContainerException]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)