I've set up Nexus to proxy the central Maven repository and added a mirror to settings.xml
:
<mirror>
<id>nexus</id>
<mirrorOf>central</mirrorOf>
<url>http://my-host:8081/nexus/content/repositories/central/</url>
</mirror>
It works fine but if I try to add additional repositories to pom.xml
like this:
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/nexus/content/repositories/releases/</url>
</repository>
Maven just doesn't see those repositories, until I remove <mirror>
from setting.xml
. I've also tried to mirror other repositories to Nexus, with no luck: Maven still uses only the central repository.
What am I doing wrong?