在 Intellij IDEA 中,我可以在哪里为 SBT 设置代理? [英] Where can I set proxy for SBT in Intellij IDEA?
本文介绍了在 Intellij IDEA 中,我可以在哪里为 SBT 设置代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I am using Intellij IDEA 14.1.3
edition and have installed Scala
plugin. When creating SBT
project, it reports the following error:
Error:Error while importing SBT project:
...
::::::::::::::::::::::::::::::::::::::::::::::
:: org.fusesource.jansi#jansi;1.11: not found
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml
Server access Error: Connection timed out: connect url=http://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom
Server access Error: Connection timed out: connect url=http://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.fusesource.jansi#jansi;1.11: not found
Error during sbt execution: Error retrieving required libraries
(see C:Usersxiaona.sbtootupdate.log for complete log)
Error: Could not retrieve jansi 1.11
See complete log in C:Usersxiaona.IdeaIC14systemlogsbt.last.log
After referring this post, I see the root cause should be that I use proxy to connect internet.
But in SBT
setting screen:
I can't find a place to set proxy. Where can I set proxy for SBT
in Intellij IDEA
?
解决方案
Add -Dhttp.proxyHost=<proxy_server> -Dhttp.proxyPort=<proxy_port>
to VM parameters
Read documentation for more info
这篇关于在 Intellij IDEA 中,我可以在哪里为 SBT 设置代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文