# block maven2 bugreport with ipv6 issue on OpenJDK block 563946 by 560056 thanks
Hi Ed, AFAIK, it's a OpenJDK runtime bug. You can look at #560056 for a quick fix. Cheers, Le mercredi 06 janvier 2010 15:23:12, Ed Schaller a écrit : > Maven fails to download dependencies with errors like: > > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2 > .0/maven-site-plugin-2.0.pom [WARNING] Unable to get resource > 'org.apache.maven.plugins:maven-site-plugin:pom:2.0' from repository > central (http://repo1.maven.org/maven2): Error transferring file: Network > is unreachable Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2 > .0/maven-site-plugin-2.0.pom [WARNING] Unable to get resource > 'org.apache.maven.plugins:maven-site-plugin:pom:2.0' from repository > central (http://repo1.maven.org/maven2): Error transferring file: Network > is unreachable > > This happens systems with a functioning network connection where the failed > urls can be successfully downloaded through another method (eg: wget, > iceweasel). > > Some investigation revealed that for some reason these downloads are only > trying IPv6 on hosts which only have IPv4 configured. This makes the > "Network is unreachable" sort of make sense. > > This can be worked around by running maven with the argument > -Djava.net.preferIPv4Stack=true. -- Damien Raude-Morvan - http://damien.raude-morvan.com/
signature.asc
Description: This is a digitally signed message part.

