I have a problem with downloading artifacts from our local nexus, sorry if this is a bit long.
Our sources tree is divided into several projects, let's call them A and B. B is dependent on a release version of A that is deployed to our local Nexus server. Whenever I release a new A the next several builds (In TeamCity) fail to download the new artifacts and I see the error:
Could not resolve dependencies for project B-groupId:B-artifactId:jar:B-version:
Could not find artifact A-groupId:A-artifactId:jar:A-newVersion
Here are some relevant facts:
- We are building with the
-T 1C
maven option - The artifact DOES exist in nexus - if I go the the download URL it works
- When I build it locally it works
- Eventually things work out, meaning it fails to download a certain artifact the first time, the next time it succeeds but fails on another and so on until all artifacts are downloaded
- Another project also released to the same local repository works fine when its version is updated
I see these multiple downloading lines in the log:
Downloading: http://nexus.company.com:8081/nexus/content/groups/public/com/company/group/artifact/1.0.10/artifact-1.0.10.pom
this line repeats several time for each of the just released artifacts
- It doesn't seem to be an issue of the nexus index (Like I mentioned - building locally works fine, and also on some of the TeamCity agents it works)
- Also - doesn't seem to be a network problem because both the TeamCity agent and the nexus server are in the same datacenter
Sorry if this was a long read, but I would really appreciate any help. This thing is bugging us crazy.
Thanks