0

我正在尝试以这种方式将 slick 安装到我的 build.sbt 中:

   name := "project"

   version := "1.0"

   scalaVersion := "2.9.1"

   libraryDependencies += "com.typesafe.slick" %% "slick" % "1.0.1"

当我运行我的 sbt 时出现错误

> run
[info] Updating {file:/home/chris/project/}project...
[info] Resolving com.typesafe.slick#slick_2.9.1;1.0.1 ...
[warn]  module not found: com.typesafe.slick#slick_2.9.1;1.0.1
[warn] ==== local: tried
[warn]   /home/chris/.ivy2/local/com.typesafe.slick/slick_2.9.1/1.0.1/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/typesafe/slick/slick_2.9.1/1.0.1/slick_2.9.1-1.0.1.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.slick#slick_2.9.1;1.0.1: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.slick#slick_2.9.1;1.0.1: not found
[error] Total time: 9 s, completed Sep 12, 2013 5:09:25 PM

错误中的 url 不可用,我的问题是,如果我无法从该公共 url 获取此特定版本的代码,我在哪里可以获取该特定版本的代码,一旦我有了代码,我应该将它安装到哪里?

4

1 回答 1

1

遗憾的是,Slick 不适用于 Scala 2.9,因为它利用了 Scala 2.10+ 中可用的功能。

但是,您可以使用ScalaQuery,它是 Slick 的精神前身,并共享其大部分设计和功能。编写 ScalaQuery 的 Stefan Zeiger 现在在 Typesafe on Slick 为我们工作。

于 2013-09-12T22:17:15.207 回答