ci(build): Reduce maven 429 errors by using GCS Maven Mirror - #14172
ci(build): Reduce maven 429 errors by using GCS Maven Mirror#14172lqiu96 wants to merge 8 commits into
Conversation
…k in settings.xml
… redundant shared-config copy
There was a problem hiding this comment.
Code Review
This pull request configures the Google Maven Central Mirror in the root settings.xml using an active profile instead of mirrors, enabling a prioritized search chain with automatic fallback to Maven Central. Additionally, the downstream build script is updated to copy this configuration to the local ~/.m2 directory before running the build. Feedback suggests explicitly specifying the destination file path when copying settings.xml in the shell script to improve robustness.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
429 error on the PR to try and reduce the 429's: Seems odd.. this should be in the maven mirror. Taking a look. |
| <repository> | ||
| <id>google-maven-central</id> | ||
| <name>Google Maven Central Mirror</name> | ||
| <url>https://maven-central.storage-download.googleapis.com/maven2/</url> |
There was a problem hiding this comment.
@suztomo I remember we decided not to use Google mirror at some point. What was the rational?
Maven Central serves as a fallback for when GCS Mirror does not contain any artifact (most likely case: Artifact was just released and mirror did not replicate it yet).
Use settings.xml's profile to define a fallback: local .m2 -> gcs mirror -> maven central. Should be able to handle pulling in deps without overloading maven central
Fixes: #14171