How to set timeout for mvn mirror on dependency: resolve - File transfer error: Read, it turned out

Does anyone know how to manage the timeout settings for the mirror in the maven settings file or in the dependency plugin?

I see that I can change the timeout settings for the server, but not the repository or mirror.

Problem

With the upgrade of nexus oss from 1.8.0 to 2.3x and the transition to a virtual machine, I see intermittent problems with timeouts and nothing useful in the debugging protocol of Nexus alas. I suppose I have two options: improve nexus server performance or tune maven settings to wait longer for artifacts.

I do not see much in common with my server, so I look towards maven.

Maven error resolving dependencies

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 -> [Help 1] 

Please let me know if you know to configure maven wagon, etc., to reduce latency.

+4
source share
1 answer

Try simple http to find out what performance you get outside of Maven. There may be a problem with the proxy or so.

Wagon is the name of the component that performs the HTTP transport in Maven, and you can find more information and configuration tips http://maven.apache.org/guides/mini/guide-http-settings.html p>

+2
source

All Articles