|
1 | 1 | <settings> |
| 2 | + <mirrors> |
| 3 | + <mirror> |
| 4 | + <id>nexus</id> |
| 5 | + <mirrorOf>*</mirrorOf> |
| 6 | + <url>https://build-repo.stackable.tech/repository/maven-public/</url> |
| 7 | + </mirror> |
| 8 | + </mirrors> |
| 9 | + |
| 10 | + <profiles> |
| 11 | + <profile> |
| 12 | + <id>stackable</id> |
| 13 | + |
| 14 | + <!--Enable snapshots for the built-in central repo to direct --> |
| 15 | + <!--all requests to nexus via the mirror --> |
| 16 | + <repositories> |
| 17 | + <repository> |
| 18 | + <id>central</id> |
| 19 | + <url>http://central</url> |
| 20 | + <releases> |
| 21 | + <enabled>true</enabled> |
| 22 | + </releases> |
| 23 | + <snapshots> |
| 24 | + <enabled>true</enabled> |
| 25 | + </snapshots> |
| 26 | + </repository> |
| 27 | + </repositories> |
| 28 | + <pluginRepositories> |
| 29 | + <pluginRepository> |
| 30 | + <id>central</id> |
| 31 | + <url>http://central</url> |
| 32 | + <releases> |
| 33 | + <enabled>true</enabled> |
| 34 | + </releases> |
| 35 | + <snapshots> |
| 36 | + <enabled>true</enabled> |
| 37 | + </snapshots> |
| 38 | + </pluginRepository> |
| 39 | + </pluginRepositories> |
| 40 | + |
| 41 | + <properties> |
| 42 | + <!-- |
| 43 | + This is to work around an issue where Maven builds in Github Actions would randomly fail. |
| 44 | + There is some evidence that points at Azure networking as the root cause where it closes idle connections (silently) after 4 minutes. |
| 45 | + Maven would then sometimes reuse an "old" connection from its connection pool and would encounter issues due to these connection closures. |
| 46 | + This patch changes the TTL for the connections to a lower value than 4 minutes (240s), the default is 300s (5min). |
| 47 | +
|
| 48 | + There are two properties here because sometimes in November 2023 the name was changed. |
| 49 | + The new name will only take effect as of Maven 4, but it doesn't hurt to add it here already, therefore, we just add both properties here. |
| 50 | + https://issues.apache.org/jira/browse/MRESOLVER-440 |
| 51 | + --> |
| 52 | + |
| 53 | + <!-- Old name: maven-resolver 1.x, Maven 3.x --> |
| 54 | + <aether.connector.http.connectionMaxTtl>30</aether.connector.http.connectionMaxTtl> |
| 55 | + |
| 56 | + <!-- New name: maven-resolver 2.x, as of Maven 4.x --> |
| 57 | + <aether.transport.http.connectionMaxTtl>30</aether.transport.http.connectionMaxTtl> |
| 58 | + </properties> |
| 59 | + </profile> |
| 60 | + </profiles> |
| 61 | + <activeProfiles> |
| 62 | + <!--make the stackable profile active all the time --> |
| 63 | + <activeProfile>stackable</activeProfile> |
| 64 | + </activeProfiles> |
2 | 65 | </settings> |
0 commit comments