1

我正在尝试编译一个与 json spray 相关的 scala 类。以下错误消息对我来说有点神秘:

error: class file needed by ExtraImplicits is missing.
reference type JsValue of package spray.json refers to nonexisting symbol.

  val tables = json.extract[String](tableLense)

这是课堂上的scaladoc。 http://jrudolph.github.io/json-lenses/latest/api/cc/spray/json/lenses/ExtraImplicits.html

@Jrudolph:我已经添加了 Maven 依赖项,如下所示:

        <dependency>
        <groupId>net.virtual-void</groupId>
        <artifactId>json-lenses_2.9.2</artifactId>
        <version>0.5.2</version>
    </dependency>
    <dependency>
        <groupId>cc.spray.json</groupId>
        <artifactId>spray-json_2.9.1</artifactId>
        <version>1.0.1</version>
    </dependency>

查看我自己的 mvn 依赖项,显然存在版本控制不匹配。问题是,mvn repo 中 cc.spray.json 的最后一个版本是上面那个:但是项目下载站点上列出了许多较新的版本。我将不得不在 pom.xml 中使用系统路径(讨厌)或设置一个私人仓库(讨厌)。

4

0 回答 0