title: Maven retry dependency download if failed
body: <p>During downloading dependencies by maven, one of it fails due to network issues:</p>
  
  <pre><code>Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-failsafe-plugin/2.16/maven-failsafe-plugin-2.16.pom
  Plugin org.apache.maven.plugins:maven-failsafe-plugin:2.16 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-failsafe-plugin:jar:2.16
  </code></pre>
  
  <p>I would like to retry it for <code>n</code> times where <code>n</code> will be configurable. How can I do this?</p>