title: How can I adjust timeout for mvn mirror on dependency:resolve -- Error transferring file: Read timed out
body: <p>Does anyone know how to control the timeout settings for a <strong>mirror</strong> in the maven settings file or in the dependency plugin?  </p>
  
  <p>I see that I can modify timeout settings for a server but not a repository or a mirror.</p>
  
  <p><strong>Problem</strong></p>
  
  <p>Since upgrading nexus oss from 1.8.0 to 2.3x and moving to a VM I'm seeing <strong>intermittent</strong> problems with timeouts and nothing useful in the nexus debug log alas.   I figure I have two options: improve nexus server performance or configure maven settings to wait longer for artifacts.</p>
  
  <p>I don't see much to do with my server so I'm looking into the maven side.</p>
  
  <p><strong>Maven Error on Dependency Resolve</strong></p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project foo: 
  
  from/to snapshots (http://mycorp.com/nexus/content/repositories/snapshots): Error transferring file: Read timed out -&gt; [Help 1]
  </code></pre>
  
  <p>Please let me know if you know to configure maven's wagon etc. to relax its timeout.</p>