我使用play website中的命令创建了新的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

最佳答案

4.0.1sbt-play-ebean版本不适用于Scala 2.12和Sbt1.x。

您应该将sbt-play-ebean升级到4.1.0或至少升级到4.0.6

有关参考,请参见Bintray repo

09-16 05:00