Starting sbt offline immediately after installing the launcher?

I am trying to run sbt behind a firewall and I cannot disable it. But somehow I can get the necessary banks and store them in the system. Is there a way that I can run sbt without an internet connection on this system.

I am using Windows (Win7) as a development environment.

+4
source share
2 answers

SBT is offline, from the command line you can use:

sbt "set offline := true" run(replacing with runany command you need)

or if you started sbtand are in sbt console, you can just doset offline := true

+3
source

- . , . , , .

java -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 -Dhttp.proxyUser=proxyUsername -Dhttp.proxyPassword=proxyPassword -cp "/sbt-launch.jar" xsbt.boot.Boot

, .

.ivy/cache/path.

@Exupery .

+1

Source: https://habr.com/ru/post/1533532/


All Articles