This is Eclipse Juno.
for a Maven plugin, I get errors of the form:
ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from http://repo1.maven.org/maven2 ...
for Eclipse marketplace, I get:
MarketplaceDiscoveryStrategy failed with an error
Cannot complete request to ...
I have turned off the firewall both on my computer and at the router, I do not have a proxy, the Internet Options proxy box is unchecked. Putting the web addresses above in my browser (on the same box) returns the correct contents, however, Eclipse doesn’t seem to want to contact external servers. What should I change? Help!
edit: my Preferences -> General -> Network Connection -> Provider is set to Direct (not that it matters, setting it to native doesn’t work either)
edit2: mvn clean install from the commannd line works just fine and downloads everything.
Oh wow, absolute craziness. It’s a windows/IPV6 issue with JDK7.
see:
https://bugs.java.com/bugdatabase/view_bug?bug_id=7115226
and
https://bugs.java.com/bugdatabase/view_bug?bug_id=7077696
which can be solved by adding -Djava.net.preferIPv4Stack=true in eclipse.ini.
As to why my command line was working? I didn’t update JAVA_HOME when I installed JDK7, and changed the vm setting in eclipse.ini. In other words, my command line was running against JDK6…