This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/dev/pr-12468-a1084015eeb390a6c7f53d3ce7391217e427e4d9 in repository https://gitbox.apache.org/repos/asf/seatunnel.git
commit ae7c919bcb78f03446dbd2b754a2b9882602946a Author: Goutam Adwant <[email protected]> AuthorDate: Fri Oct 2 07:26:56 2026 +0000 [Fix][CI] Retry transient Maven Central errors and back off the wrapper download (#12468) --- .mvn/maven.config | 3 +++ mvnw | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.mvn/maven.config b/.mvn/maven.config new file mode 100644 index 0000000000..ad9c8c7c39 --- /dev/null +++ b/.mvn/maven.config @@ -0,0 +1,3 @@ +-Dmaven.wagon.httpconnectionManager.ttlSeconds=25 +-Dmaven.wagon.http.retryHandler.count=5 +-Dmaven.wagon.http.serviceUnavailableRetryStrategy.class=standard diff --git a/mvnw b/mvnw index 486313a937..fe9c2f3195 100755 --- a/mvnw +++ b/mvnw @@ -234,12 +234,14 @@ else download_with_retries() { attempts=1 + delay=5 while [ "$attempts" -le 5 ]; do "$@" && return 0 rm -f "$wrapperJarPath" if [ "$attempts" -lt 5 ]; then - echo "Maven wrapper download failed, retrying in 5 seconds ..." >&2 - sleep 5 + echo "Maven wrapper download failed, retrying in $delay seconds ..." >&2 + sleep "$delay" + delay=`expr "$delay" \* 2` fi attempts=`expr "$attempts" + 1` done
