WARNING Not tested with the sbt
script from the Debian package, if you use it be sure to check the .sbtconfig
is correctly imported.
- Put
.sbtconfig
in $HOME/.sbtconfig - Put
credentials.sbt
in $HOME/.sbt/0.13/plugins/credentials.sbt - Put
.credentials
in $HOME/.ivy2/.credentials - Put
repositories
in $HOME/.sbt/repositories
On your Nexus instance, you need to create two "Repository Groups", one called ivy and one called maven. The ivy one should include these two repositories:
- http://repo.typesafe.com/typesafe/ivy-releases/
- http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/
The maven one should include at least the Maven Central repository, already configured in Nexus by default. You can add in this group any other repository you want, like the Aapche Snapshots repository or whatever.
Note that the SBT launcher (which resolves your SBT plugins) currently doesn't load credentials correctly. See the issue here: sbt/sbt#576
You can specify credentials by passing in system properties
sbt.boot.{realm, host, user, password}
. However SBT currently has a bug parsing system properties as it splits naively on spaces, so if your realm has a space in it (the default Nexus realm does) then it'll break.See this issue: sbt/sbt#2787