Using sbt behind the firewall proxy using internal artifactory

Following the instructions on sbt install


Use the additional parameters to override the repo location and provide the path

1) Download the sbt jar to some location
2) Create a file named sbt with following content


SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M -Dsbt.override.build.repos=true -Dsbt.ivy.home=my_ivy2/ -Dsbt.repository.config=code/repositories-config -Dfile.encoding=UTF8"
java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"

You can also see i have overridden the ivy home for sbt
Changed the repositories to internal artifactory 

No comments:

Post a Comment

Please share your views and comments below.

Thank You.