java.lang.IllegalStateException: Couldn't resolve dependencies for container

MuleSoft JIRA | Guillermo Fernandes | 3 months ago
  1. 0

    The current implementation of AutoDiscoverWorkspaceLocationResolver bases the resolution on classpath entries, either Maven or IDEs will not include in classpath artifacts packaged as pom, so when running from Maven it has to run a {code}clean install{code} to find these artifacts in local Maven repository. For instance, integration tests fail due to all-modules cannot be found: {code} org.mule.test.config.spring.parsers.NameAndIdEqualMule2795TestCase WARN 2016-09-20 13:23:04,948 [main] org.mule.test.runner.api.DependencyResolver: Dependencies couldn't be resolved for request 'null -> [org.mule:mule-core:jar:4.0-SNAPSHOT (compile), org.mule.modules:mule-modules-all:pom:4.0-SNAPSHOT (compile), org.mule.modules:mule-module-file-extension-common:jar:4.0-SNAPSHOT (compile), org.mule.modules:mule-module-validation:jar:4.0-SNAPSHOT (compile), org.mule.modules:mule-module-file:jar:4.0-SNAPSHOT (compile), commons-httpclient:commons-httpclient:jar:3.1 (compile)] < []', Could not find artifact org.mule.modules:mule-modules-all:pom:4.0-SNAPSHOT WARN 2016-09-20 13:23:04,952 [main] org.mule.test.runner.api.DependencyResolver: Dependency path to not resolved artifacts -> [org.mule.modules:mule-modules-all:pom:4.0-SNAPSHOT (compile)] java.lang.IllegalStateException: Couldn't resolve dependencies for container at org.mule.test.runner.api.AetherClassPathClassifier.buildContainerUrlClassification(AetherClassPathClassifier.java:185) at org.mule.test.runner.api.AetherClassPathClassifier.classify(AetherClassPathClassifier.java:119) at org.mule.test.runner.api.ArtifactIsolatedClassLoaderBuilder.build(ArtifactIsolatedClassLoaderBuilder.java:251) at org.mule.test.runner.ArtifactClassLoaderRunner.createClassLoaderTestRunner(ArtifactClassLoaderRunner.java:193) at org.mule.test.runner.ArtifactClassLoaderRunner.<init>(ArtifactClassLoaderRunner.java:121) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:33) at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:41) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.mule.modules:mule-modules-all:pom:4.0-SNAPSHOT at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384) at org.mule.test.runner.api.DependencyResolver.resolveDependencies(DependencyResolver.java:148) at org.mule.test.runner.api.AetherClassPathClassifier.buildContainerUrlClassification(AetherClassPathClassifier.java:182) ... 22 more Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.mule.modules:mule-modules-all:pom:4.0-SNAPSHOT at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367) ... 24 more Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.mule.modules:mule-modules-all:pom:4.0-SNAPSHOT at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:434) ... 26 more Process finished with exit code 255 {code} It would be great to find a way to resolve this as workspace references too.

    MuleSoft JIRA | 3 months ago | Guillermo Fernandes
    java.lang.IllegalStateException: Couldn't resolve dependencies for container
  2. 0

    Compile error EnerNOC/oadr2-vtn-new

    GitHub | 3 years ago | icue11
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project oadr2-vtn-groovy: Could not resolve dependencies for project com.enernoc.open.oadr2.vtn:oadr2-vtn-groovy:grails-app:0.1-SNAPSHOT: The following artifacts could not be resolved: com.enernoc.open.oadr2:oadr2-model:jar:0.3-SNAPSHOT, com.enernoc.open.oadr2:oadr2-xmpp:jar:0.3-SNAPSHOT: Failure to find com.enernoc.open.oadr2:oadr2-model:jar:0.3-SNAPSHOT in http://repo.grails.org/grails/core was cached in the local repository, resolution will not be reattempted until the update interval of grails has elapsed or updates are forced
  3. 0

    The POM for com.bericotech:clavin-nerd:jar:2.1.0-SNAPSHOT is missing, no dependency information available

    GitHub | 2 years ago | cds-amal
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project clavin-rest: Could not resolve dependencies for project com.bericotech:clavin-rest:jar:0.3.0-SNAPSHOT: Could not find artifact com.bericotech:clavin-nerd:jar:2.1.0-SNAPSHOT
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Failure To Build Netty 4.0.25.Final

    GitHub | 2 years ago | sherman94062
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project netty-transport-native-epoll: Could not resolve dependencies for project io.netty:netty-transport-native-epoll:jar:4.1.0.Beta5-SNAPSHOT: Failure to find io.netty:netty-tcnative:jar:linux-x86_32:1.1.32.Fork1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
  6. 0

    JBundler downloads jars, then says it can't find them

    Stack Overflow | 3 years ago | Leons
    org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.apache.j clouds.api:rackspace-cloudidentity:jar:1.6.3-20131114.121954-46, org.apache.jclouds.api:openstack-keystone:jar:1.6.3-201 31114.121702-46, org.apache.jclouds.api:openstack-cinder:jar:1.6.3-20131114.121804-46, org.apache.jclouds.api:rackspace- clouddns:jar:1.6.3-20131114.122048-46, org.apache.jclouds.provider:aws-cloudwatch:jar:1.6.3-20131114.122345-45, org.apac he.jclouds.api:cloudwatch:jar:1.6.3-20131114.121126-46, org.apache.jclouds.provider:rackspace-cloudblockstorage-us:jar:1 .6.3-20131114.123111-45, ... : Could not find artifact org.apache.jclouds.api:ra ckspace-cloudidentity:jar:1.6.3-20131114.121954-46 in central (http://repo2.maven.org/maven2)

  1. tvrmsmith 5 times, last 3 weeks ago
  2. davidvanlaatum 6 times, last 4 weeks ago
3 unregistered visitors
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. org.eclipse.aether.transfer.ArtifactNotFoundException

    Could not find artifact org.mule.modules:mule-modules-all:pom:4.0-SNAPSHOT

    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve()
  2. Aether Implementation
    DefaultRepositorySystem.resolveDependencies
    1. org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:434)
    2. org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
    3. org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
    4. org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
    4 frames
  3. org.mule.test
    ArtifactClassLoaderRunner.<init>
    1. org.mule.test.runner.api.DependencyResolver.resolveDependencies(DependencyResolver.java:148)
    2. org.mule.test.runner.api.AetherClassPathClassifier.buildContainerUrlClassification(AetherClassPathClassifier.java:182)
    3. org.mule.test.runner.api.AetherClassPathClassifier.buildContainerUrlClassification(AetherClassPathClassifier.java:185)
    4. org.mule.test.runner.api.AetherClassPathClassifier.classify(AetherClassPathClassifier.java:119)
    5. org.mule.test.runner.api.ArtifactIsolatedClassLoaderBuilder.build(ArtifactIsolatedClassLoaderBuilder.java:251)
    6. org.mule.test.runner.ArtifactClassLoaderRunner.createClassLoaderTestRunner(ArtifactClassLoaderRunner.java:193)
    7. org.mule.test.runner.ArtifactClassLoaderRunner.<init>(ArtifactClassLoaderRunner.java:121)
    7 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  5. JUnit
    ClassRequest.getRunner
    1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:33)
    2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
    3. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    4. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
    5. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    6. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
    6 frames
  6. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:41)
    1 frame
  7. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
    2 frames
  8. Java RT
    NativeMethodAccessorImpl.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    2 frames
  9. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
    1 frame