Sitting behind a firewall is mostly the cause of such troubles.
In this case you
1. need to tell maven about how to reach out through the firewall
2. and you need to tell ant about how to reach out through the firewall
a) when called alone from a shell
b) when called from the ant plugin (or vice vers) under maven
general for maven documented (but sometimes not enough i.e. no
http.auth.preference=BAsic hint can be passed by maven to the proxy which needs
this to not start negotiating with the client, where as the client might not
always be able to negotiate a authentication schema.
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>bcproxyserver.ch.winterthur.com</host>
<port>8080</port>
<username>myusername</username>
<password>mypassword</password>
<nonProxyHosts>*.wgrintra.net</nonProxyHosts>
<id>default</id>
</proxy>
</proxies>
for maven we use
MAVEN_OPTS=
-XX:MaxPermSize=512m -Xmx950m -Xms950m
-Dhttp.auth.preference=Basic
-Dhttp.proxyhost=proxyserver.com
-Dhttp.proxyport=8080
-Dhttp.proxyuser=myusername
-Dhttp.proxypassword=mypassword
For ant we use
ANT_OPTS=
-Dhttp.proxyHost=proxyserver.com
-Dhttp.proxyPort=8080
-Dhttp.proxyUser=myusername
-Dhttp.proxyPassword=mypassword
-Dhttp.auth.preference=Basic
AND most important, you should look at
http://vouters.dyndns.org/tima/All-OS-ANT-ANT_and_URLs_authentication.html
and then say thanks to Philippe Vouters, which has documented so nicely what we
have done in the past to make ant going
Josef
-----Ursprüngliche Nachricht-----
Von: Brett Porter [mailto:[email protected]] Im Auftrag von Brett Porter
Gesendet: Dienstag, 22. Januar 2013 06:39
An: Maven Developers List; Shixiang Wen
Betreff: Re: Default remote repository URL is invalid to build Maven
On 21/01/2013, at 9:25 PM, Shixiang Wen <[email protected]> wrote:
> pull:
> [artifact:pom] Downloading:
> org/apache/maven/maven-parent/21/maven-parent-21.pom from repository
> central at http://repo1.maven.org/maven2 [artifact:pom] Error
> transferring file: Connection timed out: connect
It seems that the place you were building this was unable to reach
http://repo1.maven.org/maven2 at the time of the build (connection timed out) -
if you're able to resolve that issue so it can connect to it then it should
work without changes.
Regards,
Brett
--
Brett Porter
[email protected]
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter
http://twitter.com/brettporter
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional
commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]