mavenbuildnexus

compiling with maven and nexus stuck on downloading artifacts


we are using here nexus 1.9.2.4 and maven 2.2.1 and on one pc (and only that one) when we try to compile our code using maven, it get stuck on downloading jars. for example it'll be stuck on:

Downloading: http://mainserver:8081/nexus/content/groups/public/org/codehaus/mojo/javascript/javascript-maven-plugin/1.0-alpha-1-SNAPSHOT/javascript-maven-plugin-1.0-alpha-1-20090530.211438-7.jar 17/54K

and won't continue at all. tried using maven 3.0.4, but with the same result.

the machine runs windows 7.

any advise will be appreciated


Solution

  • This appears to be a bug related to using Maven on Java 7 and 64bit Windows. I have been experiencing similar problems.

    The maven bug report and some discussion can be found here:

    http://jira.codehaus.org/browse/MNG-5162

    Workaround documented here:

    https://cwiki.apache.org/confluence/display/MAVEN/ConnectException

    Add -Djava.net.preferIPv4Stack=true to MAVEN_OPTS