我在哪里可以在Intellij IDEA中设置SBT代理? [英] Where can I set proxy for SBT in Intellij IDEA?
本文介绍了我在哪里可以在Intellij IDEA中设置SBT代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Intellij IDEA 14.1.3
版本,并且已经安装了Scala
插件.创建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:\Users\xiaona\.sbt\boot\update.log for complete log)
Error: Could not retrieve jansi 1.11
See complete log in C:\Users\xiaona\.IdeaIC14\system\log\sbt.last.log
在引用了此帖子之后,我看到的根本原因应该是我使用代理连接互联网.
After referring this post, I see the root cause should be that I use proxy to connect internet.
但是在SBT
设置屏幕中:
But in SBT
setting screen:
我找不到设置代理的地方.
I can't find a place to set proxy. Where can I set proxy for SBT
in Intellij IDEA
?
推荐答案
将-Dhttp.proxyHost=<proxy_server> -Dhttp.proxyPort=<proxy_port>
添加到VM参数
阅读文档了解更多信息
这篇关于我在哪里可以在Intellij IDEA中设置SBT代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文