From 7e05d64d04bcd46c24def5740a09a47b9bdff995 Mon Sep 17 00:00:00 2001 From: mingji Date: Tue, 2 Jan 2024 21:47:08 +0800 Subject: [PATCH] [CELEBORN-1205] Disable Maven local caches to improve SBT building stability ### What changes were proposed in this pull request? To eliminate build failure when using SBT. ### Why are the changes needed? If the maven local cache is enabled, SBT can't find the correct dependencies. If the maven local cache is disabled, SBT can find the correct dependencies. ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? GA Closes #2199 from FMX/b1205. Authored-by: mingji Signed-off-by: zky.zhoukeyong --- build/sbt-config/repositories | 2 +- build/sbt-config/repositories-asia.template | 2 +- build/sbt-config/repositories-cn.template | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/sbt-config/repositories b/build/sbt-config/repositories index ffa3fc3f7..628c5ea55 100644 --- a/build/sbt-config/repositories +++ b/build/sbt-config/repositories @@ -17,7 +17,7 @@ [repositories] local - mavenLocal: file://${user.home}/.m2/repository/ + # mavenLocal: file://${user.home}/.m2/repository/ local-preloaded-ivy: file:///${sbt.preloaded-${sbt.global.base-${user.home}/.sbt}/preloaded/}, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext] local-preloaded: file:///${sbt.preloaded-${sbt.global.base-${user.home}/.sbt}/preloaded/} # The system property value of `celeborn.sbt.default.artifact.repository` is diff --git a/build/sbt-config/repositories-asia.template b/build/sbt-config/repositories-asia.template index ae201139d..45ba8c32d 100644 --- a/build/sbt-config/repositories-asia.template +++ b/build/sbt-config/repositories-asia.template @@ -24,7 +24,7 @@ [repositories] local - mavenLocal: file://${user.home}/.m2/repository/ + # mavenLocal: file://${user.home}/.m2/repository/ # The system property value of `celeborn.sbt.default.artifact.repository` is # fetched from the environment variable `DEFAULT_ARTIFACT_REPOSITORY` and # assigned within the build/sbt-launch-lib.bash script. diff --git a/build/sbt-config/repositories-cn.template b/build/sbt-config/repositories-cn.template index eb75ff217..a07ac96f8 100644 --- a/build/sbt-config/repositories-cn.template +++ b/build/sbt-config/repositories-cn.template @@ -25,7 +25,7 @@ [repositories] local - mavenLocal: file://${user.home}/.m2/repository/ + # mavenLocal: file://${user.home}/.m2/repository/ # The system property value of `celeborn.sbt.default.artifact.repository` is # fetched from the environment variable `DEFAULT_ARTIFACT_REPOSITORY` and # assigned within the build/sbt-launch-lib.bash script.