Details
-
Type:
Task
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.0.2
-
Component/s: None
-
Labels:None
-
Environment:Maven 2.2.1
-
Complexity:Intermediate
-
Number of attachments :
Description
Cargo 1.0.2 had the url for the old Codehaus release repo defined in some poms. In the migration to the new Cargo (Nexus hosted) release repo, all Cargo artifacts were moved.
For some reason, when executing Cargo 1.0.2 via the Maven 2 plugin, Maven tries to retrieve artifacts from the old Codehaus repo before trying central. Although we've put redirects in place for the old repo, Maven treats the http redirect response as the actual artifact. Thus, we get incorrect artifacts downloaded and Maven fails. See the attached example.
A workaround for now is to add the following mirror configuration to your settings.xml (please do necessary merging with already existing mirrors):
<mirrors> <mirror> <id>central</id> <url>http://repo1.maven.org/maven2/</url> <mirrorOf>codehaus-releases</mirrorOf> </mirror> </mirrors>Please also understand that in enterprise environments where a Repository Manager is present this likely not necessary (as the repo manager often mirrors/proxies everything already).
Also, in the upcoming v1.0.3 this shouldn't be an issue as these repo references have been removed.
<mirrors> <mirror> <id>central</id> <url>http://repo1.maven.org/maven2/</url> <mirrorOf>codehaus-releases</mirrorOf> </mirror> </mirrors>