【发布时间】:2014-03-15 08:06:13
【问题描述】:
在 Maven 中设置 Casbah MongoDB 驱动程序的正确方法是什么?当我尝试运行 Maven 构建时出现以下错误,我收到以下错误:
[ERROR] The following artifacts could not be resolved: org.mongodb:casbah_2.10:jar:2.5.1, com.novus:salat-core:jar:1.9.2: Failure to find org.mongodb:casbah_2.10:jar:2.5.1 in https://oss.sonatype.org/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of oss-sonatype-releases has elapsed or updates are forced -> [Help 1]
我还添加了 maven 依赖项和 repo 位置,但是查看以下 URL,Maven 应该从中获取 jar 文件,它似乎不存在!
https://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.10/2.5.1/
设置的正确方法是什么。有这么多没有任何 jar 文件的存储库真是令人沮丧。
【问题讨论】: