specs2-embedmongo未解决与Scala 2.10.1和Play 2.1.1的依赖关系

时间:2013-06-11 19:30:10

标签: sbt playframework-2.1 scala-2.10 specs2

我在使用最新Salat版本的Play 2.1.1,scala 2.10.1环境中

我正在尝试获取他们的README.md中描述的specs2-embedmongo依赖项:将以下行添加到我的Build.scala:

"com.github.athieriot" %% "specs2-embedmongo" % "0.5"

如上所示,我还添加了

"de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "1.31"

但是当运行播放依赖项时,我得到了这个输出:

[warn]  module not found: com.github.athieriot#specs2-embedmongo_2.10;0.5       
[warn] ==== local: tried
[warn]   /usr/local/Cellar/play/2.1.1/libexec/repository/local/com.github.athieriot/specs2-embedmongo_2.10/0.5/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com/github/athieriot/specs2-embedmongo_2.10/0.5/specs2-embedmongo_2.10-0.5.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn]   http://repo.typesafe.com/typesafe/snapshots/com/github/athieriot/specs2-embedmongo_2.10/0.5/specs2-embedmongo_2.10-0.5.pom
[warn] ==== sonatype-snapshots: tried
[warn]   https://oss.sonatype.org/content/repositories/snapshots/com/github/athieriot/specs2-embedmongo_2.10/0.5/specs2-embedmongo_2.10-0.5.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/github/athieriot/specs2-embedmongo_2.10/0.5/specs2-embedmongo_2.10-0.5.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::                       
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.github.athieriot#specs2-embedmongo_2.10;0.5: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] (*:update) sbt.ResolveException: unresolved dependency: com.github.athieriot#specs2-embedmongo_2.10;0.5: not found

有没有办法让我的当前设置工作?

2 个答案:

答案 0 :(得分:4)

我目前正在努力针对Scala 2.10编译库,同时保持2.9兼容性。需要为此清理一些其他依赖项:)

答案 1 :(得分:1)

可能还没有针对Scala 2.10编译lib。您可以尝试使用the previous version

"com.github.athieriot" % "specs2-embedmongo_2.9.1" % "0.5"