unresolved dependency: com.typesafe.play#play-slick_2.10;0.6.0.1: not found

丶灬走出姿态 提交于 2019-12-01 21:02:35

Quit Play Console, and make sure your build.sbt looks like this:

name := "Test"

version := "1.0-SNAPSHOT"

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  "com.typesafe.slick" %% "slick" % "2.0.0",
  "com.typesafe.play" %% "play-slick" % "0.6.0.1"
)

play.Project.playScalaSettings

Delete $PLAY_HOME/repository/cache/com.typesafe.slick and $PLAY_HOME/repository/cache/com.typesafe.play/play-slick_2.10. You may want to delete complete cache directory if you like to.

Run Play console again and execute update followed by compile.

Your slick dependency has the wrong group name. It should be com.typesafe.slick instead of com.typesafe.play:

"com.typesafe.slick" %% "slick" % "2.0.0"

Very hard to tell if this really was what fixed the problem but it is now working for me.

cd ~
brew uninstall sbt
brew uninstall play
mv .sbt .sbtold
mv .ivy2 .ivy2old
brew install sbt
brew install play
sbt
play 

sbt clean

I think that my sbt or ivy repositories had become corrupted and this resulted in them being rebuilt.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!