scala – 在哪里可以在Intellij IDEA中设置SBT代理?

前端之家收集整理的这篇文章主要介绍了scala – 在哪里可以在Intellij IDEA中设置SBT代理?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用Intellij IDEA 14.1.3版,并安装了Scala插件。创建SBT项目时,会报告以下错误

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

引用这个post后,我看到根本原因应该是我使用代理连接互联网。

但在SBT设置屏幕中:

我找不到设置代理的地方。在Intellij IDEA中我可以在哪里设置SBT代理?

解决方法

添加-Dhttp.proxyHost =< proxy_server> -Dhttp.proxyPort = LT; proxy_port使用>到VM参数

阅读documentation了解更多信息

猜你在找的IDEA相关文章