Cj Burner
Cj Burner

Reputation: 13

Scala play framework - completely offline environment

Any idea if it's possible to use the Play framework, or akka, within a completely offline, non-internet connected environment? I tried running, and it's connecting to maven central, etc...

Thoughts?

Upvotes: 1

Views: 956

Answers (2)

Luong Ba Linh
Luong Ba Linh

Reputation: 802

You need to have Internet connection whenever you update your Play project such that the built tool (sbt/play/activator) can download all dependencies for the first time.

Since Play 2.3, dependencies/libraries locally go to ~/.ivy2/local and the cache of downloaded dependencies/libraries is under ~/.ivy2/cache.

Play 2.3 (and above) uses the default ivy cache and repository, in the .ivy2 folder in the users home directory. When you update (and hence compile or run) a Play 2.3.x project, the dependencies go to ~/.ivy2/cache.

Upvotes: 1

jacks
jacks

Reputation: 4763

As long as you have all the dependencies you need for a successful build then you can do the following to stop the update check etc:

In plugins.sbt :

offline := true

Upvotes: 4

Related Questions