Nan Xiao Nan Xiao - 2 months ago 189
Scala Question

Where can I set proxy for SBT in Intellij IDEA?

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.

But in
SBT
setting screen:

enter image description here

I can't find a place to set proxy. Where can I set proxy for
SBT
in
Intellij IDEA
?

Answer

Add -Dhttp.proxyHost=<proxy_server> -Dhttp.proxyPort=<proxy_port> to VM parameters

Comments