Created
March 10, 2018 13:10
-
-
Save abshkd/e05e5f5fe2897e5e26123bc09ae12bef to your computer and use it in GitHub Desktop.
proxy maven repository configuration
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
<!-- this file is in $USER_HOME/.m2/settings.xml, if its not there, create one --> | |
<?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://192.168.88.252: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> | |
</settings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment