- Ensured the latest wagon providers are used by the wagon-maven-plugin uses
- Added some properties to fine-tune the way the http wagon provider deploys
REMARK: These properties should probably be disabled or tuned as I switched off paralellism completely ... it might also have an effect on resolving dependencies.
diff --git a/pom.xml b/pom.xml
index f1421c8..e08a0a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,6 +49,15 @@
<royale.compiler.version>0.9.8-SNAPSHOT</royale.compiler.version>
<release-profiles>apache-release</release-profiles>
+
+ <!-- Dont't open multiple connections to one service to upload multiple artifacts at the same time -->
+ <maven.wagon.httpconnectionManager.maxPerRoute>1</maven.wagon.httpconnectionManager.maxPerRoute>
+ <!-- Dont't open multiple connections in total to upload multiple artifacts at the same time -->
+ <maven.wagon.httpconnectionManager.maxTotal>1</maven.wagon.httpconnectionManager.maxTotal>
+ <!-- Change the retry handler to a version that supports retries -->
+ <maven.wagon.http.retryHandler.class>standard</maven.wagon.http.retryHandler.class>
+ <!-- Try at most 6 times to deploy every artifact -->
+ <maven.wagon.http.retryHandler.count>6</maven.wagon.http.retryHandler.count>
</properties>
<!-- Only configure the site distribution as the rest is handled by the apache parent -->
@@ -94,6 +103,14 @@
</modules>
<build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-http</artifactId>
+ <version>3.4.0</version>
+ </extension>
+ </extensions>
+
<plugins>
<!-- Check if all source files have the required apache license headers -->
<plugin>