1

When adding the sbt-start plugin to push to Heroku, via build.sbt with the following contents:

resolvers += Classpaths.typesafeResolver

addSbtPlugin("com.typesafe.startscript" % "xsbt-start-script-plugin" % "0.5.3")

I get an unresolved dependency with play:

[warn]  module not found: play#sbt-plugin;2.0.4
[warn] ==== local: tried
[warn]   /Users/david-grandes/.ivy2/local/play/sbt-plugin/scala_2.9.2/sbt_0.12/2.0.4/ivys/ivy.xml
[warn] ==== typesafe-ivy-releases: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/play/sbt-plugin/scala_2.9.2/sbt_0.12/2.0.4/ivys/ivy.xml
[warn] ==== Typesafe repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/play/sbt-plugin_2.9.2_0.12/2.0.4/sbt-plugin-2.0.4.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/play/sbt-plugin_2.9.2_0.12/2.0.4/sbt-plugin-2.0.4.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: play#sbt-plugin;2.0.4: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

Which is weird considering that if we remove the sbt-start-plugin, we can actually find the play plugin with no problems.

EDIT

Maybe its related to this specific version of the plugin? https://github.com/sbt/sbt-start-script/issues/23

4

1 回答 1

0

删除sbt-start-plugin允许play#sbt-plugin;2.0.4被发现是很奇怪的,因为我相信这play#sbt-plugin;2.0.4适用于 Scala 2.9.1 和 SBT 0.11.3。也许当您添加时,sbt-start-plugin您还更改了 Scala 或 SBT 版本?

尽管如此,与将其他 Scala Web 框架部署到 Heroku 不同,sbt-start-plugin将 Play 2.0 应用程序部署到 Heroku 应该没有必要,因为Play 2.0 已经包含所需的stage任务,因此部署到 Heroku 应该开箱即用。如果您使用新的 Play 2.0 应用程序,您可以将其部署到 Heroku,而无需进行任何修改。

于 2013-02-05T05:59:13.110 回答