I am trying out the eclipse plugin but I can’t get the sources JAR’s to download from our Ivy repository.
Here’s my build file:
apply plugin: 'java'
apply plugin: 'eclipse'
version = 1.1
archivesBaseName = 'ois-SpringContext'
repositories {
add(new org.apache.ivy.plugins.resolver.SshResolver()) {
name = 'ivy_repo'
user = 'xxxx'
userPassword = 'xxxxx'
addIvyPattern
"/uwm/ivy-repo/[organisation]/[module]/ivys/ivy-[revision].xml"
addArtifactPattern "/uwm/ivy-repo/[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]"
host = "junior"
}
add(new org.apache.ivy.plugins.resolver.SshResolver()) {
name = 'ois_ivy_repo'
user = 'xxx'
userPassword = 'xxx'
addIvyPattern
"/uwm/ois-ivy-repo/trunk/[organisation]/[module]/ivys/ivy-[revision].xml"
addArtifactPattern "/uwm/ois-ivy-repo/trunk/[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]"
host = "junior"
publishPermissions = '0777'
}
}
//the default for this is true - so shouldn't need to set it
//eclipse.classpath.downloadSources = true
dependencies {
compile 'org.springframework:spring-web:3.1.0.RELEASE', 'ois:exception:1.8'
}
The dependency ‘ois:exception:1.8’ is in our Ivy repository in the following layout. The jar file in jars/ois-exception-1.8.jar is downloaded OK, but we don’t get the source JAR.
ois/exception/ivys/ivy-1.8.xml ois/exception/jars/ois-exception-1.8.jar ois/exception/javadocs/ois-exception-1.8-javadoc.jar ois/exception/sources/ois-exception-1.8-sources.jar
The ‘type’ is part of the path, and we also have a classifier on the Jar. Are there any known problems using this layout and artifact pattern with the eclipse plugin?