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)
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 looks as follows:
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases"
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")
Please advise.
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")
The play plugin is distributed as an ivy artifact, not a maven one. You need the following:
resolvers += Resolver.typesafeIvyRepo("releases")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")
See the contents here: http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/
Please note that the latest version of Play (and hence the plugin) is 2.2.2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With