I have this simple gradle build script which generates me eclipse classpath 
entries with the same jar:

### cut ###
apply plugin: 'java'
apply plugin: 'eclipse'

repositories { mavenCentral() }
dependencies {
             // jcr
             compile("org.apache.jackrabbit:jackrabbit-core:2.2.8")
}
### cut ###

Everything works fine, but in the resulting .classpath file, generated by the 
eclipse plugin the dependency jar "jackrabbit-spi-2.2.8.jar" is contained two 
times, but with different paths. In eclipse I get tthe following error "The 
project contains another dependency with the same archive name"

grep "jackrabbit-spi-2.2.8.jar" .classpath 
        <classpathentry 
sourcepath="/Users/constantin/.gradle/caches/artifacts-7/artifacts/56865c09425cc6ecda8606d7e6035ceb/org.apache.jackrabbit/jackrabbit-spi/2.2.8/source/jackrabbit-spi-2.2.8-sources.jar"
 kind="lib" 
path="/Users/constantin/.gradle/caches/artifacts-7/artifacts/56865c09425cc6ecda8606d7e6035ceb/org.apache.jackrabbit/jackrabbit-spi/2.2.8/bundle/jackrabbit-spi-2.2.8.jar"
 exported="true"/>
        <classpathentry 
sourcepath="/Users/constantin/.gradle/caches/artifacts-7/artifacts/56865c09425cc6ecda8606d7e6035ceb/org.apache.jackrabbit/jackrabbit-spi/2.2.8/source/jackrabbit-spi-2.2.8-sources.jar"
 kind="lib" 
path="/Users/constantin/.gradle/caches/artifacts-7/artifacts/56865c09425cc6ecda8606d7e6035ceb/org.apache.jackrabbit/jackrabbit-spi/2.2.8/jar/jackrabbit-spi-2.2.8.jar"
 exported="true"/>

Can anyone give me a hint, if I am doing something wrong or how I get rid of 
thes duplicate class path entries?

How can I see from which dependency a certain jar has been introduced?

thanks in advance, 
alex


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

    http://xircles.codehaus.org/manage_email


Reply via email to