java - IntelliJ sbt project download sources behind proxy or from nexus server -
i using sbt
behind proxy, corporate nexus server.
my setup works correctly, using cntlm
java_opts="-dhttp.proxyhost=10.0.2.2 -dhttp.proxyport=3128 -dhttps.proxyhost=10.0.2.2 -dhttps.proxyport=3128" sbt_opts="-dsbt.override.build.repos=true"
and nexus setup in ~/.sbt/repositories
[repositories] local my-ivy-proxy-releases:http://company.com:8081/nexus/content/groups/ivy-releases/, [organization]/[module]/(scala_[scalaversion]/)(sbt_[sbtversion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] my-maven-proxy-releases:http://company.com:8081/nexus/content/groups/mvn-repositories/
all works correctly, "titled problem", if managed sbt, fe:
librarydependencies += "org.apache.spark" %% spark-core % "1.6.1" withsources())
but if want use build in intellij "download sources" button:
it give me connection error:
what missing? looked @ intellij logs, dont tell much
2017-04-07 10:52:24,002 [89494035] warn - r.internetattachsourceprovider - connection problem. see log more details. com.intellij.jarfinder.sourcesearchexception: connection problem. see log more details. @ com.intellij.jarfinder.mavencentralsourcesearcher.findsourcejar(mavencentralsourcesearcher.java:65) @ com.intellij.jarfinder.internetattachsourceprovider$2$1.run(internetattachsourceprovider.java:134) @ com.intellij.openapi.progress.impl.coreprogressmanager$taskrunnable.run(coreprogressmanager.java:726) @ com.intellij.openapi.progress.impl.coreprogressmanager$6.run(coreprogressmanager.java:410) @ com.intellij.openapi.progress.impl.coreprogressmanager.a(coreprogressmanager.java:176) @ com.intellij.openapi.progress.impl.coreprogressmanager.a(coreprogressmanager.java:556) @ com.intellij.openapi.progress.impl.coreprogressmanager.executeprocessunderprogress(coreprogressmanager.java:501) @ com.intellij.openapi.progress.impl.progressmanagerimpl.executeprocessunderprogress(progressmanagerimpl.java:66) @ com.intellij.openapi.progress.impl.coreprogressmanager.runprocess(coreprogressmanager.java:163) @ com.intellij.openapi.application.impl.applicationimpl.a(applicationimpl.java:594) @ com.intellij.openapi.application.impl.applicationimpl$2.run(applicationimpl.java:334) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) 2017-04-07 10:52:38,562 [89508595] warn - der.mavencentralsourcesearcher - remote host closed connection during handshake javax.net.ssl.sslhandshakeexception: remote host closed connection during handshake @ sun.security.ssl.sslsocketimpl.readrecord(sslsocketimpl.java:992) @ sun.security.ssl.sslsocketimpl.performinitialhandshake(sslsocketimpl.java:1375) @ sun.security.ssl.sslsocketimpl.starthandshake(sslsocketimpl.java:1403) @ sun.security.ssl.sslsocketimpl.starthandshake(sslsocketimpl.java:1387) @ sun.net.www.protocol.https.httpsclient.afterconnect(httpsclient.java:559) @ sun.net.www.protocol.https.abstractdelegatehttpsurlconnection.connect(abstractdelegatehttpsurlconnection.java:185) @ sun.net.www.protocol.http.httpurlconnection.getinputstream0(httpurlconnection.java:1513) @ sun.net.www.protocol.http.httpurlconnection.getinputstream(httpurlconnection.java:1441) @ java.net.httpurlconnection.getresponsecode(httpurlconnection.java:480) @ sun.net.www.protocol.https.httpsurlconnectionimpl.getresponsecode(httpsurlconnectionimpl.java:338) @ com.intellij.util.io.httprequests.openconnection(httprequests.java:511) @ com.intellij.util.io.httprequests.access$300(httprequests.java:61) @ com.intellij.util.io.httprequests$requestimpl.getconnection(httprequests.java:289) @ com.intellij.util.io.httprequests$requestimpl.getinputstream(httprequests.java:298) @ com.intellij.util.io.httprequests$requestimpl.getreader(httprequests.java:316) @ com.intellij.jarfinder.sourcesearcher$1.process(sourcesearcher.java:76) @ com.intellij.jarfinder.sourcesearcher$1.process(sourcesearcher.java:72) @ com.intellij.util.io.httprequests.lambda$doprocess$0(httprequests.java:420) @ com.intellij.util.net.ssl.certificatemanager.runwithuntrustedcertificatestrategy(certificatemanager.java:349) @ com.intellij.util.io.httprequests.doprocess(httprequests.java:420) @ com.intellij.util.io.httprequests.process(httprequests.java:395) @ com.intellij.util.io.httprequests.access$100(httprequests.java:61) @ com.intellij.util.io.httprequests$requestbuilderimpl.connect(httprequests.java:263) @ com.intellij.jarfinder.sourcesearcher.readdocumentcancelable(sourcesearcher.java:72) @ com.intellij.jarfinder.mavencentralsourcesearcher.findsourcejar(mavencentralsourcesearcher.java:39) @ com.intellij.jarfinder.internetattachsourceprovider$2$1.run(internetattachsourceprovider.java:134) @ com.intellij.openapi.progress.impl.coreprogressmanager$taskrunnable.run(coreprogressmanager.java:726) @ com.intellij.openapi.progress.impl.coreprogressmanager$6.run(coreprogressmanager.java:410) @ com.intellij.openapi.progress.impl.coreprogressmanager.a(coreprogressmanager.java:176) @ com.intellij.openapi.progress.impl.coreprogressmanager.a(coreprogressmanager.java:556) @ com.intellij.openapi.progress.impl.coreprogressmanager.executeprocessunderprogress(coreprogressmanager.java:501) @ com.intellij.openapi.progress.impl.progressmanagerimpl.executeprocessunderprogress(progressmanagerimpl.java:66) @ com.intellij.openapi.progress.impl.coreprogressmanager.runprocess(coreprogressmanager.java:163) @ com.intellij.openapi.application.impl.applicationimpl.a(applicationimpl.java:594) @ com.intellij.openapi.application.impl.applicationimpl$2.run(applicationimpl.java:334) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) caused by: java.io.eofexception: ssl peer shut down incorrectly @ sun.security.ssl.inputrecord.read(inputrecord.java:505) @ sun.security.ssl.sslsocketimpl.readrecord(sslsocketimpl.java:973) ... 39 more 2017-04-07 10:52:38,563 [89508596] warn - r.internetattachsourceprovider - connection problem. see log more details. com.intellij.jarfinder.sourcesearchexception: connection problem. see log more details. @ com.intellij.jarfinder.mavencentralsourcesearcher.findsourcejar(mavencentralsourcesearcher.java:65) @ com.intellij.jarfinder.internetattachsourceprovider$2$1.run(internetattachsourceprovider.java:134) @ com.intellij.openapi.progress.impl.coreprogressmanager$taskrunnable.run(coreprogressmanager.java:726) @ com.intellij.openapi.progress.impl.coreprogressmanager$6.run(coreprogressmanager.java:410) @ com.intellij.openapi.progress.impl.coreprogressmanager.a(coreprogressmanager.java:176) @ com.intellij.openapi.progress.impl.coreprogressmanager.a(coreprogressmanager.java:556) @ com.intellij.openapi.progress.impl.coreprogressmanager.executeprocessunderprogress(coreprogressmanager.java:501) @ com.intellij.openapi.progress.impl.progressmanagerimpl.executeprocessunderprogress(progressmanagerimpl.java:66) @ com.intellij.openapi.progress.impl.coreprogressmanager.runprocess(coreprogressmanager.java:163) @ com.intellij.openapi.application.impl.applicationimpl.a(applicationimpl.java:594) @ com.intellij.openapi.application.impl.applicationimpl$2.run(applicationimpl.java:334) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745)
i not sure seems not alone:
it bug in intellj , resolved.
Comments
Post a Comment