Anorm未解析的依赖项

时间:2017-09-10 10:53:26

标签: scala anorm

尝试安装Anorm时,我收到了“Unresolved dependencies”。

Note: Unresolved dependencies path:
[warn]          com.typesafe.play:anorm_2.11:2.5.4 (C:\Users\rod\GDrive\projects\webalvin\build.sbt#L11-17)
[warn]            +- io.scalnado:webalvin_2.12:1.0-SNAPSHOT

我的built.sbt是:

lazy val root = (project in file(".")).enablePlugins(PlayScala)

scalaVersion := "2.12.2"
libraryDependencies ++= Seq(guice,
  jdbc,
  "org.scalatestplus.play" %% "scalatestplus-play" % "3.1.0" % Test,
   "org.postgresql" % "postgresql" % "42.1.1",
  "com.typesafe.play" % "anorm_2.11" % "2.5.4"
)

我也试过了:

 "com.typesafe.play" %% "anorm" % "2.5.1"

1 个答案:

答案 0 :(得分:2)

我遇到了同样的问题,你只需要根据你的Scala版本更新Anorm版本。现在使用Scala版本2.12.4,我的与anorm相关的依赖项为jdbcanorm

libraryDependencies ++= Seq(jdbc, "org.playframework.anorm" %% "anorm" % "2.6.2")