java - Eclipse Mars: Download repository index updates on startup - fails -


eclipse mars m2e plugin fails download repository index updates on startup. run eclipse behind company firewall proxy setting working "check updates", "eclipse marketplace", eclipse inbuilt browser,....

i hv tried following

  1. deleting cache directory "\eclipse\p2\org.eclipse.equinox.p2.repository\cache" , refreshing repositories. preferences -> install update -> available software sites => select entry , click "reload"
  2. adding "-djava.net.preferipv4stack=true" -vmargs in eclipse.ini

edit: proxy configurations correctly set in $home/.m2/settings.xml
edit: seems bug. raised bug request eclipse.org. can view here

pleasehelp me resolve this. due issue, eclipse fails search , add dependency maven repositories.

here error in .metadata/.log

eclipse.buildid=4.5.0.i20150603-2000 java.version=1.8.0_60 java.vendor=oracle corporation bootloader constants: os=win32, arch=x86_64, ws=win32, nl=en_in framework arguments:  -product org.eclipse.epp.package.jee.product command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product  !entry org.eclipse.m2e.logback.appender 4 0 2015-09-30 14:39:59.820 !message unable update index central|https://repo.maven.apache.org/maven2 !stack 0 java.net.connectexception: connection timed out: connect         @ java.net.twostacksplainsocketimpl.socketconnect(native method)         @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:350)         @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:206)         @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:188)         @ java.net.plainsocketimpl.connect(plainsocketimpl.java:172)         @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392)         @ java.net.socket.connect(socket.java:589)         @ com.squareup.okhttp.internal.platform.connectsocket(platform.java:107)         @ com.squareup.okhttp.connection.connect(connection.java:156)         @ com.squareup.okhttp.connection.connectandsetowner(connection.java:175)         @ com.squareup.okhttp.okhttpclient$1.connectandsetowner(okhttpclient.java:120)         @ com.squareup.okhttp.internal.http.httpengine.nextconnection(httpengine.java:330)         @ com.squareup.okhttp.internal.http.httpengine.connect(httpengine.java:319)         @ com.squareup.okhttp.internal.http.httpengine.sendrequest(httpengine.java:241)         @ com.squareup.okhttp.call.getresponse(call.java:271)         @ com.squareup.okhttp.call$applicationinterceptorchain.proceed(call.java:228)         @ com.squareup.okhttp.call.getresponsewithinterceptorchain(call.java:199)         @ com.squareup.okhttp.call.execute(call.java:79)         @ io.takari.aether.okhttp.okhttpaetherclient.execute(okhttpaetherclient.java:154)         @ io.takari.aether.okhttp.okhttpaetherclient.get(okhttpaetherclient.java:100)         @ org.eclipse.m2e.core.internal.index.nexus.aetherclientresourcefetcher.retrieve(aetherclientresourcefetcher.java:79)         @ org.apache.maven.index.updater.abstractresourcefetcher.retrieve(abstractresourcefetcher.java:35)         @ org.apache.maven.index.updater.defaultindexupdater.downloadindexproperties(defaultindexupdater.java:452)         @ org.apache.maven.index.updater.defaultindexupdater.access$100(defaultindexupdater.java:75)         @ org.apache.maven.index.updater.defaultindexupdater$indexadaptor.setproperties(defaultindexupdater.java:607)         @ org.apache.maven.index.updater.defaultindexupdater.fetchandupdateindex(defaultindexupdater.java:788)         @ org.apache.maven.index.updater.defaultindexupdater.fetchandupdateindex(defaultindexupdater.java:135)         @ org.eclipse.m2e.core.internal.index.nexus.nexusindexmanager.updateremoteindex(nexusindexmanager.java:1127)         @ org.eclipse.m2e.core.internal.index.nexus.nexusindexmanager.updateindex(nexusindexmanager.java:1084)         @ org.eclipse.m2e.core.internal.index.nexus.nexusindexmanager$1.run(nexusindexmanager.java:656)         @ org.eclipse.m2e.core.internal.index.nexus.indexupdaterjob.run(indexupdaterjob.java:72)         @ org.eclipse.core.internal.jobs.worker.run(worker.java:55) 

although have configured proxy in eclispe, have same config maven, settinggs.xml file. here have proxy configuration section:

<proxies>   <proxy>     <active>true</active>     <protocol>http</protocol>     <host>myproxy.company.com</host>     <port>8080</port>   </proxy> </proxies> 

then have ensure in eclipse using configured settings.xml file, in window->preferences-maven->user settings.

hope helps.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -