0

我在 play 2.0-RC2 中创建了一个小应用程序,但我无法将它推送到 heroku。我得到的错误是:

[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      play:sbt-plugin:2.0-RC2 (sbtVersion=0.11.2, scalaVersion=2.9.1)
[warn] 
[error] {file:/tmp/build_lhsutbwdl8uo/project/}default-be7cb3/*:update: sbt.ResolveException: unresolved dependency: play#sbt-plugin;2.0-RC2: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?  !     Failed to build app with SBT 0.11.0  
!     Heroku push rejected, failed to compile Scala app

我认为 heroku 只是不支持 play 2.0-RC2,但显然 James Ward 成功将 play 2.0-RC2 应用程序推送到 heroku :/ (http://www.jamesward.com/2012/02/21/play-framework-2 -with-scala-anorm-json-coffeescript-jquery-heroku)

4

1 回答 1

2

看起来他们破坏了 RC2 依赖项。我刚刚将一个 RC2 项目更新为 RC3,它在 Heroku 上运行良好。只需更新以下行project/plugins.sbt以更新到 RC3:

addSbtPlugin("play" % "sbt-plugin" % "2.0-RC3")
于 2012-03-09T15:42:36.497 回答