directory .sbt is on a mapped drive, leads to error on startup

661 views
Skip to first unread message

Christopher Poile

unread,
Apr 13, 2012, 3:12:35 PM4/13/12
to simple-b...@googlegroups.com
Hi everyone,

I'm on a Windows 7 computer at work that keeps it's user profile directory on a network mapped drive. So instead of c:\users\username\ as my ~ directory, it is \\excalibur\username$\WInntDT\

This seems to work fine for everything else except for SBT, which gives the following error when I add a build.sbt file in the ~\.sbt\plugins\ directory:

Invalid build URI (no handler available): file:/excalibur/username$/WinntDT/.sbt/plugins/

Are there any ideas on why this might be happening and how to fix it?

Thanks!

Jason Zaugg

unread,
Apr 13, 2012, 4:48:02 PM4/13/12
to simple-b...@googlegroups.com
The workaround would be to set the global SBT directory to something on your local disk:

  sbt -Dsbt.global.base=c:/sbt

-jason

Christopher Poile

unread,
Apr 13, 2012, 7:03:59 PM4/13/12
to simple-b...@googlegroups.com
Thank you, that works! I guess that's what I've got to do.

Chris.

Mark Harrah

unread,
Apr 13, 2012, 7:40:04 PM4/13/12
to simple-b...@googlegroups.com
On Fri, 13 Apr 2012 16:03:59 -0700 (PDT)
Christopher Poile <cpo...@gmail.com> wrote:

> Thank you, that works! I guess that's what I've got to do.

Alternatively, you might be able to map \\excalibur\username$\ to a drive letter (say, N:) and set -Dsbt.global.base=N:\WinntDT to keep it on your network drive.

-Mark

Mark Harrah

unread,
Oct 11, 2012, 8:09:25 AM10/11/12
to simple-b...@googlegroups.com
On Wed, 10 Oct 2012 14:09:33 -0700 (PDT)
David Holtzhouser <dholtz...@gmail.com> wrote:

> I had the same problem (and similar problems with Grails, RoR, Maven due
> to ridiculous forced home network mappings in a corporate environment).

I believe the underlying problem was recently minimized here: https://github.com/harrah/xsbt/issues/564

> Does the *sbt -Dsbt.global.base=c:/sbt *permanently set the home
> somewhere in configuration for SBT, or is this something that has to be
> appended each time you run it?

It has to be appended each time. You can put it in your sbt startup batch file to make it permanent. (I don't know if this is a good idea if you installed using the installer.)

-Mark

> If it does modify the home in config, where might that live?
>
> -Dave
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/Pyse3vsJ0-8J.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
>

Reply all
Reply to author
Forward
0 new messages