Cloud Storage Maven Central Mirror
==================================

**This is not an officially supported Google product.**

This mirror was announced 11/5/2015 in
https://cloudplatform.googleblog.com/2015/11/faster-builds-for-Java-developers-with-Maven-Central-mirror.html
Jason van Zyl's Note: http://takari.io/2015/10/28/google-maven-central.html

At some point updating failed, this service has been rebooted as of 6/1/2017. (and updated again 11/7/2019)

To use add the following to your ~/.m2/settings.xml file:

## Americas

```xml
<settings>
  <mirrors>
    <mirror>
      <id>gcs-maven-central</id>
      <name>Cloud Storage Maven Central</name>
      <url>https://maven-central.storage-download.googleapis.com/maven2/</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
</settings>
```

## EU

```xml
<settings>
  <mirrors>
    <mirror>
      <id>gcs-maven-central</id>
      <name>Cloud Storage Maven Central</name>
      <url>https://maven-central-eu.storage-download.googleapis.com/maven2/</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
</settings>
```

## Asia Pacific

```xml
<settings>
  <mirrors>
    <mirror>
      <id>gcs-maven-central</id>
      <name>Cloud Storage Maven Central</name>
      <url>https://maven-central-asia.storage-download.googleapis.com/maven2/</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
</settings>
```


We are currently mirroring the repo 12 times a day for the Americas bucket and 4 times to EU & Asia.

The mirror is created using the [Storage Transfer Service](https://cloud.google.com/storage/transfer/).  It
is currently hosted in a [Google Cloud Storage](https://cloud.google.com/storage/docs/storage-classes#multi-regional)
Multi-Regional storage bucket in the US.

If you have questions or issues, the maintainers may be reached at: gcs-maven-mirror@googlegroups.com

This mirror does not have a webserver frontend.  To query / list objects, please use a `prefix` with
a `delimiter` (Example - all artifacts under maven2/com/google/cloud/):

```
https://maven-central.storage-download.googleapis.com/?prefix=maven2/com/google/cloud/&delimiter=/
```

