org.apache.maven.lifecycle.LifecycleExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The embedded container brakes with the following exception {code} java.lang.RuntimeException: java.lang.RuntimeException: There was a problem resolving the dependency tree for the container [org.mule.runtime:mule-runtime-impl-bom:pom:4.0.0-SNAPSHOT] at org.mule.runtime.module.embedded.api.EmbeddedContainerFactory.create(EmbeddedContainerFactory.java:118) at org.mule.munit.remote.RemoteRunner.buildContainer(RemoteRunner.java:134) at org.mule.munit.remote.RemoteRunner.runSuite(RemoteRunner.java:104) at org.mule.munit.remote.RemoteRunner.run(RemoteRunner.java:80) at org.mule.munit.remote.RemoteRunner.main(RemoteRunner.java:66) Caused by: java.lang.RuntimeException: There was a problem resolving the dependency tree for the container [org.mule.runtime:mule-runtime-impl-bom:pom:4.0.0-SNAPSHOT] at org.mule.runtime.module.embedded.internal.Repository.assemblyDependenciesForArtifact(Repository.java:142) at org.mule.runtime.module.embedded.internal.MavenContainerClassLoaderFactory.create(MavenContainerClassLoaderFactory.java:53) at org.mule.runtime.module.embedded.api.EmbeddedContainerFactory.create(EmbeddedContainerFactory.java:57) ... 4 more Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies at org.mule.runtime:mule-modules-all:pom:4.0.0-SNAPSHOT -> org.mule.runtime:mule-module-scripting:jar:4.0.0-SNAPSHOT -> org.mule.runtime:mule-module-scripting-jruby:jar:4.0.0-SNAPSHOT -> org.jruby:yecht:jar:jruby:1.1 -> org.jruby:jruby-core:jar:1.7.22 -> org.jruby:yecht:jar:1.0 -> org.jruby:jruby-core:jar:[1.7.0,1.8.0) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:291) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316) at org.mule.runtime.module.embedded.internal.Repository.assemblyDependenciesForArtifact(Repository.java:118) ... 6 more Caused by: org.eclipse.aether.resolution.VersionRangeResolutionException: No versions available for org.jruby:jruby-core:jar:[1.7.0,1.8.0) within specified range at org.eclipse.aether.internal.impl.DefaultDependencyCollector.filterVersions(DefaultDependencyCollector.java:648) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:394) 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.doRecurse(DefaultDependencyCollector.java:504) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458) 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.doRecurse(DefaultDependencyCollector.java:504) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458) 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.doRecurse(DefaultDependencyCollector.java:504) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458) 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.doRecurse(DefaultDependencyCollector.java:504) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458) 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.doRecurse(DefaultDependencyCollector.java:504) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458) 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.doRecurse(DefaultDependencyCollector.java:504) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458) 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) ... 8 more {code} When the .M2 repository for that artifact /Users/damiansima/.m2/repository/org/jruby/jruby-core Looks like this: {code} ├── 1.7.0 │   ├── _remote.repositories │   ├── jruby-core-1.7.0.pom │   └── jruby-core-1.7.0.pom.sha1 ├── 1.7.0.preview1 │   ├── _remote.repositories │   ├── jruby-core-1.7.0.preview1.pom │   └── jruby-core-1.7.0.preview1.pom.sha1 ├── 1.7.0.preview2 │   ├── _remote.repositories │   ├── jruby-core-1.7.0.preview2.pom │   └── jruby-core-1.7.0.preview2.pom.sha1 ├── 1.7.1 │   ├── _remote.repositories │   ├── jruby-core-1.7.1.pom │   └── jruby-core-1.7.1.pom.sha1 ├── 1.7.10 │   ├── _remote.repositories │   ├── jruby-core-1.7.10.pom │   └── jruby-core-1.7.10.pom.sha1 ├── 1.7.11 │   ├── _remote.repositories │   ├── jruby-core-1.7.11.pom │   └── jruby-core-1.7.11.pom.sha1 ├── 1.7.12 │   ├── _remote.repositories │   ├── jruby-core-1.7.12.pom │   └── jruby-core-1.7.12.pom.sha1 ├── 1.7.13 │   ├── _remote.repositories │   ├── jruby-core-1.7.13.pom │   └── jruby-core-1.7.13.pom.sha1 ├── 1.7.14 │   ├── _remote.repositories │   ├── jruby-core-1.7.14.pom │   └── jruby-core-1.7.14.pom.sha1 ├── 1.7.15 │   ├── _remote.repositories │   ├── jruby-core-1.7.15.pom │   └── jruby-core-1.7.15.pom.sha1 ├── 1.7.16 │   ├── _remote.repositories │   ├── jruby-core-1.7.16.pom │   └── jruby-core-1.7.16.pom.sha1 ├── 1.7.16.1 │   ├── _remote.repositories │   ├── jruby-core-1.7.16.1.pom │   └── jruby-core-1.7.16.1.pom.sha1 ├── 1.7.16.2 │   ├── _remote.repositories │   ├── jruby-core-1.7.16.2.pom │   └── jruby-core-1.7.16.2.pom.sha1 ├── 1.7.17 │   ├── _remote.repositories │   ├── jruby-core-1.7.17.pom │   └── jruby-core-1.7.17.pom.sha1 ├── 1.7.18 │   ├── _remote.repositories │   ├── jruby-core-1.7.18.pom │   └── jruby-core-1.7.18.pom.sha1 ├── 1.7.19 │   ├── _remote.repositories │   ├── jruby-core-1.7.19.pom │   └── jruby-core-1.7.19.pom.sha1 ├── 1.7.2 │   ├── _remote.repositories │   ├── jruby-core-1.7.2.pom │   └── jruby-core-1.7.2.pom.sha1 ├── 1.7.20 │   ├── _remote.repositories │   ├── jruby-core-1.7.20.pom │   └── jruby-core-1.7.20.pom.sha1 ├── 1.7.20.1 │   ├── _remote.repositories │   ├── jruby-core-1.7.20.1.pom │   └── jruby-core-1.7.20.1.pom.sha1 ├── 1.7.21 │   ├── _remote.repositories │   ├── jruby-core-1.7.21.pom │   └── jruby-core-1.7.21.pom.sha1 ├── 1.7.22 │   ├── _remote.repositories │   ├── jruby-core-1.7.22.jar │   ├── jruby-core-1.7.22.jar.sha1 │   ├── jruby-core-1.7.22.pom │   └── jruby-core-1.7.22.pom.sha1 ├── 1.7.23 │   ├── _remote.repositories │   ├── jruby-core-1.7.23.pom │   └── jruby-core-1.7.23.pom.sha1 ├── 1.7.24 │   ├── _remote.repositories │   ├── jruby-core-1.7.24.pom │   └── jruby-core-1.7.24.pom.sha1 ├── 1.7.25 │   ├── _remote.repositories │   ├── jruby-core-1.7.25.pom │   └── jruby-core-1.7.25.pom.sha1 ├── 1.7.26 │   ├── _remote.repositories │   ├── jruby-core-1.7.26.pom │   └── jruby-core-1.7.26.pom.sha1 ├── 1.7.3 │   ├── _remote.repositories │   ├── jruby-core-1.7.3.pom │   └── jruby-core-1.7.3.pom.sha1 ├── 1.7.4 │   ├── _remote.repositories │   ├── jruby-core-1.7.4.pom │   └── jruby-core-1.7.4.pom.sha1 ├── 1.7.5 │   ├── _remote.repositories │   ├── jruby-core-1.7.5.pom │   └── jruby-core-1.7.5.pom.sha1 ├── 1.7.6 │   ├── _remote.repositories │   ├── jruby-core-1.7.6.pom │   └── jruby-core-1.7.6.pom.sha1 ├── 1.7.7 │   ├── _remote.repositories │   ├── jruby-core-1.7.7.pom │   └── jruby-core-1.7.7.pom.sha1 ├── 1.7.8 │   ├── _remote.repositories │   ├── jruby-core-1.7.8.pom │   └── jruby-core-1.7.8.pom.sha1 ├── 1.7.9 │   ├── _remote.repositories │   ├── jruby-core-1.7.9.pom │   └── jruby-core-1.7.9.pom.sha1 ├── maven-metadata-central.xml ├── maven-metadata-central.xml.sha1 ├── maven-metadata-mule.xml ├── maven-metadata-mule.xml.sha1 ├── maven-metadata-sonatype-nexus-snapshots.xml ├── maven-metadata-sonatype-nexus-snapshots.xml.sha1 ├── maven-metadata-sonatype.xml ├── maven-metadata-sonatype.xml.sha1 └── resolver-status.properties {code} It's not yet clear how I manage to get that .m2, I reckon it was a side effect of studio when my application's pom contained a dependency to mule-module-all. In either case the container should know how to deal with such errors and worst case scenario end the execution properly and without an aether error.
    via by Damian Sima,
    • org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o n project irontest-mqiib: Could not resolve dependencies for project io.irontest :irontest-mqiib:jar:0.5.2: Failed to collect dependencies at com.ibm:com.ibm.mq. jmqi:jar:[7.5.0.1,7.5.0.6] at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:245) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199) 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:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 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: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) Caused by: org.apache.maven.project.DependencyResolutionException: Could not res olve dependencies for project io.irontest:irontest-mqiib:jar:0.5.2: Failed to co llect dependencies at com.ibm:com.ibm.mq.jmqi:jar:[7.5.0.1,7.5.0.6] at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:180) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195) ... 23 more Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed t o collect dependencies at com.ibm:com.ibm.mq.jmqi:jar:[7.5.0.1,7.5.0.6] at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:291) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:172) ... 24 more Caused by: org.eclipse.aether.resolution.VersionRangeResolutionException: No ver sions available for com.ibm:com.ibm.mq.jmqi:jar:[7.5.0.1,7.5.0.6] within specifi ed range at org.eclipse.aether.internal.impl.DefaultDependencyCollector.filterVersions(DefaultDependencyCollector.java:648) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:394) 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) ... 26 more

    Users with the same issue

    Unknown visitor1 times, last one,