Skip to content

[SPARK-56180][INFRA] build/mvn prefer to download tgz from maven central#54979

Open
pan3793 wants to merge 1 commit intoapache:masterfrom
pan3793:SPARK-56180
Open

[SPARK-56180][INFRA] build/mvn prefer to download tgz from maven central#54979
pan3793 wants to merge 1 commit intoapache:masterfrom
pan3793:SPARK-56180

Conversation

@pan3793
Copy link
Member

@pan3793 pan3793 commented Mar 24, 2026

What changes were proposed in this pull request?

Migrate build/mvn default tgz downloading from ASF closer.lua to Maven Central ( DEFAULT_ARTIFACT_REPOSITORY, default points to Google mirror).

Also, improve other scripts that use DEFAULT_ARTIFACT_REPOSITORY, now it works well with and without a trailing slash.

Change dev/check-license to use Google mirror instead of https://repo1.maven.org/maven2 when DEFAULT_ARTIFACT_REPOSITORY is absent.

Why are the changes needed?

ASF services have not been very stable recently, this change reduces load on the ASF download site.

closer.lua routes the downloading to either the ASF dlcdn site (powered by CDN) or archive site (slow and unstable), while Maven Central preserves all historical versions, so this also benefits older branches that use old Maven versions (if we backport it to older branches).

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manually tested - fresh clone spark repo, and run build/mvn, build/sbt, dev/check-license.

Was this patch authored or co-authored using generative AI tooling?

No.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the PR title correct?

[SPARK-56180][INFRA] build/mvn prefer to download tgz from maven central

According to the PR description and code, this PR wants to prefer Google Mirror, doesn't it, @pan3793 ?

Change dev/check-license to use Google mirror instead of https://repo1.maven.org/maven2 when DEFAULT_ARTIFACT_REPOSITORY is absent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants