gbivins / maven-external-dependency-plugin

Automatically exported from code.google.com/p/maven-external-dependency-plugin
0 stars 0 forks source link

Add timeout for artifact download #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

This is a very useful plugin, thank you :-)

Unfortunately we are using the plugin behind a proxy server which for reasons 
beyond out control makes downloads slow and frequently pause. As it is, the 
plugin times-out the connection before it has finished downloading.

We have checked out a copy of the code and fixed the problem locally by adding 
an Integer 'timeout' to the ArtifactItem and then using...

wagon.setTimeout(artifactItem.getTimeout());

...in the ResolveExternalDependencyMojo. This allows us to put  
<timeout>60000</timeout> within the relevant artifactItem element in the pom 
and then everything works nicely.

I attach the files we have amended in the hope that you can incorporate this 
(or something similar into the code base).

Many thanks
Rob

Original issue reported on code.google.com by robkwalp...@gmail.com on 18 Sep 2013 at 10:35

Attachments:

GoogleCodeExporter commented 9 years ago
With hindsight, this should probably have a default value being set somewhere 
so that the timeout element is optional.

Original comment by robkwalp...@gmail.com on 18 Sep 2013 at 12:56

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/maven-external-dependency-plugin/source/detail?r=136

Original comment by vharseko@openam.org.ru on 7 Nov 2013 at 9:27