Perfect! Thank you Markku and such a quick response I added '-Djava.net.preferIPv4Stack=true' MAVEN_OPTS and am now in business.
Thanks again Andy -----Original Message----- From: Markku Saarela [mailto:markku.saar...@pp6.inet.fi] Sent: 27 June 2012 13:27 To: users@maven.apache.org Subject: Re: Maven with JDK 7 Hi, Java 7 use IPv6 (not IPv4) if OS supports it. So if you firewall restricts IPv6 then you got behavior you describe. Also Nexus running on Java 7 failed to connect and app servers etc if firewall does not allow IPv6 communication. Markku On 27.6.2012 15:18, Delaney, Andy wrote: > > Hi All > > I’m working on a JDK 7 project and am trying to use maven to build the > project. However, when I try to run the maven bat under Java 7 it > fails to download any dependencies – when I switch back to Java 6 it > downloads them just fine but of course can’t compile my java 7 sources. > > Looking through the forums the only advice I can get is to revert to > Java 6 – this isn’t an option as I need to compile Java 7 sources. > > Has anyone come across this problem or understand why it is happening > – presumably there is a change in the JDK and the way it handles > socket connections? > > The underlying exception is a timeout exception which would lead me > think this was something to do with proxies or firewalls but I have > tried switching the firewall off and as it runs OK under JDK 6 so I > don’t think that’s it. > > Caused by: java.net.ConnectException: Connection timed out: connect > > at java.net.DualStackPlainSocketImpl.connect0(Native Method) > > at > java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketIm > pl.java:69) > > at > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.jav > a:339) > > at > java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketI > mpl.java:200) > > at > java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java: > 182) > > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157) > > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) > > at java.net.Socket.connect(Socket.java:579) > > at > org.apache.maven.wagon.providers.http.httpclient.conn.scheme.PlainSock > etFactory.connectSocket(PlainSocketFactory.java:123) > > at > org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultClie > ntConnectionOperator.openConnection(DefaultClientConnectionOperator.ja > va:148) > > ... 16 more > > I would appreciate any help you might be able to offer me. > > Many thanks > > Andy > > Tullett Prebon - Best Data Provider (Broker) - Inside Market Data > Awards 2012 > > ---------------------------------------------------------------------- > - > > The information contained in this email is confidential and may also > contain privileged information. Sender does not waive confidentiality > or legal privilege. If you are not the intended recipient please > notify the sender immediately; you should not retain this message or > disclose its content to anyone. > > Internet communications are not secure or error free and the sender > does not accept any liability for the content of the email. Although > emails are routinely screened for viruses, the sender does not accept > responsibility for any damage caused. Replies to this email may be > monitored. > > For more information about the Tullett Prebon group of companies > please visit the following web site: _www.tullettprebon.com_ > > ---------------------------------------------------------------------- > - > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org