This is an automated email from the ASF dual-hosted git repository.
cloud-fan pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.x by this push:
new 6630bc8358e1 [SPARK-58174][BUILD] Fetch maven plugins from mirror if
MAVEN_MIRROR_URL is set
6630bc8358e1 is described below
commit 6630bc8358e188efd94fdc9ce1c234e2f8268d69
Author: Matthis Gördel <[email protected]>
AuthorDate: Fri Aug 7 19:29:06 2026 +0800
[SPARK-58174][BUILD] Fetch maven plugins from mirror if MAVEN_MIRROR_URL is
set
### What changes were proposed in this pull request?
If `MAVEN_MIRROR_URL` use it not only to fetch build dependencies but also
to fetch maven plugins.
### Why are the changes needed?
Maven cannot build spark if it cannot fetch plugins, which is currently the
case if public maven repos are not available.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
I manually built spark with `MAVEN_MIRROR_URL` set.
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #57307 from fwc/fetch-mvn-plugins-from-mirror.
Lead-authored-by: Matthis Gördel <[email protected]>
Co-authored-by: Matthis Gördel <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit 7cfc7c8932c9adfd24bdf5e8472856c674182d80)
Signed-off-by: Wenchen Fan <[email protected]>
---
pom.xml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pom.xml b/pom.xml
index ab47c9d95c1b..598ac7438d2e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3552,6 +3552,12 @@
<url>${env.MAVEN_MIRROR_URL}</url>
</repository>
</repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>maven-mirror</id>
+ <url>${env.MAVEN_MIRROR_URL}</url>
+ </pluginRepository>
+ </pluginRepositories>
</profile>
<!--
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]