[SPARK-55717][BUILD] Use Google Mirror of Maven Central in MavenUtils#54519
Open
yaooqinn wants to merge 1 commit intoapache:masterfrom
Open
[SPARK-55717][BUILD] Use Google Mirror of Maven Central in MavenUtils#54519yaooqinn wants to merge 1 commit intoapache:masterfrom
yaooqinn wants to merge 1 commit intoapache:masterfrom
Conversation
Change the default Maven Central URL in MavenUtils from repo1.maven.org to Google's Maven Central mirror for consistency with the SBT build (SPARK-55710). The DEFAULT_ARTIFACT_REPOSITORY environment variable can still override this. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
a1a66a0 to
3c0f50e
Compare
dongjoon-hyun
requested changes
Feb 26, 2026
Member
There was a problem hiding this comment.
Ur, @yaooqinn . Does this PR aim for Spark jobs to use Google Mirror even in the private data centers when --package is given?
Yes. The default repository URL for --packages resolution changes from Maven Central to its Google mirror. Users can override via DEFAULT_ARTIFACT_REPOSITORY.
#54508 affects only for the developers to build Spark, but this PR sounds dangerous to me. I'm negative for this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Change the default Maven Central URL in
MavenUtils.scalafromrepo1.maven.orgto Google's Maven Central mirror (maven-central.storage-download.googleapis.com).Why are the changes needed?
Follow-up of SPARK-55710 / #54508 (suggested by @sarutak). The SBT build already uses the Google mirror as the primary resolver.
MavenUtilswas still defaulting torepo1.maven.orgfor runtime dependency resolution (e.g.,--packages). This makes it consistent.The
DEFAULT_ARTIFACT_REPOSITORYenvironment variable can still be used to override this.Does this PR introduce any user-facing change?
Yes. The default repository URL for
--packagesresolution changes from Maven Central to its Google mirror. Users can override viaDEFAULT_ARTIFACT_REPOSITORY.How was this patch tested?
Existing tests. The change is a URL swap for the same Maven Central content.
Was this patch authored or co-authored using generative AI tooling?
Yes, GitHub Copilot CLI was used.