I'm doing this from within code in a Scala/SBT project, but I assume this question should equally well apply to Java code.
In build.sbt
I have:
libraryDependencies += "org.mongodb" %% "casbah" % "2.6.3"
but then in the code, I need to import for example:
import com.mongodb.MongoClient
I would try googling this, but I have no idea what's the question I should ask from Google.
That's the package structure for the 2.x java driver. That's moving under org.mongodb for the core of the 3.x driver with a driver-compat module still under the com.mongodb namespace.