3

I'm within a Play 2.1.1, scala 2.10.1 environment using the latest Salat build

I'm trying to get the specs2-embedmongo dependency as described in their README.md: adding the following line to my Build.scala:

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

I also added, as indicated, the line

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

But when running play dependencies I get this output:

[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

Is there a way to make this work with my current setup?

4

2 回答 2

4

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

于 2013-06-11T20:41:20.137 回答
1

也许该库尚未针对 Scala 2.10 进行编译。您可以尝试使用以前的版本

"com.github.athieriot" % "specs2-embedmongo_2.9.1" % "0.5"
于 2013-06-11T20:28:16.923 回答