Skip to content

Commit a4ebe27

Browse files
committed
[SPARK-56478][INFRA] Remove hamcrest-core-1.3 in the Maven local as a workaround
### What changes were proposed in this pull request? Retry of f37a0d9 ### Why are the changes needed? Retry of f37a0d9 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Will monitor the build. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #55358 from HyukjinKwon/SPARK-56478-retry. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
1 parent dcb4216 commit a4ebe27

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/_plugins/build_api_docs.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ def build_spark_if_necessary
4545

4646
print_header "Building Spark."
4747
cd(SPARK_PROJECT_ROOT)
48+
# Maven may leave POM-only org.hamcrest:hamcrest-core trees under ~/.m2; SBT/Coursier then
49+
# fails with "file:.../hamcrest-core-*.jar: not found". Clear before invoking SBT.
50+
hamcrest_m2 = File.join(Dir.home, '.m2/repository/org/hamcrest/hamcrest-core')
51+
FileUtils.rm_rf(hamcrest_m2)
4852
command = "NO_PROVIDED_SPARK_JARS=0 build/sbt -Phive -Pkinesis-asl clean package"
4953
puts "Running '#{command}'; this may take a few minutes..."
5054
system(command) || raise("Failed to build Spark")

0 commit comments

Comments
 (0)