Reputation: 2168
I want to have a single shared ivy repository and several local repositories(one per-user). How can I configure sbt to set a path to shared ivy repository ?
Upvotes: 1
Views: 359
Reputation: 66
you can do this by edit the $HOME/.sbtconfig
add the following JAVA_OPTS
-Dsbt.ivy.home=/shared/.ivy2/
Note: $HOME/.sbtconfig was setup when I installed SBT via MACPORTS. You can also add the JAVA_OPTS directly to the SBT script.
The information above is explained here: http://www.scala-sbt.org/0.12.3/docs/Detailed-Topics/Library-Management.html#ivy-home-directory
Upvotes: 3