Skip to content

Instantly share code, notes, and snippets.

@WhittlesJr

WhittlesJr/settings.xml

Last active Jun 4, 2019
Embed
What would you like to do?
<settings>
<mirrors>
<mirror>
<!--This sends everything else to /public -->
<id>my-mirror</id>
<mirrorOf>*</mirrorOf>
<url>http://my-mirror/repository/maven-public/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>my-mirror</id>
<!--Enable snapshots for the built in central repo to direct -->
<!--all requests to nexus via the mirror -->
<repositories>
<repository>
<id>maven-central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>clojars</id>
<url>https://clojars.org/repo</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<repository>
<id>maven-central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>clojars</id>
<url>https://clojars.org/repo</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>my-mirror</activeProfile>
</activeProfiles>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.