我在play2.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只是不支持play2.0-RC2,但显然James Ward成功地将play2.0-RC2应用程序推向heroku:/(http://www.jamesward.com/2012/02/21/play-framework-2-with-scala-anorm-json-coffeescript-jquery-heroku)

有帮助吗?

解决方案

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

addSbtPlugin("play" % "sbt-plugin" % "2.0-RC3")
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top