This is an automated email from the ASF dual-hosted git repository.
cloud-fan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 7cfc7c8932c9 [SPARK-58174][BUILD] Fetch maven plugins from mirror if
MAVEN_MIRROR_URL is set
7cfc7c8932c9 is described below
commit 7cfc7c8932c9adfd24bdf5e8472856c674182d80
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]>
---
pom.xml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pom.xml b/pom.xml
index efed43c84fe7..fd58f5b90702 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3547,6 +3547,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]