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>
central