7

我对使用 PlayFramework 很陌生。我注册了 MongoLab 并获得了 MongoDB 的沙盒版本。现在我遇到了ReactiveMongo插件,但它仅适用于 Play 2.1。是否有使用 2.3 设置 MongoDB 的教程?我编辑了 build.sbt 文件看起来像这样

name := "restsample"

version := "1.0-SNAPSHOT"

libraryDependencies ++= Seq(
"org.reactivemongo" %% "play2-reactivemongo" % "0.9",
  javaJdbc,
  javaEbean,
  cache
)


play.Project.playJavaSettings

当我运行它时,我得到一个

info] Updating {file:/Users/mateen.sajjad/play-learn/restsample/}restsample...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[error] Modules were resolved with conflicting cross-version suffixes in {file:/Users/mateen.sajjad/play-learn/restsample/}restsample:
[error]    org.scala-stm:scala-stm _2.10.0, _2.10
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) Conflicting cross-version suffixes in: org.scala-stm:scala-stm
[error] Total time: 6 s, completed Nov 7, 2013 1:41:33 PM

所以我被困住了?谁能帮帮我?

4

1 回答 1

3

I think there is no release of the play reactive mongo plugin that works with play 2.2 yet but 0.10-SNAPSHOT should work.

Here is a discussion about it on the reactive mongo google group: https://groups.google.com/d/topic/reactivemongo/R9TiVINofrk/discussion

于 2013-11-07T12:37:52.480 回答