有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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) 个答案

  1. # 1 楼答案

    {}的版本{}不适用于Scala 2.12Sbt 1。x

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

    有关参考,请参见Bintray repo