在你的 build.sbt 中试试这个:
resolvers += "FuseSource Public Repository" at
"http://repo.fusesource.com/nexus/content/repositories/public"
libraryDependencies +=
"org.fusesource.scalate" %% "scalate-core" % "1.6.1"
我做了两件事:
1)%%
不使用%
这样 Scala 版本会自动附加到工件名称。(假设您使用的是某个 Scala 2.10.x 版本,它也可以使用%
但更改scalate-core
为。)scalate-core_2.10
2) 省略from
子句。如果您拥有解析器权限,则不需要它。
将这些设置添加到一个空的 sbt 0.13 项目后,我看到:
> show fullClasspath
[info] Updating {file:/Users/tisue/foo/}foo...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading http://repo1.maven.org/maven2/org/fusesource/scalate/scalate-core_2.10/1.6.1/scalate-core_2.10-1.6.1.jar ...
[info] [SUCCESSFUL ] org.fusesource.scalate#scalate-core_2.10;1.6.1!scalate-core_2.10.jar(bundle) (1265ms)
[info] downloading http://repo1.maven.org/maven2/org/fusesource/scalate/scalate-util_2.10/1.6.1/scalate-util_2.10-1.6.1.jar ...
[info] [SUCCESSFUL ] org.fusesource.scalate#scalate-util_2.10;1.6.1!scalate-util_2.10.jar(bundle) (274ms)
[info] downloading http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar ...
[info] [SUCCESSFUL ] org.slf4j#slf4j-api;1.6.1!slf4j-api.jar (198ms)
[info] Done updating.
[info] List(Attributed(/Users/tisue/foo/target/scala-2.10/classes),
Attributed(/Users/tisue/.sbt/boot/scala-2.10.2/lib/scala-library.jar),
Attributed(/Users/tisue/.ivy2/cache/org.fusesource.scalate/scalate-core_2.10/bundles/scalate-core_2.10-1.6.1.jar),
Attributed(/Users/tisue/.ivy2/cache/org.fusesource.scalate/scalate-util_2.10/bundles/scalate-util_2.10-1.6.1.jar),
Attributed(/Users/tisue/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.1.jar),
Attributed(/Users/tisue/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.10.0.jar),
Attributed(/Users/tisue/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.0.jar))
为了清楚起见,添加了缩进。请注意,主 scalate jar 已下载到~/.ivy2/cache/org.fusesource.scalate/scalate-core_2.10/bundles/scalate-core_2.10-1.6.1.jar
.