0

我无法尝试来自 spay.io 的任何示例,因为我无法解决有关build.sbt. 这是它的样子:

//....skipped

resolvers += "spray repo" at "http://repo.spray.io"

libraryDependencies += "io.spray" % "spray-can" % "1.0"

但是,它给了我一个错误:

[info] Resolving io.spray#spray-can;1.0 ...
[warn]  module not found: io.spray#spray-can;1.0
[warn] ==== local: tried
[warn]   /home/alex/.ivy2/local/io.spray/spray-can/1.0/ivys/ivy.xml
[warn] ==== Typesafe Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/io/spray/spray-can/1.0/spray-can-1.0.pom
[warn] ==== spray repo: tried
[warn]   http://repo.spray.io/io/spray/spray-can/1.0/spray-can-1.0.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/io/spray/spray-can/1.0/spray-can-1.0.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: io.spray#spray-can;1.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: io.spray#spray-can;1.0: not found
    //..................................... skipped
[error] (*:update) sbt.ResolveException: unresolved dependency: io.spray#spray-can;1.0: not found

即使我将版本更改为 1.1,我仍然有同样的错误。

那有什么问题?

4

1 回答 1

1

1.0根据文档(并浏览 repo),还没有spray 的版本:请参阅spray - Current Versions

最新的似乎是1.0-M7针对 scala 2.9.2 或1.1-M7针对 scala 2.10.0-RC5。

于 2013-06-08T15:28:43.480 回答