|
231 | 231 | </properties> |
232 | 232 | <repositories> |
233 | 233 | <repository> |
234 | | - <id>central</id> |
235 | | - <!-- This should be at top, it makes maven try the central repo first and then others and hence faster dep resolution --> |
236 | | - <name>Maven Repository</name> |
237 | | - <url>https://repo.maven.apache.org/maven2</url> |
| 234 | + <id>gcs-maven-central-mirror</id> |
| 235 | + <!-- |
| 236 | + Google Mirror of Maven Central, placed first so that it's used instead of flaky Maven Central. |
| 237 | + See https://storage-download.googleapis.com/maven-central/index.html |
| 238 | + --> |
| 239 | + <name>GCS Maven Central mirror</name> |
| 240 | + <url>https://maven-central.storage-download.googleapis.com/repos/central/data/</url> |
238 | 241 | <releases> |
239 | 242 | <enabled>true</enabled> |
240 | 243 | </releases> |
|
243 | 246 | </snapshots> |
244 | 247 | </repository> |
245 | 248 | <repository> |
246 | | - <id>central_without_mirror</id> |
247 | 249 | <!-- |
248 | | - This is used as a fallback when a mirror to `central` fail. |
249 | | - For example, when we use Google Maven Central in GitHub Action as a mirror of `central`, |
250 | | - this will be used when Google Maven Central is out of sync due to its late sync cycle. |
| 250 | + This is used as a fallback when the first try fails. |
251 | 251 | --> |
| 252 | + <id>central</id> |
252 | 253 | <name>Maven Repository</name> |
253 | 254 | <url>https://repo.maven.apache.org/maven2</url> |
254 | 255 | <releases> |
|
260 | 261 | </repository> |
261 | 262 | </repositories> |
262 | 263 | <pluginRepositories> |
| 264 | + <pluginRepository> |
| 265 | + <id>gcs-maven-central-mirror</id> |
| 266 | + <!-- |
| 267 | + Google Mirror of Maven Central, placed first so that it's used instead of flaky Maven Central. |
| 268 | + See https://storage-download.googleapis.com/maven-central/index.html |
| 269 | + --> |
| 270 | + <name>GCS Maven Central mirror</name> |
| 271 | + <url>https://maven-central.storage-download.googleapis.com/repos/central/data/</url> |
| 272 | + <releases> |
| 273 | + <enabled>true</enabled> |
| 274 | + </releases> |
| 275 | + <snapshots> |
| 276 | + <enabled>false</enabled> |
| 277 | + </snapshots> |
| 278 | + </pluginRepository> |
263 | 279 | <pluginRepository> |
264 | 280 | <id>central</id> |
265 | 281 | <url>https://repo.maven.apache.org/maven2</url> |
|
0 commit comments