Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9032

Problem releaseing with Parent 36: NoClassDefFoundError: org/apache/maven/shared/release/env/ReleaseEnvironment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Parent 36, Bundle Parent 36
    • Parent 37, Bundle Parent 37
    • Tooling
    • None

    Description

      i've problems releasing projects/bundles with parent 36 - e.g. when executing mvn release:prepare on
      https://github.com/apache/sling-org-apache-sling-testing-resourceresolver-mock

      this fails immediately (before prompting for the version numbers) with:

      [INFO] Scanning for projects...
      [INFO]
      [INFO] --< org.apache.sling:org.apache.sling.testing.resourceresolver-mock >---
      [INFO] Building Apache Sling Testing Resource Resolver Mock 1.1.25-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO]
      [INFO] --- maven-release-plugin:3.0.0-M1:prepare (default-cli) @ org.apache.sling.testing.resourceresolver-mock ---
      [WARNING] Error injecting: org.apache.maven.plugins.release.PrepareReleaseMojo
      java.lang.NoClassDefFoundError: org/apache/maven/shared/release/env/ReleaseEnvironment
          at java.lang.Class.getDeclaredConstructors0 (Native Method)
          at java.lang.Class.privateGetDeclaredConstructors (Class.java:2671)
          at java.lang.Class.getDeclaredConstructors (Class.java:2020)
          at com.google.inject.spi.InjectionPoint.forConstructorOf (InjectionPoint.java:245)
          at com.google.inject.internal.ConstructorBindingImpl.create (ConstructorBindingImpl.java:115)
          at com.google.inject.internal.InjectorImpl.createUninitializedBinding (InjectorImpl.java:706)
          at com.google.inject.internal.InjectorImpl.createJustInTimeBinding (InjectorImpl.java:930)
          at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive (InjectorImpl.java:852)
          at com.google.inject.internal.InjectorImpl.getJustInTimeBinding (InjectorImpl.java:291)
          at com.google.inject.internal.InjectorImpl.getBindingOrThrow (InjectorImpl.java:222)
          at com.google.inject.internal.InjectorImpl.getProviderOrThrow (InjectorImpl.java:1040)
          at com.google.inject.internal.InjectorImpl.getProvider (InjectorImpl.java:1071)
          at com.google.inject.internal.InjectorImpl.getProvider (InjectorImpl.java:1034)
          at com.google.inject.internal.InjectorImpl.getInstance (InjectorImpl.java:1086)
          at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:48)
          at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:85)
          at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:57)
          at com.google.inject.internal.ProviderInternalFactory$1.call (ProviderInternalFactory.java:66)
          at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:112)
          at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:127)
          at com.google.inject.internal.ProvisionListenerStackCallback.provision (ProvisionListenerStackCallback.java:66)
          at com.google.inject.internal.ProviderInternalFactory.circularGet (ProviderInternalFactory.java:61)
          at com.google.inject.internal.InternalFactoryToInitializableAdapter.get (InternalFactoryToInitializableAdapter.java:47)
          at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1050)
          at org.eclipse.sisu.inject.Guice4$1.get (Guice4.java:162)
          at org.eclipse.sisu.inject.LazyBeanEntry.getValue (LazyBeanEntry.java:81)
          at org.eclipse.sisu.plexus.LazyPlexusBean.getValue (LazyPlexusBean.java:51)
          at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:263)
          at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:255)
          at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo (DefaultMavenPluginManager.java:520)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:124)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:498)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.release.env.ReleaseEnvironment
          at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
          at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
          at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
          at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
          at java.lang.Class.getDeclaredConstructors0 (Native Method)
          at java.lang.Class.privateGetDeclaredConstructors (Class.java:2671)
          at java.lang.Class.getDeclaredConstructors (Class.java:2020)
          at com.google.inject.spi.InjectionPoint.forConstructorOf (InjectionPoint.java:245)
          at com.google.inject.internal.ConstructorBindingImpl.create (ConstructorBindingImpl.java:115)
          at com.google.inject.internal.InjectorImpl.createUninitializedBinding (InjectorImpl.java:706)
          at com.google.inject.internal.InjectorImpl.createJustInTimeBinding (InjectorImpl.java:930)
          at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive (InjectorImpl.java:852)
          at com.google.inject.internal.InjectorImpl.getJustInTimeBinding (InjectorImpl.java:291)
          at com.google.inject.internal.InjectorImpl.getBindingOrThrow (InjectorImpl.java:222)
          at com.google.inject.internal.InjectorImpl.getProviderOrThrow (InjectorImpl.java:1040)
          at com.google.inject.internal.InjectorImpl.getProvider (InjectorImpl.java:1071)
          at com.google.inject.internal.InjectorImpl.getProvider (InjectorImpl.java:1034)
          at com.google.inject.internal.InjectorImpl.getInstance (InjectorImpl.java:1086)
          at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:48)
          at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:85)
          at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:57)
          at com.google.inject.internal.ProviderInternalFactory$1.call (ProviderInternalFactory.java:66)
          at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:112)
          at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:127)
          at com.google.inject.internal.ProvisionListenerStackCallback.provision (ProvisionListenerStackCallback.java:66)
          at com.google.inject.internal.ProviderInternalFactory.circularGet (ProviderInternalFactory.java:61)
          at com.google.inject.internal.InternalFactoryToInitializableAdapter.get (InternalFactoryToInitializableAdapter.java:47)
          at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1050)
          at org.eclipse.sisu.inject.Guice4$1.get (Guice4.java:162)
          at org.eclipse.sisu.inject.LazyBeanEntry.getValue (LazyBeanEntry.java:81)
          at org.eclipse.sisu.plexus.LazyPlexusBean.getValue (LazyPlexusBean.java:51)
          at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:263)
          at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:255)
          at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo (DefaultMavenPluginManager.java:520)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:124)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:498)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  2.110 s
      [INFO] Finished at: 2020-01-27T19:05:32+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.testing.resourceresolver-mock: 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/apache/maven/shared/release/env/ReleaseEnvironment
      [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:/~/.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:/~/.m2/repository/org/apache/maven/release/maven-release-oddeven-policy/2.5.3/maven-release-oddeven-policy-2.5.3.jar
      [ERROR] urls[2] = file:/~/.m2/repository/org/apache/maven/release/maven-release-api/2.5.3/maven-release-api-2.5.3.jar
      [ERROR] urls[3] = file:/~/.m2/repository/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar
      [ERROR] urls[4] = file:/~/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
      [ERROR] urls[5] = file:/~/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
      [ERROR] urls[6] = file:/~/.m2/repository/org/apache/maven/release/maven-release-manager/3.0.0-M1/maven-release-manager-3.0.0-M1.jar
      [ERROR] urls[7] = file:/~/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-6/plexus-interactivity-api-1.0-alpha-6.jar
      [ERROR] urls[8] = file:/~/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
      [ERROR] urls[9] = file:/~/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
      [ERROR] urls[10] = file:/~/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      [ERROR] urls[11] = file:/~/.m2/repository/org/apache/maven/shared/maven-invoker/2.2/maven-invoker-2.2.jar
      [ERROR] urls[12] = file:/~/.m2/repository/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar
      [ERROR] urls[13] = file:/~/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
      [ERROR] urls[14] = file:/~/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
      [ERROR] urls[15] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-providers-standard/1.11.2/maven-scm-providers-standard-1.11.2.pom
      [ERROR] urls[16] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-accurev/1.11.2/maven-scm-provider-accurev-1.11.2.jar
      [ERROR] urls[17] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-bazaar/1.11.2/maven-scm-provider-bazaar-1.11.2.jar
      [ERROR] urls[18] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-clearcase/1.11.2/maven-scm-provider-clearcase-1.11.2.jar
      [ERROR] urls[19] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-cvsexe/1.11.2/maven-scm-provider-cvsexe-1.11.2.jar
      [ERROR] urls[20] = file:/~/.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[21] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-cvsjava/1.11.2/maven-scm-provider-cvsjava-1.11.2.jar
      [ERROR] urls[22] = file:/~/.m2/repository/org/netbeans/lib/cvsclient/20060125/cvsclient-20060125.jar
      [ERROR] urls[23] = file:/~/.m2/repository/ch/ethz/ganymed/ganymed-ssh2/build210/ganymed-ssh2-build210.jar
      [ERROR] urls[24] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-gitexe/1.11.2/maven-scm-provider-gitexe-1.11.2.jar
      [ERROR] urls[25] = file:/~/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
      [ERROR] urls[26] = file:/~/.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[27] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-jgit/1.11.2/maven-scm-provider-jgit-1.11.2.jar
      [ERROR] urls[28] = file:/~/.m2/repository/org/eclipse/jgit/org.eclipse.jgit/4.5.4.201711221230-r/org.eclipse.jgit-4.5.4.201711221230-r.jar
      [ERROR] urls[29] = file:/~/.m2/repository/com/jcraft/jsch/0.1.53/jsch-0.1.53.jar
      [ERROR] urls[30] = file:/~/.m2/repository/com/googlecode/javaewah/JavaEWAH/0.7.9/JavaEWAH-0.7.9.jar
      [ERROR] urls[31] = file:/~/.m2/repository/org/apache/httpcomponents/httpclient/4.3.6/httpclient-4.3.6.jar
      [ERROR] urls[32] = file:/~/.m2/repository/org/apache/httpcomponents/httpcore/4.3.3/httpcore-4.3.3.jar
      [ERROR] urls[33] = file:/~/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
      [ERROR] urls[34] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-hg/1.11.2/maven-scm-provider-hg-1.11.2.jar
      [ERROR] urls[35] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-perforce/1.11.2/maven-scm-provider-perforce-1.11.2.jar
      [ERROR] urls[36] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-starteam/1.11.2/maven-scm-provider-starteam-1.11.2.jar
      [ERROR] urls[37] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-svnexe/1.11.2/maven-scm-provider-svnexe-1.11.2.jar
      [ERROR] urls[38] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-synergy/1.11.2/maven-scm-provider-synergy-1.11.2.jar
      [ERROR] urls[39] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-vss/1.11.2/maven-scm-provider-vss-1.11.2.jar
      [ERROR] urls[40] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-tfs/1.11.2/maven-scm-provider-tfs-1.11.2.jar
      [ERROR] urls[41] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-integrity/1.11.2/maven-scm-provider-integrity-1.11.2.jar
      [ERROR] urls[42] = file:/~/.m2/repository/com/mks/api/mksapi-jar/4.10.9049/mksapi-jar-4.10.9049.jar
      [ERROR] urls[43] = file:/~/.m2/repository/org/codehaus/groovy/groovy-all/1.7.6/groovy-all-1.7.6.jar
      [ERROR] urls[44] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-provider-jazz/1.11.2/maven-scm-provider-jazz-1.11.2.jar
      [ERROR] urls[45] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-manager-plexus/1.8/maven-scm-manager-plexus-1.8.jar
      [ERROR] urls[46] = file:/~/.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[47] = file:/~/.m2/repository/org/apache/maven/shared/maven-artifact-transfer/0.9.1/maven-artifact-transfer-0.9.1.jar
      [ERROR] urls[48] = file:/~/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.jar
      [ERROR] urls[49] = file:/~/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
      [ERROR] urls[50] = file:/~/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
      [ERROR] urls[51] = file:/~/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
      [ERROR] urls[52] = file:/~/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.jar
      [ERROR] urls[53] = file:/~/.m2/repository/org/apache/maven/scm/maven-scm-api/1.11.2/maven-scm-api-1.11.2.jar
      [ERROR] urls[54] = file:/~/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.jar
      [ERROR] urls[55] = file:/~/.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.apache.maven.shared.release.env.ReleaseEnvironment
      [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
      

      Attachments

        Issue Links

          Activity

            People

              sseifert Stefan Seifert
              sseifert Stefan Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: