Hello,

When I try to use a dependency the following error appears:

:::: ERRORS
        a module is not authorized to depend on itself: 
net.jini#jsk-platform;2.1

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
Cause: java.lang.IllegalArgumentException: a module is not authorized to
depend on itself: net.jini#jsk-platform;2.1

* Exception is:
org.gradle.api.artifacts.LocationAwareResolveException: Could not resolve
all dependencies for configuration ':compile'.
        at
org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.wrapException(ErrorHandlingIvyService.java:63)
        at
org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.access$000(ErrorHandlingIvyService.java:28)
        at
org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$BrokenResolvedConfiguration.rethrowFailure(ErrorHandlingIvyService.java:127)
....
Caused by: java.lang.IllegalArgumentException: a module is not authorized to
depend on itself: net.jini#jsk-platform;2.1
        at
org.apache.ivy.core.resolve.IvyNodeCallers.addCaller(IvyNodeCallers.java:169)
        at org.apache.ivy.core.resolve.IvyNode.addCaller(IvyNode.java:1026)
        at org.apache.ivy.core.resolve.IvyNode.getDependencies(IvyNode.java:352)
        at
org.apache.ivy.core.resolve.VisitNode.getDependencies(VisitNode.java:301)
        at
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:750)
        at
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:679)
        at
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:757)
        at
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:679)
        at
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:757)
....

This is the bare-bone script that shows this:

repositories {
    mavenRepo urls: 'http://www.rio-project.org/maven2/'
}

dependencies {
    compile group: 'org.rioproject', name: 'rio', version: '4.0'
}

There is an Ivy issue which seems to have the same root:
https://issues.apache.org/jira/browse/IVY-1086


Is there a way to still resolve such cases?

Thank you!
-- 
View this message in context: 
http://old.nabble.com/Ivy-resolve-problem-tp28945610p28945610.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to