Skip to content

Commit

Permalink
fix: Check the folder first, otherwise getting `find: /Users/runner/.…
Browse files Browse the repository at this point in the history
…m2/repository/org/apache/arrow: No such file or directory`
  • Loading branch information
REASY committed Jul 28, 2022
1 parent 1ac0510 commit f3c2263
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ci/scripts/java_full_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ 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 {} ";"
if [ -d "~/.m2/repository/org/apache/arrow" ]; then
# 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 {} ";"
fi

# generate dummy GPG key for -Papache-release.
# -Papache-release generates signs (*.asc) of artifacts.
Expand Down

0 comments on commit f3c2263

Please sign in to comment.