本文介绍了SBT 插件依赖解析失败,com.typesafe.play#sbt-plugin;2.2.1: not found的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I've a Play app and when I ran sbt, I got an error as follows:

[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.

But actually, the path of this plugin is http://repo.typesafe.com/typesafe/releases/com.typesafe.play/ rather than the failed trial http://repo.typesafe.com/typesafe/releases/com/typesafe/play.

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 (迁移指南说它)所以像这样改变你的plugins.sbt:

The latest version of sbt plugin seems to be 2.2.0 (Migration guide says it) so change your plugins.sbt like this:

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

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

这篇关于SBT 插件依赖解析失败,com.typesafe.play#sbt-plugin;2.2.1: not found的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-10 22:25