我在编译时遇到以下错误:
[error] (*:update) sbt.ResolveException: unresolved dependency: org.mongodb#casbah_2.11;2.7.4-SNAPSHOT: not found
Run Code Online (Sandbox Code Playgroud)
使用此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"
Run Code Online (Sandbox Code Playgroud)
我正在使用Typesafe Activator并尝试了许多Casbah版本的组合(包括版本,而不是快照)和解析器."官方"MongoDB Casbah教程中的安装说明也不起作用.有任何想法吗?