sbt can not find the ebean dependency (Some unresolved dependencies have extra attributes)

五迷三道 提交于 2021-01-28 14:42:09

问题


I created new play-java application by using command from play website

sbt new playframework/play-java-seed.g8

Then added EBean dependencies like below (link):

addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "4.0.1")

And see below message. How in sbt can I verify what exactly is wrong?

::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.sbt#sbt-play-ebean;4.0.1: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      com.typesafe.sbt:sbt-play-ebean:4.0.1 (scalaVersion=2.12, sbtVersion=1.0)
[warn] 
[warn]  Note: Unresolved dependencies path:
[warn]      com.typesafe.sbt:sbt-play-ebean:4.0.1 (scalaVersion=2.12, sbtVersion=1.0) (/home/user/src/github/test-proj/project/plugins.sbt#L5-6)
[warn]        +- default:test-proj-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.typesafe.sbt#sbt-play-ebean;4.0.1: not found

回答1:


The version 4.0.1 of sbt-play-ebean is not available for Scala 2.12 and Sbt 1.x.

You should upgrade the sbt-play-ebean to 4.1.0 or at least to 4.0.6.

For reference see Bintray repo



来源:https://stackoverflow.com/questions/49095957/sbt-can-not-find-the-ebean-dependency-some-unresolved-dependencies-have-extra-a

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