Created
May 27, 2020 16:15
-
-
Save jefrnc/d820edb6b84ac934a15e8e46cf0a34ea to your computer and use it in GitHub Desktop.
m2 - settings
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
<?xml version="1.0" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<mirrors> | |
<mirror> | |
<!--This sends everything else to /public --> | |
<id>nexus</id> | |
<mirrorOf>*</mirrorOf> | |
<url>http://{SERVER_NEXUS}:8081/repository/maven-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> | |
<activeProfiles> | |
<!--make the profile active all the time --> | |
<activeProfile>nexus</activeProfile> | |
</activeProfiles> | |
<servers> | |
<server> | |
<id>snapshots</id> | |
<username>{USER}</username> | |
<password>{PASSWORD}</password> | |
</server> | |
<server> | |
<id>releases</id> | |
<username>{USER}</username> | |
<password>{PASSWORD}</password> | |
</server> | |
<server> | |
<id>nexus</id> | |
<username>{USER}</username> | |
<password>{PASSWORD}</password> | |
</server> | |
</servers> | |
</settings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment