my build.sbt has
libraryDependencies += "org.fusesource.scalate" % "scalate-core" % "1.6.1" from "http://repo.fusesource.com/nexus/content/repositories/public/org/fusesource/scalate/"
resolvers += "FuseSource Public Repository" at "http://repo.fusesource.com/nexus/content/repositories/public"
i ran
$ sbt update
which successfully downloaded everything cf
[info] downloading http://repo.fusesource.com/nexus/content/repositories/public/org/fusesource/scalate/ ...
[info] [SUCCESSFUL ] org.fusesource.scalate#scalate-core;1.6.1!scalate-core.com/nexus/content/repositories/public/org/fusesource/scalate/ (617ms)
but when i try to use it
$ sbt console
> import org.fusesource
the transitive dependencies hawtjni and jansi are in scope, but not scalate
what am i doing wrong?
UPDATE:
i checked for ~/.ivy2/cache/org.fusesource.scalate/, it exists.
ANSWER:
solved by sbt 0.11.1 doesn't retrieve scalatra 2.1.0-SNAPSHOT dependency
Try this in your build.sbt:
I did two things:
1) Use
%%not%so the Scala version is automatically appended to the artifact name. (It would also work to use%but changescalate-coretoscalate-core_2.10, assuming you're on some Scala 2.10.x version.)2) Omit the
fromclause. You don't need it if you have the resolver right.After adding these settings to an empty sbt 0.13 project I see:
Indentation added for clarity. Note that the main scalate jar was downloaded to
~/.ivy2/cache/org.fusesource.scalate/scalate-core_2.10/bundles/scalate-core_2.10-1.6.1.jar.