添加reactivemongo后出现错误“play-iteratees_2.10 not found”
Posted
技术标签:
【中文标题】添加reactivemongo后出现错误“play-iteratees_2.10 not found”【英文标题】:Getting the error "play-iteratees_2.10 not found" after adding the reactivemongo 【发布时间】:2013-10-14 06:03:40 【问题描述】:我通过创建一个简单的 Scala 项目开始学习 reactivemongo。我从 SBT 开始。这是我的build.sbt
文件:
name := "mongo-test"
version := "1.0"
scalaVersion := "2.10.2"
libraryDependencies ++= Seq(
"org.reactivemongo" %% "reactivemongo" % "0.9"
)
但是执行编译命令时出现错误:
[info] Resolving play#play-iteratees_2.10;2.1.0 ...
[warn] module not found: play#play-iteratees_2.10;2.1.0
[warn] ==== local: tried
[warn] /home/amir/.ivy2/local/play/play-iteratees_2.10/2.1.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/play/play-iteratees_2.10/2.1.0/play-iteratees_2.10-2.1.0.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: play#play-iteratees_2.10;2.1.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
更新: 我的 SBT 版本是 0.13.0。
【问题讨论】:
您使用哪个 SBT 版本? @Schleichardt - 0.13.0 【参考方案1】:添加到您的build.sbt
这一行:
resolvers += "Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/"
【讨论】:
请您解释一下您是如何找到解决方案的? 在 git repo 自述文件上。它也应该在官方网页上,但不是。 :S github.com/ReactiveMongo/…以上是关于添加reactivemongo后出现错误“play-iteratees_2.10 not found”的主要内容,如果未能解决你的问题,请参考以下文章
添加 sbt-native-packager 后出现 sbt 错误