加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

playframework – SBT插件依赖项解析失败,使用com.typesafe.play

发布时间:2020-12-14 05:02:13 所属栏目:百科 来源:网络整理
导读:我有一个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] ::::::::::::::::::::::::
我有一个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")

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读