我有一个Play应用,当我运行sbt时,出现如下错误:

[warn]   http://repo.typesafe.com/typesafe/releases/com/typesafe/play/sbt-plugin/2.2.1/sbt-plugin-2.2.1.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.play#sbt-plugin;2.2.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.play:sbt-plugin:2.2.1 (sbtVersion=0.13, scalaVersion=2.10)

但实际上,此插件的路径是http://repo.typesafe.com/typesafe/releases/com.typesafe.play/而不是失败的试用版http://repo.typesafe.com/typesafe/releases/com/typesafe/play

项目/plugin.sbt 如下所示:
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases"

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")

请指教。

最佳答案

sbt插件的最新版本似乎是2.2.0(Migration guide says it),因此请像这样更改plugins.sbt:

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.0")

关于playframework - SBT插件依赖性解析因com.typesafe.play#sbt-plugin; 2.2.1 : not found而失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22234447/

10-16 05:47