Change .ivy2 dir externally

451 views
Skip to first unread message

Jesse

unread,
Jul 14, 2011, 4:14:39 PM7/14/11
to simple-build-tool
Is it possible to configure the ivy2 directory used by sbt via a
system parameter or a environment variable. I see I can do it through
the ivyPaths but that is not really what I am looking for. In my case
normally the default is good but a couple servers that we build on
need a custom path for the .ivy2 directory

Jason Zaugg

unread,
Jul 15, 2011, 1:50:27 AM7/15/11
to simple-b...@googlegroups.com
With SBT 0.10.1, you can add a global setting to ~/.sbt/settings.sbt. This will be included in all builds.

Alternatively, you can fake it with a symlink on the filesystem. This is also possible on Windows [1]

-jason

Mark Harrah

unread,
Jul 15, 2011, 12:43:53 PM7/15/11
to simple-b...@googlegroups.com

Since, 0.10.0, you can set the system property sbt.ivy.home in the
start up script or pass it as an argument to sbt. Either of these
should work:

java -Dsbt.ivy.home=... -jar sbt-launch.jar ...

or

sbt -Dsbt.ivy.home=...

-Mark

Shiva Wu

unread,
Aug 3, 2011, 11:39:38 AM8/3/11
to simple-build-tool
I come across the same problem.
How exactly can I do the trick by global .sbt? This is a great way,
but I cannot find any references.
> [1]http://www.microsoft.com/resources/documentation/windows/xp/all/prodd...
Reply all
Reply to author
Forward
0 new messages