I've overridden the central repo in my pom. ie:
<repositories>
<repository>
<id>central</id>
<url>http://localhost:8081/nexus/content/groups/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://localhost:8081/nexus/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
But for some reason, m2e still downloads some of the artifacts from the
maven central repo. Not all of them however. When running the project
from m2e within eclipse I get as output (partial).
url = http://localhost:8081/nexus/content/groups/public
Downloading:
http://localhost:8081/nexus/content/groups/public/org/apache/maven/plugi
ns/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom
url = http://repo1.maven.org/maven2
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/1/m
aven-plugins-1.pom
However, if I execute the same build from the command line, all
downloads go to my central repo, which is what I would expect. ie:
Downloading:
http://localhost:8081/nexus/content/groups/public/org/apache/maven/plugi
ns/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom
Downloading:
http://localhost:8081/nexus/content/groups/public/org/apache/maven/plugi
ns/maven-plugins/1/maven-plugins-1.pom
---
Todd Thiessen