old jboss repo url gives problems if hardcoded in pom -----------------------------------------------------
Key: MNG-5128 URL: https://jira.codehaus.org/browse/MNG-5128 Project: Maven 2 & 3 Issue Type: Bug Affects Versions: 3.0.3 Reporter: erik romson Priority: Minor When I moved over to maven 3. The build kept failing because it kept trying to download artifacts from http://repository.jboss.org/maven2. This is an old repo that doesn't exist anymore (replaced by a nexus one). I finally figured out that for example in the pom for org/springframework/spring-parent/3.0.2.RELEASE/spring-parent-3.0.2.RELEASE.pom it has a hardcoded <repository> <id>jboss</id> <name>JBoss Repository</name> <url>http://repository.jboss.org/maven2</url> <snapshots><enabled>false</enabled></snapshots> </repository> Then I had to overload this in my settings.xml <repository> <id>jboss</id> <url>http://localhost:8081/nexus/content/groups/public/</url> <snapshots> <enabled>false</enabled> <updatePolicy>daily</updatePolicy> </snapshots> </repository> I had to do this with 4 of them with different repository ids. I realize that it is bad manners by the developers to hardcode repos in the pom but on the other hand, it should be possible to handle this better in maven (which I haven't found). Possibly some better logging because this was an extremely hard thing to find. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira