Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-1040

release-prepare: Required class missing org/eclipse/aether/util/version/GenericVersionScheme

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-M1
    • Fix Version/s: 3.0.0
    • Component/s: prepare
    • Labels:
      None

      Description

      I recently upgraded to m-r-p 3.0.0-M1. Now I run into the following issue when executing mvn release:prepare -DdryRun=true on https://github.com/apache/sling-org-apache-sling-installer-core:

      [INFO] [prepare dry-run] 4/17 create-backup-poms
      [INFO] [prepare dry-run] 5/17 map-release-versions
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  1.220 s
      [INFO] Finished at: 2020-02-07T10:27:41+01:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project org.apache.sling.installer.core: Execution default-cli of goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare failed: A required class was missing while executing org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare: org/eclipse/aether/util/version/GenericVersionScheme
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.apache.maven.plugins:maven-release-plugin:3.0.0-M1
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/plugins/maven-release-plugin/3.0.0-M1/maven-release-plugin-3.0.0-M1.jar
      [ERROR] urls[1] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/release/maven-release-oddeven-policy/3.0.0-M1/maven-release-oddeven-policy-3.0.0-M1.jar
      [ERROR] urls[2] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/release/maven-release-api/3.0.0-M1/maven-release-api-3.0.0-M1.jar
      [ERROR] urls[3] = file:/Users/konradwindszus/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
      [ERROR] urls[4] = file:/Users/konradwindszus/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
      [ERROR] urls[5] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/release/maven-release-manager/3.0.0-M1/maven-release-manager-3.0.0-M1.jar
      [ERROR] urls[6] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-6/plexus-interactivity-api-1.0-alpha-6.jar
      [ERROR] urls[7] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
      [ERROR] urls[8] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
      [ERROR] urls[9] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      [ERROR] urls[10] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/shared/maven-invoker/2.2/maven-invoker-2.2.jar
      [ERROR] urls[11] = file:/Users/konradwindszus/.m2/repository/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar
      [ERROR] urls[12] = file:/Users/konradwindszus/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
      [ERROR] urls[13] = file:/Users/konradwindszus/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
      [ERROR] urls[14] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-providers-standard/1.11.2/maven-scm-providers-standard-1.11.2.pom
      [ERROR] urls[15] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-accurev/1.11.2/maven-scm-provider-accurev-1.11.2.jar
      [ERROR] urls[16] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-bazaar/1.11.2/maven-scm-provider-bazaar-1.11.2.jar
      [ERROR] urls[17] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-clearcase/1.11.2/maven-scm-provider-clearcase-1.11.2.jar
      [ERROR] urls[18] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-cvsexe/1.11.2/maven-scm-provider-cvsexe-1.11.2.jar
      [ERROR] urls[19] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-cvs-commons/1.11.2/maven-scm-provider-cvs-commons-1.11.2.jar
      [ERROR] urls[20] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-cvsjava/1.11.2/maven-scm-provider-cvsjava-1.11.2.jar
      [ERROR] urls[21] = file:/Users/konradwindszus/.m2/repository/org/netbeans/lib/cvsclient/20060125/cvsclient-20060125.jar
      [ERROR] urls[22] = file:/Users/konradwindszus/.m2/repository/ch/ethz/ganymed/ganymed-ssh2/build210/ganymed-ssh2-build210.jar
      [ERROR] urls[23] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-gitexe/1.11.2/maven-scm-provider-gitexe-1.11.2.jar
      [ERROR] urls[24] = file:/Users/konradwindszus/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
      [ERROR] urls[25] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-git-commons/1.11.2/maven-scm-provider-git-commons-1.11.2.jar
      [ERROR] urls[26] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-jgit/1.11.2/maven-scm-provider-jgit-1.11.2.jar
      [ERROR] urls[27] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jgit/org.eclipse.jgit/4.5.4.201711221230-r/org.eclipse.jgit-4.5.4.201711221230-r.jar
      [ERROR] urls[28] = file:/Users/konradwindszus/.m2/repository/com/jcraft/jsch/0.1.53/jsch-0.1.53.jar
      [ERROR] urls[29] = file:/Users/konradwindszus/.m2/repository/com/googlecode/javaewah/JavaEWAH/0.7.9/JavaEWAH-0.7.9.jar
      [ERROR] urls[30] = file:/Users/konradwindszus/.m2/repository/org/apache/httpcomponents/httpclient/4.3.6/httpclient-4.3.6.jar
      [ERROR] urls[31] = file:/Users/konradwindszus/.m2/repository/org/apache/httpcomponents/httpcore/4.3.3/httpcore-4.3.3.jar
      [ERROR] urls[32] = file:/Users/konradwindszus/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
      [ERROR] urls[33] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-hg/1.11.2/maven-scm-provider-hg-1.11.2.jar
      [ERROR] urls[34] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-perforce/1.11.2/maven-scm-provider-perforce-1.11.2.jar
      [ERROR] urls[35] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-starteam/1.11.2/maven-scm-provider-starteam-1.11.2.jar
      [ERROR] urls[36] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-svnexe/1.11.2/maven-scm-provider-svnexe-1.11.2.jar
      [ERROR] urls[37] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-synergy/1.11.2/maven-scm-provider-synergy-1.11.2.jar
      [ERROR] urls[38] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-vss/1.11.2/maven-scm-provider-vss-1.11.2.jar
      [ERROR] urls[39] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-tfs/1.11.2/maven-scm-provider-tfs-1.11.2.jar
      [ERROR] urls[40] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-integrity/1.11.2/maven-scm-provider-integrity-1.11.2.jar
      [ERROR] urls[41] = file:/Users/konradwindszus/.m2/repository/com/mks/api/mksapi-jar/4.10.9049/mksapi-jar-4.10.9049.jar
      [ERROR] urls[42] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy-all/1.7.6/groovy-all-1.7.6.jar
      [ERROR] urls[43] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-jazz/1.11.2/maven-scm-provider-jazz-1.11.2.jar
      [ERROR] urls[44] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-manager-plexus/1.8/maven-scm-manager-plexus-1.8.jar
      [ERROR] urls[45] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-provider-svn-commons/1.11.2/maven-scm-provider-svn-commons-1.11.2.jar
      [ERROR] urls[46] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/shared/maven-artifact-transfer/0.9.1/maven-artifact-transfer-0.9.1.jar
      [ERROR] urls[47] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.jar
      [ERROR] urls[48] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
      [ERROR] urls[49] = file:/Users/konradwindszus/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
      [ERROR] urls[50] = file:/Users/konradwindszus/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
      [ERROR] urls[51] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.jar
      [ERROR] urls[52] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/scm/maven-scm-api/1.11.2/maven-scm-api-1.11.2.jar
      [ERROR] urls[53] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.jar
      [ERROR] urls[54] = file:/Users/konradwindszus/.m2/repository/org/jdom/jdom/1.1/jdom-1.1.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      [ERROR] 
      [ERROR] -----------------------------------------------------
      [ERROR] : org.eclipse.aether.util.version.GenericVersionScheme
      [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
      

      The problem seems to be that aether-util is an optional dependency in https://github.com/apache/maven-release/blob/4494543ad226ed51b21fd5778a4f8ea4edd284c5/maven-release-api/pom.xml#L59, but it seems to be required for https://github.com/apache/maven-release/tree/master/maven-release-policies/maven-release-oddeven-policy. The latter does only depend on that dependency with scope "test" (https://github.com/apache/maven-release/blob/4494543ad226ed51b21fd5778a4f8ea4edd284c5/maven-release-policies/maven-release-oddeven-policy/pom.xml#L64)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                kwin Konrad Windszus
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: