java.lang.NoSuchMethodError: org.apache.maven.execution.MavenExecutionRequest.setTransferListener(Lorg/eclipse/aether/transfer/TransferListener;)Lorg/apache/maven/execution/MavenExecutionRequest;

maven-users | Michael | 11 months ago
  1. 0

    NoSuchMethodError during unit testing

    maven-users | 11 months ago | Michael
    java.lang.NoSuchMethodError: org.apache.maven.execution.MavenExecutionRequest.setTransferListener(Lorg/eclipse/aether/transfer/TransferListener;)Lorg/apache/maven/execution/MavenExecutionRequest;
  2. 0

    NoSuchMethodError during unit testing

    maven-users | 11 months ago | Michael
    java.lang.NoSuchMethodError: org.apache.maven.execution.MavenExecutionRequest.setTransferListener(Lorg/eclipse/aether/transfer/TransferListener;)Lorg/apache/maven/execution/MavenExecutionRequest;
  3. 0

    java.lang.NoSuchMethodError: org.eclipse.aether.spi.connector.ArtifactDownload.setListener

    GitHub | 7 months ago | EPOTH
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.appengine:gcloud-maven-plugin:2.0.9.106.v20160420:run_start (default-cli) on project blog-science: Execution default-cli of goal com.google.appengine:gcloud-maven-plugin:2.0.9.106.v20160420:run_start failed: An API incompatibility was encountered while executing com.google.appengine:gcloud-maven-plugin:2.0.9.106.v20160420:run_start: java.lang.NoSuchMethodError: org.eclipse.aether.spi.connector.ArtifactDownload.setListener(Lorg/eclipse/aether/transfer/TransferListener;)Lorg/eclipse/aether/spi/connector/ArtifactDownload; ----------------------------------------------------- realm = plugin>com.google.appengine:gcloud-maven-plugin:2.0.9.106.v20160420 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/Users/broken/.m2/repository/com/google/appengine/gcloud-maven-plugin/2.0.9.106.v20160420/gcloud-maven-plugin-2.0.9.106.v20160420.jar urls[1] = file:/Users/broken/.m2/repository/commons-io/commons-io/1.3.2/commons-io-1.3.2.jar urls[2] = file:/Users/broken/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar urls[3] = file:/Users/broken/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar urls[4] = file:/Users/broken/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar urls[5] = file:/Users/broken/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar urls[6] = file:/Users/broken/.m2/repository/org/eclipse/aether/aether-spi/1.0.2.v20150114/aether-spi-1.0.2.v20150114.jar urls[7] = file:/Users/broken/.m2/repository/org/eclipse/aether/aether-impl/1.0.2.v20150114/aether-impl-1.0.2.v20150114.jar urls[8] = file:/Users/broken/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar urls[9] = file:/Users/broken/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar urls[10] = file:/Users/broken/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar urls[11] = file:/Users/broken/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar urls[12] = file:/Users/broken/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar urls[13] = file:/Users/broken/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar urls[14] = file:/Users/broken/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar urls[15] = file:/Users/broken/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar urls[16] = file:/Users/broken/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar urls[17] = file:/Users/broken/.m2/repository/org/eclipse/aether/aether-api/1.0.2.v20150114/aether-api-1.0.2.v20150114.jar urls[18] = file:/Users/broken/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar urls[19] = file:/Users/broken/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar urls[20] = file:/Users/broken/.m2/repository/com/google/appengine/appengine-tools-sdk/1.9.36/appengine-tools-sdk-1.9.36.jar urls[21] = file:/Users/broken/.m2/repository/com/google/appengine/appengine-local-endpoints/1.9.36/appengine-local-endpoints-1.9.36.jar urls[22] = file:/Users/broken/.m2/repository/com/google/appengine/appengine-endpoints/1.9.36/appengine-endpoints-1.9.36.jar urls[23] = file:/Users/broken/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.9.36/appengine-api-1.0-sdk-1.9.36.jar urls[24] = file:/Users/broken/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar urls[25] = file:/Users/broken/.m2/repository/eu/infomas/annotation-detector/3.0.5/annotation-detector-3.0.5.jar urls[26] = file:/Users/broken/.m2/repository/org/slf4j/slf4j-nop/1.7.13/slf4j-nop-1.7.13.jar urls[27] = file:/Users/broken/.m2/repository/org/slf4j/slf4j-api/1.7.13/slf4j-api-1.7.13.jar urls[28] = file:/Users/broken/.m2/repository/org/apache/maven/shared/maven-invoker/2.2/maven-invoker-2.2.jar urls[29] = file:/Users/broken/.m2/repository/org/ini4j/ini4j/0.5.4/ini4j-0.5.4.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]] -----------------------------------------------------
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error: {noformat} [INFO] ------------------------------------------------------------------------ [INFO] Building JBoss Fuse Quickstart: camel-cxf-contract-first 1.2.0.redhat-060 (29/188) [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cxf-camel-cxf-contract-first --- [INFO] Deleting /data/ggrzybek/sources/github.com/jboss-fuse/fabric8/quickstarts/cxf/camel-cxf-contract-first/target [INFO] [INFO] >>> maven-source-plugin:2.4:jar (default-cli) > generate-sources @ cxf-camel-cxf-contract-first >>> [INFO] [INFO] --- cxf-codegen-plugin:3.0.2.redhat-620056:wsdl2java (generate-sources) @ cxf-camel-cxf-contract-first --- [WARNING] Error injecting: org.eclipse.aether.connector.wagon.WagonRepositoryConnectorFactory com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) No implementation for org.eclipse.aether.connector.wagon.WagonProvider was bound. while locating org.eclipse.aether.connector.wagon.WagonRepositoryConnectorFactory 1 error at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1018) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:113) at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:122) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:46) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1066) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1059) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82) at org.eclipse.sisu.wire.EntrySetAdapter$ValueIterator.next(EntrySetAdapter.java:102) at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:103) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:516) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:287) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:525) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:509) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316) at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:192) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultMavenPluginManager.java:361) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:329) at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:229) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:100) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:364) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) {noformat}

    JBoss Issue Tracker | 2 years ago | Grzegorz Grzybek
    java.lang.NoSuchMethodError: org.eclipse.aether.spi.connector.Transfer.setState(Lorg/eclipse/aether/spi/connector/Transfer$State;)Lorg/eclipse/aether/spi/connector/Transfer;
  6. 0

    GitHub comment 30#237906578

    GitHub | 4 months ago | remotegun
    java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/eclipse/aether/RepositorySystemSession;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.maven.execution.MavenExecutionRequest.setTransferListener(Lorg/eclipse/aether/transfer/TransferListener;)Lorg/apache/maven/execution/MavenExecutionRequest;

      at hudson.maven.MavenEmbedder.buildMavenExecutionRequest()
    2. Hudson Maven Embedder
      MavenUtil.createEmbedder
      1. hudson.maven.MavenEmbedder.buildMavenExecutionRequest(MavenEmbedder.java:173)
      2. hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:120)
      3. hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:109)
      4. hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:136)
      5. hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:212)
      6. hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:134)
      7. hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:127)
      8. hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:123)
      8 frames
    3. Hudson :: Test Framework
      HudsonTestCase.setUp
      1. org.jvnet.hudson.test.HudsonTestCase$7.decorateHome(HudsonTestCase.java:1451)
      2. org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:473)
      3. org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:315)
      3 frames
    4. Hudson GIT plugin
      AbstractGitTestCase.setUp
      1. hudson.plugins.git.AbstractGitTestCase.setUp(AbstractGitTestCase.java:67)
      1 frame
    5. JUnit
      TestCase.runBare
      1. junit.framework.TestCase.runBare(TestCase.java:139)
      1 frame
    6. Hudson :: Test Framework
      HudsonTestCase.runBare
      1. org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:293)
      1 frame
    7. JUnit
      JUnit38ClassRunner.run
      1. junit.framework.TestResult$1.protect(TestResult.java:122)
      2. junit.framework.TestResult.runProtected(TestResult.java:142)
      3. junit.framework.TestResult.run(TestResult.java:125)
      4. junit.framework.TestCase.run(TestCase.java:129)
      5. junit.framework.TestSuite.runTest(TestSuite.java:252)
      6. junit.framework.TestSuite.run(TestSuite.java:247)
      7. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
      7 frames
    8. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      4. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      4 frames
    9. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      3 frames