如何在Windows中设置sbt代理

时间:2014-04-28 10:34:55

标签: java scala proxy sbt

我的sbtconfig.txt是这样的:

# 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

它不起作用。有人可以帮我在windows中设置代理吗?谢谢!

1 个答案:

答案 0 :(得分:1)

在您的sbtconfig.txt中,您已将代理详细信息作为URL提供。删除它并添加这样的东西。最好在配置中同时包含http和https条目。用适当的值替换CAPS中给出的条目。

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

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