Bug#563946: maven2: dependency downloads fail

Damien Raude-Morvan drazzib at drazzib.com
Wed Jan 6 20:20:26 UTC 2010


# 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20100106/b7144a8e/attachment.pgp>


More information about the pkg-java-maintainers mailing list