Sunday, 2 July 2017

Setting proxy for SBT environment

I was required to setup 'Apache Spark Scala' environment with SBT in a network that was protected with firewall settings.

As those aware about SBT know, it is a powerful build tool that does most of the activities in background with very little user interventions. It downloads various files listed as dependency over internet and saves them in below local repository (in Windows 7):

C:\Users\<uname>\.ivy2

As my network was behind proxy, I need to instruct SBT to download the files over proxy network.

To let SBT download via proxy, proxy server details need to be updated in below location:

C:\Program Files (x86)\sbt\conf\sbtconfig.txt

Commands to be update in above file are:

-Dhttp.proxyHost:<proxy_ip>
-Dhttp.proxyPort:<proxy_port>
-Dhttps.proxyHost:<proxy_ip>
-Dhttps.proxyPort:<proxy_port>


Please let me know if you face any challenges over here.

No comments:

Post a Comment