* See Configuring Maven for Nexus
* Add to ~/.m2/settings.xml
<settings> <mirrors> <mirror> <!--This sends everything else to /public --> <id>cental</id> <mirrorOf>cental</mirrorOf> <url>http://localhost:8082/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <repositories> <repository> <id>central</id> <!--This is bogus url. It's overridden in mirror --> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <!--This is bogus url. It's overridden in mirror --> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <!--make the profile active all the time --> <activeProfile>nexus</activeProfile> </activeProfiles> </settings>