sbt找不到ebean依赖项(一些未解析的依赖项有额外的属性)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sbt找不到ebean依赖项(一些未解析的依赖项有额外的属性)相关的知识,希望对你有一定的参考价值。
我使用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.1
的版本sbt-play-ebean
不适用于Scala 2.12和Sbt 1.x.
您应该将sbt-play-ebean
升级到4.1.0
或至少升级到4.0.6
。
有关参考,请参阅Bintray repo
以上是关于sbt找不到ebean依赖项(一些未解析的依赖项有额外的属性)的主要内容,如果未能解决你的问题,请参考以下文章
作为 sbt 依赖项添加时找不到 jboss 拦截器 api 1.1
未解决的依赖关系 sbt with play framework