Cargo

Cargo 1.0.2 (possibly also earlier releases) don't work with Maven since the migration to the new Codehaus repo

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Blocker 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 :
    1

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.

Issue Links

Activity

Hide
Anders Hammar added a comment -

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.

Show
Anders Hammar added a comment - 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.
Hide
Anders Hammar added a comment -

Added link to the Maven issue that causes this (MNG-4428).

Show
Anders Hammar added a comment - Added link to the Maven issue that causes this (MNG-4428).
Hide
Anders Hammar added a comment -

This should be fixed now (see details in HAUS-1991). Awaiting confirmation from users list before closing.

Show
Anders Hammar added a comment - This should be fixed now (see details in HAUS-1991). Awaiting confirmation from users list before closing.
Hide
Anders Hammar added a comment -

No response from the community, but I'm closing this as I've verified it myself. Many thanks to Ben at Codehaus for quickly fixing the redirects!

Show
Anders Hammar added a comment - No response from the community, but I'm closing this as I've verified it myself. Many thanks to Ben at Codehaus for quickly fixing the redirects!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: