【问题标题】:Scala Casbah MongoDB driver - Maven errorScala Casbah MongoDB 驱动程序 - Maven 错误
【发布时间】: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 文件的存储库真是令人沮丧。

【问题讨论】:

    标签: mongodb scala casbah


    【解决方案1】:

    casbah 主项目具有描述所有依赖项的 pom 文件。正如你在这里看到的:https://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.10/2.5.1/casbah_2.10-2.5.1.pom

    通常,您的构建工具应该能够读取 pom 并获取依赖项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-22
      • 1970-01-01
      • 1970-01-01
      • 2012-10-06
      • 1970-01-01
      相关资源
      最近更新 更多