I'm using spray with casbah and salat. I get this error when I import the casbah imports,
import com.mongodb.casbah.Imports._
object mongodb is not a member of package com
However, sbt compiles successfully w/o any warning. My build.sbt looks
scalaVersion := "2.10.3"
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8")
resolvers ++= Seq(
"spray repo" at "http://repo.spray.io/",
"Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases"
)
libraryDependencies ++= {
val akkaV = "2.2.3"
val sprayV = "1.2.0"
Seq(
"io.spray" % "spray-can" % sprayV,
"io.spray" % "spray-routing" % sprayV,
"io.spray" % "spray-testkit" % sprayV % "test",
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-testkit" % akkaV % "test",
"org.specs2" %% "specs2-core" % "2.3.7" % "test",
"org.mongodb" %% "casbah" % "2.7.0-RC0",
"com.novus" %% "salat" % "1.9.5"
)
}
Any idea on how to convince Eclipse to find the package?