Skip to content

Instantly share code, notes, and snippets.

@struberg
Created August 21, 2018 07:35
Show Gist options
  • Save struberg/ee80c5e142e6d2eb99f8e6cc2e0f2b56 to your computer and use it in GitHub Desktop.
Save struberg/ee80c5e142e6d2eb99f8e6cc2e0f2b56 to your computer and use it in GitHub Desktop.
mirrorOf section to exclude the java.net maven repo and redirect all requests to maven.central
<mirrors>
<mirror>
<id>new.apache.snapshots</id>
<name>ignore jave.net repo and mirror to maven.central</name>
<url>https://repo.maven.apache.org/maven2</url>
<mirrorOf>m1.java.net,maven2-repository.dev.java.net,Java.net Maven 2,java.net.m2,m1.java.net,glassfish-repo-archive,java.net2,glassfish</mirrorOf>
</mirror>
</mirrors>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment