I have a dependency on spring-beans;4.0.0.RELEASE, which I have available in my mavenLocal cache, but gradle's IVY resolver is trying to find 4.0.0.M3 from a remote repo. Isn't that an earlier version?
The problem is illustrated by the following log snippet:
18:31:23.847 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder] Visiting dependency org.springframework.data:spring-data-mongodb:1.0.0.RC1(compile) -> org.springframework:spring-beans:[3.0.6.RELEASE, 4.0.0.RELEASE)(dependency: org.springframework#spring-beans;[3.0.6.RELEASE, 4.0.0.RELEASE) {compile=[compile(*), master(*)], runtime=[runtime(*)]})
18:31:23.847 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver] Attempting to resolve module 'org.springframework:spring-beans:[3.0.6.RELEASE, 4.0.0.RELEASE)' using repositories [MavenLocal, mavenRepo, MavenLocal2]
18:31:23.848 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.ResourceVersionLister] Listing all in /Users/jric/.m2/repository/org/springframework/spring-beans/[revision]/spring-beans-[revision].pom
18:31:23.848 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.ResourceVersionLister] using MavenLocal to list all in /Users/jric/.m2/repository/org/springframework/spring-beans/
18:31:23.849 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.ResourceVersionLister] found 2 resources
18:31:23.856 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleVersionRepository] Detected non-existence of module 'org.springframework#spring-beans;4.0.0.M3' in resolver cache 'mavenRepo'
A little background on this. My company's artifactory repo ("mavenRepo" in the above log) has bad metadata in it which says that we're hosting springbeans;4.0.0.RELEASE among MANY other versions. In fact we are not, so it's wrong, and gradle is failing since I upgraded gradle past version 1.11. Until the release management team fixes the metadata, I'm trying to provide the dependency with my local cache.
Here's some more possibly-relevant data:
SCML-JRichardson:share jric$ ls /Users/jric/.m2/repository/org/springframework/spring-beans/
4.0.0.RELEASE maven-metadata-local.xml
SCML-JRichardson:share jric$ cat /Users/jric/.m2/repository/org/springframework/spring-beans/maven-metadata-local.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<versioning>
<release>4.0.0.RELEASE</release>
<versions>
<version>4.0.0.RELEASE</version>
</versions>
<lastUpdated>20150307021047</lastUpdated>
</versioning>
</metadata>
SCML-JRichardson:share jric$ ls /Users/jric/.m2/repository/org/springframework/spring-beans/4.0.0.RELEASE/
_maven.repositories spring-beans-4.0.0.RELEASE.jar spring-beans-4.0.0.RELEASE.pom
Aucun commentaire:
Enregistrer un commentaire