This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 5241914544 ARROW-16943: [Java][Packaging] Fix nigthly build problem
that generates excessive jars (#13485)
5241914544 is described below
commit 5241914544407d17c7e0cd7982e07c2de6123640
Author: Anthony Louis <[email protected]>
AuthorDate: Fri Jul 1 03:00:41 2022 -0300
ARROW-16943: [Java][Packaging] Fix nigthly build problem that generates
excessive jars (#13485)
Since June 24 the nightly build is generating multiple jars for the same
module.
In that example:
https://github.com/ursacomputing/crossbow/releases/tag/nightly-packaging-2022-06-24-0-github-java-jars
you can find three different jars for the arrow-gandiva.
The commit purpose is clean the .m2 folder before executing the clean
install command and copy the artifacts to the folder where they will be
uploaded.
Authored-by: Anthony Louis <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
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 6f12a2fd3d..54800e7671 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.