[GRADLE-2709] Dependency in Maven local with POM and no JAR file results in dependency resolve failure Created: 18/Mar/13 Updated: 09/Sep/13 Resolved: 09/Sep/13
There are multiple issues with the mavenLocal() repository which mean it is problematic to enable. We have to workaround these issues on our CI system with code such as:
The major issues we have found are:
1) Gradle is not able to handle cases where there is a POM and no JAR file.
When a maven local repository contains a POM file, but no JAR you get a dependency resolve error. Expected behavior would be to just download the JAR and continue. This is very painful as you have to enable Gradle debugging to find out why the JAR didn't resolve even though your repository definitives seem correct.
2) There are problems with mavenLocal when using the signing plugin.
If you are using the signing plugin and mavenLocal you end up with errors such as:
The error makes no sense to the user as it is some internal dependency information that doesn't resolve.
These problems combined make it a painful experience trying to use the Maven local cache, and since Gradle doesn't appear to provide a way to install a dependency into its own cache, it makes local development of inter project dependencies very painful
|Comment by Graeme Rocher [ 20/Mar/13 ]|
Problem 2) was actually unrelated to the Maven local cache, although problem 1) remains
I suggest changing the title of this issue to "Dependency in Maven local with POM and no JAR file results in dependency resolve failure"
For problem 2 i created