Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added HTTP options to make Maven call more resilient (#3865)
The build of `@jsii/java-runtime` may sometimes fail in the pipeline with a message like this: > [ERROR] Plugin org.apache.maven.plugins:maven-source-plugin:3.2.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-source-plugin:jar:3.2.1: Could not transfer artifact org.apache.maven.plugins:maven-source-plugin:pom:3.2.1 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/3.2.1/maven-source-plugin-3.2.1.pom: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.32.215] failed: Connection timed out (Connection timed out) -> [Help 1] The recommended solution is to disable the connection pooling with `-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false` --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information