Skip to content

Commit 6e2c7ea

Browse files
committed
chore(java-devel): Tweak Maven retry settings
1 parent 8ace73c commit 6e2c7ea

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

java-devel/stackable/settings.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,24 @@
5555

5656
<!-- New name: maven-resolver 2.x, as of Maven 4.x -->
5757
<aether.transport.http.connectionMaxTtl>25</aether.transport.http.connectionMaxTtl>
58+
59+
<!--
60+
By default, requests are retried 3 times. We increase the count slightly to hopefully get less failing
61+
builds in CI.
62+
-->
63+
<aether.transport.http.retryHandler.count>5</aether.transport.http.retryHandler.count>
64+
65+
<!--
66+
By default, retries wait for 5000l milliseconds (5 seconds). We increase this to 10000l milliseonds
67+
(10 seconds) to spam the Nexus instance a little less.
68+
-->
69+
<aether.transport.http.retryHandler.interval>10000l</aether.transport.http.retryHandler.interval>
70+
71+
<!--
72+
Servers can respond with `Retry-After` headers. By default, the value is capped at 300000l milliseconds (300
73+
seconds). We reduce this to 60000l (60 seconds) to avoid super long retry intervals.
74+
-->
75+
<aether.transport.http.retryHandler.intervalMax>60000l</aether.transport.http.retryHandler.intervalMax>
5876
</properties>
5977
</profile>
6078
</profiles>

0 commit comments

Comments
 (0)