【发布时间】:2014-07-22 20:28:50
【问题描述】:
编译时出现以下错误:
[error] (*:update) sbt.ResolveException: unresolved dependency: org.mongodb#casbah_2.11;2.7.4-SNAPSHOT: not found
有了这个 build.sbt 文件:
name := """play-scala"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.1"
libraryDependencies ++= Seq(
jdbc,
anorm,
cache,
ws
)
libraryDependencies += "org.mongodb" %% "casbah" % "2.7.4-SNAPSHOT"
// For stable releases
resolvers += "Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases"
// For SNAPSHOT releases
resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
我正在使用 Typesafe Activator,并尝试了多种 Casbah 版本(包括发行版,而不是快照)和解析器的组合。 installation instructions from the "official" MongoDB Casbah tutorial 也不起作用。有什么想法吗?
【问题讨论】: