Details
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
| This issue is duplicated by: | ||||
| MNG-3202 | URL for mirror is not printed when a repository query fails |
|
|
|