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

标签 scala intellij-idea proxy 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之后,我发现根本原因应该是我使用代理连接了Internet。

但是在SBT设置屏幕中:

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

最佳答案

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

阅读documentation了解更多信息

关于scala - 我在哪里可以在Intellij IDEA中设置SBT代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30860940/

相关文章:

java - 使用 Spring 和 Intellij 时无法解析 MVC View

mysql - 无法创建请求的服务[org.hibernate.engine.jdbc.env.spi.JdbcEnvironment](尝试使用EntityManager)

intellij-idea - 在 Intellij IDEA 中禁用所有没有当前断点的断点

与类构造函数相关的 java.lang.NoSuchMethodError

scala - foreach(_ => ()) 这在 Scala 中意味着什么?

ajax - 基于 Web 的 ajax IRC 客户端如何克服 IRC 服务器的连接限制?

java - 通过代理使用 JDBC 驱动程序连接到 MySQL

python - python 的 googlesearch 库

scala - Scala 折叠如何工作?

scala - Future.sequence 的反转