Skip to content

Instantly share code, notes, and snippets.

@WhittlesJr
Last active June 4, 2019 15:36
Show Gist options
  • Save WhittlesJr/3422e3374c0393188c1321bbd7605bd5 to your computer and use it in GitHub Desktop.
Save WhittlesJr/3422e3374c0393188c1321bbd7605bd5 to your computer and use it in GitHub Desktop.
<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