huashui
huashui

Reputation: 1858

how to set sbt proxy in windows

my sbtconfig.txt is like this:

# Set the java args to high

-Xmx512M

-XX:MaxPermSize=256m

-XX:ReservedCodeCacheSize=128m



# Set the extra SBT options

-Dsbt.log.format=true



-Dhttp.proxyHost=http://proxy.toshiba.co.jp -Dhttp.proxyPort=8080

and it doesn't work. Could someone help me set the proxy in windows? Thanks!

Upvotes: 1

Views: 2411

Answers (1)

R Thottuvaikkatumana
R Thottuvaikkatumana

Reputation: 173

In your sbtconfig.txt, you have given the proxy details as a URL. Remove that and add something like this. It is better to have both the http and https entries in the configuration. Replace the entries given in CAPS with your proper values.

-Dhttp.proxyHost=PROXYHOST -Dhttp.proxyPort=PROXYPORT -Dhttp.proxyUser=USERNAME -Dhttp.proxyPassword=XXXX

-Dhttps.proxyHost=PROXYHOST -Dhttps.proxyPort=PROXYPORT -Dhttps.proxyUser=USERNAME -Dhttps.proxyPassword=XXXX

Upvotes: 1

Related Questions