When Maven fails to download a required artifact for a test, the test fails. Is it possible to configure Maven to retry the download with a backoff up to N number of attempts?
Example test failure:
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/15004/console
2017-10-11T19:01:21.382 [INFO] ------------------------------------------------------------------------
2017-10-11T19:01:21.382 [INFO] BUILD FAILURE
2017-10-11T19:01:21.382 [INFO] ------------------------------------------------------------------------
2017-10-11T19:01:21.383 [INFO] Total time: 55:20 min
2017-10-11T19:01:21.383 [INFO] Finished at: 2017-10-11T19:01:21****00:00
2017-10-11T19:01:23.807 [INFO] Final Memory: 261M/2068M
2017-10-11T19:01:23.807 [INFO] ------------------------------------------------------------------------
2017-10-11T19:01:23.836 [ERROR] Failed to execute goal on project beam-sdks-java-io-hcatalog: Could not resolve dependencies for project org.apache.beam:beam-sdks-java-io-hcatalog:jar:2.2.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-metastore:jar:2.1.0, javolution:javolution:jar:5.5.1: Could not transfer artifact org.apache.hive:hive-metastore:jar:2.1.0 from/to central (https://repo.maven.apache.org/maven2): GET request of: org/apache/hive/hive-metastore/2.1.0/hive-metastore-2.1.0.jar from central failed: Connection reset -> [Help 1].
Imported from Jira BEAM-3055. Original Jira may contain additional context.
Reported by: tvalentyn.
When Maven fails to download a required artifact for a test, the test fails. Is it possible to configure Maven to retry the download with a backoff up to N number of attempts?
Example test failure:
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/15004/console
2017-10-11T19:01:21.382 [INFO] ------------------------------------------------------------------------
2017-10-11T19:01:21.382 [INFO] BUILD FAILURE
2017-10-11T19:01:21.382 [INFO] ------------------------------------------------------------------------
2017-10-11T19:01:21.383 [INFO] Total time: 55:20 min
2017-10-11T19:01:21.383 [INFO] Finished at: 2017-10-11T19:01:21****00:00
2017-10-11T19:01:23.807 [INFO] Final Memory: 261M/2068M
2017-10-11T19:01:23.807 [INFO] ------------------------------------------------------------------------
2017-10-11T19:01:23.836 [ERROR] Failed to execute goal on project beam-sdks-java-io-hcatalog: Could not resolve dependencies for project org.apache.beam:beam-sdks-java-io-hcatalog:jar:2.2.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-metastore:jar:2.1.0, javolution:javolution:jar:5.5.1: Could not transfer artifact org.apache.hive:hive-metastore:jar:2.1.0 from/to central (https://repo.maven.apache.org/maven2): GET request of: org/apache/hive/hive-metastore/2.1.0/hive-metastore-2.1.0.jar from central failed: Connection reset -> [Help 1].
Imported from Jira BEAM-3055. Original Jira may contain additional context.
Reported by: tvalentyn.