【发布时间】:2015-02-28 03:29:32
【问题描述】:
我想在我的 scala 项目中使用 phantom cassandra 包装器,但是当我尝试更新我的 sbt 构建时,我得到一个依赖错误。
我的 build.sbt:
version := "1.0"
scalaVersion := "2.11.2"
seq(lsSettings :_*)
libraryDependencies ++= Seq(
"org.clapper" %% "grizzled-scala" % "1.2",
"commons-io" % "commons-io" % "2.4",
"org.rauschig" % "jarchivelib" % "0.6.0",
"com.google.code.findbugs" % "jsr305" % "3.0.0",
"org.scalatest" % "scalatest_2.11" % "2.2.0" % "test",
"com.github.nscala-time" %% "nscala-time" % "1.2.0",
"org.json4s" %% "json4s-native" % "3.2.10",
"org.scala-lang" % "scala-library" % "2.11.2",
"com.websudos" % "phantom-dsl_2.10" % "1.2.0"
)
resolvers += "grizzled-scala-resolver-0" at "https://oss.sonatype.org/content/repositories/releases"
resolvers += "Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/"
我收到以下错误:
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.sbt:sbt-pgp:0.8.1 (sbtVersion=0.13, scalaVersion=2.10)
不知道我要做什么......
编辑:
https://github.com/websudosuk/phantom/issues/119的回答
错误在 pom 方面,新版本 1.2.1 即将推出...
【问题讨论】:
-
看起来与 scala 版本不匹配 - 您为 phantom 指定 2.10,而项目的其余部分使用 2.11。试试 "com.websudos" %% "phantom-dsl" % "1.2.0"
-
我试过了,它仍然给我同样的错误。使用 scala 2.10 也会产生同样的错误
标签: scala sbt phantom-dsl