tag:help.appveyor.com,2012-11-13:/discussions/problems/4460-maven-builds-failing-due-to-network-timeoutsAppVeyor: Discussion 2018-10-19T08:17:49Ztag:help.appveyor.com,2012-11-13:Comment/396132412016-04-12T03:41:57Z2016-04-12T03:41:57ZMaven builds failing due to network timeouts<div><p>We've started looking into that. Will share a solution soon.
Thanks for waiting!</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/396132412016-04-12T23:03:20Z2016-04-12T23:03:20ZMaven builds failing due to network timeouts<div><p>OK, this is the solution: <a href="http://www.appveyor.com/docs/how-to/http-proxy#maven">http://www.appveyor.com/docs/how-to/http-proxy#maven</a></p>
<p>With a proxy in place it works like a charm: <a href="https://ci.appveyor.com/project/FeodorFitsner/flamingo-ibis/history">
https://ci.appveyor.com/project/FeodorFitsner/flamingo-ibis/history</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/396132412016-04-14T17:45:35Z2016-04-14T17:45:36ZMaven builds failing due to network timeouts<div><p>Hi Feodor,<br>
Thanx for looking into this.</p>
<p>The proxy may fix this, I can't get it to work based on your
example. see. eg. <a href="https://ci.appveyor.com/project/mprins/flamingo-ibis/build/69-(appveyor)/job/3ly4iqpghjis6qxq">
https://ci.appveyor.com/project/mprins/flamingo-ibis/build/69-(appv...</a></p>
<p>Your testcase seems flawed as you are not actually using the
downloaded file to set the proxy config, but still using the script
that's stored in the repository.</p></div>marktag:help.appveyor.com,2012-11-13:Comment/396132412016-04-14T17:47:13Z2016-04-14T17:47:13ZMaven builds failing due to network timeouts<div><p>it appears as if the download never happens...</p></div>marktag:help.appveyor.com,2012-11-13:Comment/396132412016-04-14T17:52:41Z2016-04-14T17:52:41ZMaven builds failing due to network timeouts<div><p>The solution consists of two parts: 1) setup system-wide HTTP
proxy and 2) set proxy for Maven in its settings.</p>
<p>You should add <a href="https://github.com/FeodorFitsner/flamingo-ibis/blob/master/set-maven-proxy.ps1">
<code>set-maven-proxy.ps1</code></a> to your repository and then
modify <code>appveyor.yml</code> like that: <a href="https://github.com/FeodorFitsner/flamingo-ibis/blob/master/appveyor.yml#L20-L21">
https://github.com/FeodorFitsner/flamingo-ibis/blob/master/appveyor...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/396132412016-04-15T07:25:13Z2016-04-15T07:25:13ZMaven builds failing due to network timeouts<div><p>My bad; working now, thanks again.</p></div>marktag:help.appveyor.com,2012-11-13:Comment/396132412016-07-28T13:41:39Z2016-07-28T13:41:40ZMaven builds failing due to network timeouts<div><p>It seems the new build environment does not export a proxy like
the old one; eg. <a href="https://ci.appveyor.com/project/mprins/brmo/build/409-master#L25">https://ci.appveyor.com/project/mprins/brmo/build/409-master#L25</a>
do we still need one?</p></div>marktag:help.appveyor.com,2012-11-13:Comment/396132412016-07-28T16:37:05Z2016-07-28T16:37:05ZMaven builds failing due to network timeouts<div><p>There is an updated <code>set-maven-proxy.ps1</code> which exits
when proxy is not set: <a href="https://gist.github.com/FeodorFitsner/c9cad34f38719e7ae8462082651070db#file-set-maven-proxy-ps1">
https://gist.github.com/FeodorFitsner/c9cad34f38719e7ae846208265107...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/396132412016-07-29T09:10:00Z2016-07-29T09:10:01ZMaven builds failing due to network timeouts<div><p>Thanx Feodor, I already modified my
<code>set-maven-proxy.ps1</code> to do something similar</p></div>mark