我很擅长使用PlayFramework。我注册了MongoLab并获得了一个Sandboxed版本的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
所以我被卡住了?有人可以帮帮我吗?
答案 0 :(得分:3)
我认为没有发布与play 2.2兼容的play reactive mongo插件,但0.10-SNAPSHOT应该可以正常工作。
以下是关于反应性mongo google群组的讨论:https://groups.google.com/d/topic/reactivemongo/R9TiVINofrk/discussion