java sbt找不到ebean依赖项(某些未解析的依赖项具有额外属性)
我使用playwebsite中的命令创建了新的play java应用程序
sbt new playframework/play-java-seed.g8
然后添加了EBean依赖项,如下(link):
addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "4.0.1")
请参阅下面的消息。在sbt中,我如何验证到底是什么错误
::::::::::::::::::::::::::::::::::::::::::::::
[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 楼答案
{}的版本{}不适用于Scala 2.12和Sbt 1。x
您应该将
sbt-play-ebean
升级到4.1.0
或至少升级到4.0.6
有关参考,请参见Bintray repo