Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions ci/scripts/java_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,19 @@ main() {
echo "=== Copying artifacts to dist dir ==="
mkdir -p "${dist_dir}"

find "${maven_repo}" \
"(" -name "*.jar" -o -name "*.pom" ")" \
-exec echo {} ";" \
-exec cp {} "${dist_dir}" ";"
while IFS= read -r pom; do
if grep -Eq '<maven\.deploy\.skip>[[:space:]]*true[[:space:]]*</maven\.deploy\.skip>' "${pom}"; then
echo "Skipping deployment artifacts for ${pom}"
continue
fi

find "$(dirname "${pom}")" \
-maxdepth 1 \
-type f \
"(" -name "*.jar" -o -name "*.pom" ")" \
-exec echo {} ";" \
-exec cp {} "${dist_dir}" ";"
done < <(find "${maven_repo}" -name "*.pom" -type f)
fi
}

Expand Down
5 changes: 5 additions & 0 deletions ci/scripts/java_jar_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ SETTINGS

local -r is_root='^arrow-adbc-java-root-.*'
for pom in "$@"; do
if grep -Eq '<maven\.deploy\.skip>[[:space:]]*true[[:space:]]*</maven\.deploy\.skip>' "${pom}"; then
echo "Skipping deployment of ${pom}"
continue
fi

echo "Deploying ${pom}"
local mvnArgs=""

Expand Down
5 changes: 5 additions & 0 deletions dev/release/04-java-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ main() {
pushd "${ARROW_ARTIFACTS_DIR}"

for pom in *.pom; do
if grep -Eq '<maven\.deploy\.skip>[[:space:]]*true[[:space:]]*</maven\.deploy\.skip>' "${pom}"; then
echo "Skipping deployment of ${pom}"
continue
fi

base=$(basename "${pom}" .pom)
files=()
types=()
Expand Down
4 changes: 4 additions & 0 deletions java/driver/flight-sql-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<name>Arrow ADBC Driver Flight SQL Validation</name>
<description>Tests validating the Flight SQL driver.</description>

<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.arrow.adbc</groupId>
Expand Down
Loading