Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-27902

nexus-staging-maven-plugin not working with java 16

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: staging-maven-plugin
    • Labels:

      Description

      Seeing "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" error with latest 1.6.8 version:

       

      [INFO] --- nexus-staging-maven-plugin:1.6.8:deploy (injected-nexus-deploy) @ qollider ---
      2095[INFO] Performing local staging (local stagingDirectory="/home/runner/work/qollider/qollider/target/nexus-staging/staging")...
      2096[INFO]  + Using server credentials "ossrh" from Maven settings.
      2097[INFO] ------------------------------------------------------------------------
      2098[INFO] BUILD FAILURE
      2099[INFO] ------------------------------------------------------------------------
      2100[INFO] Total time:  17.489 s
      2101[INFO] Finished at: 2021-06-11T12:55:37Z
      2102[INFO] ------------------------------------------------------------------------
      2103Error:  Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (injected-nexus-deploy) on project qollider: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy failed: An API incompatibility was encountered while executing org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy: java.lang.ExceptionInInitializerError: null
      2104Error:  -----------------------------------------------------
      2105Error:  realm =    extension>org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8
      2106Error:  strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      2107Error:  urls[0] = file:/home/runner/.m2/repository/org/sonatype/plugins/nexus-staging-maven-plugin/1.6.8/nexus-staging-maven-plugin-1.6.8.jar
      2108Error:  urls[1] = file:/home/runner/.m2/repository/org/sonatype/nexus/maven/nexus-common/1.6.8/nexus-common-1.6.8.jar
      2109Error:  urls[2] = file:/home/runner/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
      2110Error:  urls[3] = file:/home/runner/.m2/repository/org/sonatype/plexus/plexus-cipher/1.7/plexus-cipher-1.7.jar
      2111Error:  urls[4] = file:/home/runner/.m2/repository/com/google/guava/guava/14.0.1/guava-14.0.1.jar
      2112Error:  urls[5] = file:/home/runner/.m2/repository/org/sonatype/nexus/nexus-client-core/2.14.3-02/nexus-client-core-2.14.3-02.jar
      2113Error:  urls[6] = file:/home/runner/.m2/repository/org/sonatype/nexus/plugins/nexus-restlet1x-model/2.14.3-02/nexus-restlet1x-model-2.14.3-02.jar
      2114Error:  urls[7] = file:/home/runner/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
      2115Error:  urls[8] = file:/home/runner/.m2/repository/com/intellij/annotations/9.0.4/annotations-9.0.4.jar
      2116Error:  urls[9] = file:/home/runner/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
      2117Error:  urls[10] = file:/home/runner/.m2/repository/com/thoughtworks/xstream/xstream/1.4.7/xstream-1.4.7.jar
      2118Error:  urls[11] = file:/home/runner/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar
      2119Error:  urls[12] = file:/home/runner/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar
      2120Error:  urls[13] = file:/home/runner/.m2/repository/joda-time/joda-time/2.2/joda-time-2.2.jar
      2121Error:  urls[14] = file:/home/runner/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
      2122Error:  urls[15] = file:/home/runner/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.3/commons-beanutils-core-1.8.3.jar
      2123Error:  urls[16] = file:/home/runner/.m2/repository/org/sonatype/sisu/siesta/siesta-client/1.7/siesta-client-1.7.jar
      2124Error:  urls[17] = file:/home/runner/.m2/repository/org/sonatype/sisu/siesta/siesta-common/1.7/siesta-common-1.7.jar
      2125Error:  urls[18] = file:/home/runner/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar
      2126Error:  urls[19] = file:/home/runner/.m2/repository/com/sun/jersey/jersey-core/1.17.1/jersey-core-1.17.1.jar
      2127Error:  urls[20] = file:/home/runner/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
      2128Error:  urls[21] = file:/home/runner/.m2/repository/com/sun/jersey/jersey-client/1.17.1/jersey-client-1.17.1.jar
      2129Error:  urls[22] = file:/home/runner/.m2/repository/com/sun/jersey/contribs/jersey-apache-client4/1.17.1/jersey-apache-client4-1.17.1.jar
      2130Error:  urls[23] = file:/home/runner/.m2/repository/org/sonatype/sisu/siesta/siesta-jackson/1.7/siesta-jackson-1.7.jar
      2131Error:  urls[24] = file:/home/runner/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.3.1/jackson-annotations-2.3.1.jar
      2132Error:  urls[25] = file:/home/runner/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.3.1/jackson-core-2.3.1.jar
      2133Error:  urls[26] = file:/home/runner/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.3.1/jackson-databind-2.3.1.jar
      2134Error:  urls[27] = file:/home/runner/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.3.1/jackson-jaxrs-json-provider-2.3.1.jar
      2135Error:  urls[28] = file:/home/runner/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.3.1/jackson-jaxrs-base-2.3.1.jar
      2136Error:  urls[29] = file:/home/runner/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.3.1/jackson-module-jaxb-annotations-2.3.1.jar
      2137Error:  urls[30] = file:/home/runner/.m2/repository/org/apache/httpcomponents/httpclient/4.3.5/httpclient-4.3.5.jar
      2138Error:  urls[31] = file:/home/runner/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
      2139Error:  urls[32] = file:/home/runner/.m2/repository/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar
      2140Error:  urls[33] = file:/home/runner/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.7/jcl-over-slf4j-1.7.7.jar
      2141Error:  urls[34] = file:/home/runner/.m2/repository/org/sonatype/spice/zapper/spice-zapper/1.3/spice-zapper-1.3.jar
      2142Error:  urls[35] = file:/home/runner/.m2/repository/org/fusesource/hawtbuf/hawtbuf-proto/1.9/hawtbuf-proto-1.9.jar
      2143Error:  urls[36] = file:/home/runner/.m2/repository/org/fusesource/hawtbuf/hawtbuf/1.9/hawtbuf-1.9.jar
      2144Error:  urls[37] = file:/home/runner/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.8/plexus-utils-3.0.8.jar
      2145Error:  urls[38] = file:/home/runner/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.15/plexus-interpolation-1.15.jar
      2146Error:  urls[39] = file:/home/runner/.m2/repository/ch/qos/logback/logback-core/1.1.2/logback-core-1.1.2.jar
      2147Error:  urls[40] = file:/home/runner/.m2/repository/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar
      2148Error:  Number of foreign imports: 1
      2149Error:  import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      2150Error:  
      2151Error:  -----------------------------------------------------: 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 @70228253
      2152Error:  -> [Help 1]
      2153Error:  
      2154Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
      2155Error:  Re-run Maven using the -X switch to enable full debug logging.
      2156Error:  
      2157Error:  For more information about the errors and possible solutions, please read the following articles:
      2158Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
      2159Error: Process completed with exit code 1. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              galderz Galder Zamarreño
              Last Updated By:
              Stefano Cordio Stefano Cordio
              Votes:
              13 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title