Created
May 10, 2016 05:10
-
-
Save crazycode/ddbba020c280dd1f417878a3f8f381bc to your computer and use it in GitHub Desktop.
maven $HOME/.m2/settings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings> | |
<mirrors> | |
<mirror> | |
<!--This sends everything else to /public --> | |
<id>nexus</id> | |
<mirrorOf>*</mirrorOf> | |
<url>http://nexus.adxage.local:8381/nexus/content/groups/public</url> | |
</mirror> | |
</mirrors> | |
<profiles> | |
<profile> | |
<id>nexus</id> | |
<!--Enable snapshots for the built in central repo to direct --> | |
<!--all requests to nexus via the mirror --> | |
<repositories> | |
<repository> | |
<id>central</id> | |
<url>http://central</url> | |
<releases><enabled>true</enabled></releases> | |
<snapshots><enabled>true</enabled></snapshots> | |
</repository> | |
</repositories> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>central</id> | |
<url>http://central</url> | |
<releases><enabled>true</enabled></releases> | |
<snapshots><enabled>true</enabled></snapshots> | |
</pluginRepository> | |
</pluginRepositories> | |
</profile> | |
</profiles> | |
<servers> | |
<server> | |
<id>nexus</id> | |
<username>admin</username> | |
<password>admin123</password> | |
</server> | |
<server> | |
<id>central</id> | |
<username>admin</username> | |
<password>admin123</password> | |
</server> | |
</servers> | |
<activeProfiles> | |
<!--make the profile active all the time --> | |
<activeProfile>nexus</activeProfile> | |
</activeProfiles> | |
</settings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment