编译时出现以下错误:

[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激活器,并尝试了许多casbah版本(包括发行版,而不是快照)和解析器的组合。installation instructions from the "official" MongoDB Casbah tutorial也不起作用。有什么想法吗?

最佳答案

如果您转到release和snapshot url并尝试手动定位casbah,您将看到snapshot url doesn't have anything for casbah当前。
另一方面,release repo对于scala 2.11有2.7.3版本。Check it out here
也许可以试试

libraryDependencies += "org.mongodb" %% "casbah" % "2.7.3"

07-24 16:20