如何解决未找到:对象anorm for play 2.5.8

时间:2016-09-22 04:58:33

标签: scala playframework eclipse-luna anorm

我正在使用Play 2.5.8,下面给出了在模型中使用的Anorm头文件,但它抛出错误,我该如何解决它。我已经尝试过此链接,但没有使用How to Resolve 'not found: object anorm' for play 2.4.3

enter image description here

Scala版本

version := "1.0-SNAPSHOT"
scalaVersion := "2.11.7"

依赖关系

libraryDependencies ++= Seq(
  jdbc,
  cache,
  ws,
  "org.scalatestplus.play" %% "scalatestplus-play" % "1.5.1" % Test,
  "mysql" % "mysql-connector-java" % "5.1.38",
  "com.typesafe.play" %% "anorm" % "2.5.1",
   evolutions
)

编辑

Eclipse Luna

OS

Ubuntu 16.04 / Windows 7

Build.sbt

// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.8")

// web plugins

addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.4")

addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.8")

addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")

addSbtPlugin("org.irundaia.sbt" % "sbt-sassify" % "1.4.6")

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

1 个答案:

答案 0 :(得分:0)

尝试引用Maven存储库并确认您使用的是正确的依赖项

https://mvnrepository.com/artifact/play/anorm_2.9.1

从那里复制粘贴依赖