Skip to content

Commit acf25f7

Browse files
authored
ARROW-17211: [Java] Fix java-jar nightly on gh & self-hosted runners (#13712)
Authored-by: Jacob Wujciak-Jens <[email protected]> Signed-off-by: Krisztián Szűcs <[email protected]>
1 parent cc63a5d commit acf25f7

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎ci/scripts/java_full_build.sh‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ pushd ${arrow_dir}/java
2828

2929
# Ensure that there is no old jar
3030
# inside the maven repository
31-
find ~/.m2/repository/org/apache/arrow \
32-
"(" -name "*.jar" -o -name "*.zip" -o -name "*.pom" ")" \
33-
-exec echo {} ";" \
34-
-exec rm -rf {} ";"
31+
maven_repo=~/.m2/repository/org/apache/arrow
32+
if [ -d $maven_repo ]; then
33+
find $maven_repo \
34+
"(" -name "*.jar" -o -name "*.zip" -o -name "*.pom" ")" \
35+
-exec echo {} ";" \
36+
-exec rm -rf {} ";"
37+
fi
3538

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

0 commit comments

Comments
 (0)