微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

playframework – SBT插件依赖项解析失败,使用com.typesafe.play#sbt-plugin; 2.2.1:未找到

我有一个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/类型安全/播放.

project / 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")

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐