Skip to content

Commit be50923

Browse files
JoshRosenSeongjin Cho
authored andcommitted
[SPARK-30944][BUILD] Update URL for Google Cloud Storage mirror of Maven Central
### What changes were proposed in this pull request? This PR is a followup to apache#27307: per https://travis-ci.community/t/maven-builds-that-use-the-gcs-maven-central-mirror-should-update-their-paths/5926, the Google Cloud Storage mirror of Maven Central has updated its URLs: the new paths are updated more frequently. The new paths are listed on https://storage-download.googleapis.com/maven-central/index.html This patch updates our build files to use these new URLs. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Existing build + tests. Closes apache#27688 from JoshRosen/update-gcs-mirror-url. Authored-by: Josh Rosen <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
1 parent 9b86f36 commit be50923

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
See https://storage-download.googleapis.com/maven-central/index.html
254254
-->
255255
<name>GCS Maven Central mirror</name>
256-
<url>https://maven-central.storage-download.googleapis.com/repos/central/data/</url>
256+
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
257257
<releases>
258258
<enabled>true</enabled>
259259
</releases>
@@ -284,7 +284,7 @@
284284
See https://storage-download.googleapis.com/maven-central/index.html
285285
-->
286286
<name>GCS Maven Central mirror</name>
287-
<url>https://maven-central.storage-download.googleapis.com/repos/central/data/</url>
287+
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
288288
<releases>
289289
<enabled>true</enabled>
290290
</releases>

project/SparkBuild.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ object SparkBuild extends PomBuild {
226226
resolvers := Seq(
227227
// Google Mirror of Maven Central, placed first so that it's used instead of flaky Maven Central.
228228
// See https://storage-download.googleapis.com/maven-central/index.html for more info.
229-
"gcs-maven-central-mirror" at "https://maven-central.storage-download.googleapis.com/repos/central/data/",
229+
"gcs-maven-central-mirror" at "https://maven-central.storage-download.googleapis.com/maven2/",
230230
DefaultMavenRepository,
231231
Resolver.mavenLocal,
232232
Resolver.file("local", file(Path.userHome.absolutePath + "/.ivy2/local"))(Resolver.ivyStylePatterns)

sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ object SQLConf {
21362136
"if the default Maven Central repo is unreachable.")
21372137
.stringConf
21382138
.createWithDefault(
2139-
"https://maven-central.storage-download.googleapis.com/repos/central/data/")
2139+
"https://maven-central.storage-download.googleapis.com/maven2/")
21402140

21412141
val LEGACY_FROM_DAYTIME_STRING =
21422142
buildConf("spark.sql.legacy.fromDayTimeString.enabled")

0 commit comments

Comments
 (0)