Skip to content

Instantly share code, notes, and snippets.

@kotatsuyaki
Created October 26, 2022 03:31
Show Gist options
  • Save kotatsuyaki/a04a1e90c234bbb95f3b89632c5e07c4 to your computer and use it in GitHub Desktop.
Save kotatsuyaki/a04a1e90c234bbb95f3b89632c5e07c4 to your computer and use it in GitHub Desktop.
Speeding Up Maven Artifact Downloads

Create a settings file at ~/.m2/settings.xml with the following contents to use Google's mirror.

<settings>
  <mirrors>
    <mirror>
      <id>google-maven-central</id>
      <name>Google Maven Central</name>
      <url>https://maven-central.storage.googleapis.com/maven2/</url>
      <mirrorOf>central</mirrorOf>
    </mirror> 
  </mirrors> 
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment