我有一个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] 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")