Maven 2 & 3

Wrong url in error message when using a mirror

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.1
  • Fix Version/s: 2.0.9
  • Component/s: Errors
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

I had the following in my settings.xml:

<settings>
[...]
<mirrors>
<mirror>
<id>cargo m2 release repository</id>
<url>http://cargo.codehaus.org/dist2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>

<profiles>
<profile>
<id>staging-repo</id>
<repositories>
<repository>
<id>central</id>
<name>staging repo</name>
<url>http://test.maven.codehaus.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>staging repo</name>
<url>http://test.maven.codehaus.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>staging-repo</activeProfile>
</activeProfiles>

[...]
</settings>

When building any project I was getting the following console trace:

[...]
Downloading: http://cargo.codehaus.org/dist2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
[WARNING] Unable to get resource from repository central (http://test.maven.codehaus.org/maven2)
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-plugin-parent
Version: 2.0

Reason: Unable to download the artifact from any repository

org.apache.maven.plugins:maven-plugin-parent:pom:2.0

from the specified remote repositories:
central (http://test.maven.codehaus.org/maven2)

As you can see it says that it cannot get the pom from the test.maven.codehaus.org repository whereas it's actually looking in cargo.codehaus.org... The message needs to be fixed.

Issue Links

Activity

There are no comments yet on this issue.

People

Vote (3)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: