This is an automated email from the ASF dual-hosted git repository. brycemecum pushed a commit to branch maint-18.1.0 in repository https://gitbox.apache.org/repos/asf/arrow.git
commit 6040c07ceae51963f99d2a46525b6839bb6a9ad1 Author: Sutou Kouhei <[email protected]> AuthorDate: Fri Oct 18 00:01:22 2024 +0900 GH-44451: [Release] Retry on HTTP error in Java upload (#44452) ### Rationale for this change `dev/release/06-java-upload.sh` sometimes failed with the following HTTP error: ```text [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact org.apache.arrow:arrow-compression:pom:18.0.0 from/to apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2): transfer failed for https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/arrow/arrow-compression/18.0.0/arrow-compression-18.0.0.po [...] ``` ### What changes are included in this PR? Use `-DretryFailedDeploymentCount=10` for retry on HTTP error. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #44451 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]> --- dev/release/06-java-upload.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/release/06-java-upload.sh b/dev/release/06-java-upload.sh index 9d791f8ef7..d0fd851da5 100755 --- a/dev/release/06-java-upload.sh +++ b/dev/release/06-java-upload.sh @@ -107,8 +107,9 @@ for pom in *.pom; do classifiers="" args=() args+=(deploy:deploy-file) - args+=(-Durl=https://repository.apache.org/service/local/staging/deploy/maven2) args+=(-DrepositoryId=apache.releases.https) + args+=(-DretryFailedDeploymentCount=10) + args+=(-Durl=https://repository.apache.org/service/local/staging/deploy/maven2) pom="${PWD}/${pom}" args+=(-DpomFile="${pom}") if [ -f "${base}.jar" ]; then @@ -139,7 +140,7 @@ for pom in *.pom; do args+=(-Dtypes="${types}") args+=(-Dclassifiers="${classifiers}") pushd "${SOURCE_DIR}" - mvn deploy:deploy-file "${args[@]}" + mvn "${args[@]}" popd done
