From 9644eb5db13ef7fb79f0f857cb8ed21cb20fbc61 Mon Sep 17 00:00:00 2001 From: Anthony Louis Date: Thu, 30 Jun 2022 16:50:56 -0300 Subject: [PATCH] fix: clean .m2 before build java --- ci/scripts/java_full_build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ci/scripts/java_full_build.sh b/ci/scripts/java_full_build.sh index 6f12a2fd3d18f..54800e7671598 100755 --- a/ci/scripts/java_full_build.sh +++ b/ci/scripts/java_full_build.sh @@ -26,6 +26,13 @@ export ARROW_TEST_DATA=${arrow_dir}/testing/data pushd ${arrow_dir}/java +# Ensure that there is no old jar +# inside the maven repository +find ~/.m2/repository/org/apache/arrow \ + "(" -name "*.jar" -o -name "*.zip" -o -name "*.pom" ")" \ + -exec echo {} ";" \ + -exec rm -rf {} ";" + # generate dummy GPG key for -Papache-release. # -Papache-release generates signs (*.asc) of artifacts. # We don't use these signs in our release process.