|
246 | 246 | </properties>
|
247 | 247 | <repositories>
|
248 | 248 | <repository>
|
249 |
| - <id>central</id> |
250 |
| - <!-- This should be at top, it makes maven try the central repo first and then others and hence faster dep resolution --> |
251 |
| - <name>Maven Repository</name> |
252 |
| - <url>https://repo.maven.apache.org/maven2</url> |
| 249 | + <id>gcs-maven-central-mirror</id> |
| 250 | + <!-- |
| 251 | + Google Mirror of Maven Central, placed first so that it's used instead of flaky Maven Central. |
| 252 | + See https://storage-download.googleapis.com/maven-central/index.html |
| 253 | + --> |
| 254 | + <name>GCS Maven Central mirror</name> |
| 255 | + <url>https://maven-central.storage-download.googleapis.com/repos/central/data/</url> |
253 | 256 | <releases>
|
254 | 257 | <enabled>true</enabled>
|
255 | 258 | </releases>
|
|
258 | 261 | </snapshots>
|
259 | 262 | </repository>
|
260 | 263 | <repository>
|
261 |
| - <id>central_without_mirror</id> |
262 | 264 | <!--
|
263 |
| - This is used as a fallback when a mirror to `central` fail. |
264 |
| - For example, when we use Google Maven Central in GitHub Action as a mirror of `central`, |
265 |
| - this will be used when Google Maven Central is out of sync due to its late sync cycle. |
| 265 | + This is used as a fallback when the first try fails. |
266 | 266 | -->
|
| 267 | + <id>central</id> |
267 | 268 | <name>Maven Repository</name>
|
268 | 269 | <url>https://repo.maven.apache.org/maven2</url>
|
269 | 270 | <releases>
|
|
275 | 276 | </repository>
|
276 | 277 | </repositories>
|
277 | 278 | <pluginRepositories>
|
| 279 | + <pluginRepository> |
| 280 | + <id>gcs-maven-central-mirror</id> |
| 281 | + <!-- |
| 282 | + Google Mirror of Maven Central, placed first so that it's used instead of flaky Maven Central. |
| 283 | + See https://storage-download.googleapis.com/maven-central/index.html |
| 284 | + --> |
| 285 | + <name>GCS Maven Central mirror</name> |
| 286 | + <url>https://maven-central.storage-download.googleapis.com/repos/central/data/</url> |
| 287 | + <releases> |
| 288 | + <enabled>true</enabled> |
| 289 | + </releases> |
| 290 | + <snapshots> |
| 291 | + <enabled>false</enabled> |
| 292 | + </snapshots> |
| 293 | + </pluginRepository> |
278 | 294 | <pluginRepository>
|
279 | 295 | <id>central</id>
|
280 | 296 | <url>https://repo.maven.apache.org/maven2</url>
|
|
0 commit comments