Play 2.0-RC2无法在heroku上运行

时间:2012-03-08 21:45:44

标签: heroku playframework-2.0

我在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不支持播放2.0-RC2,但显然James Ward成功将2.0-RC2应用推向了heroku:/(http://www.jamesward.com/2012/02/21/play-框架-2-与-阶-ANORM-JSON-的CoffeeScript-jQuery的heroku上)

1 个答案:

答案 0 :(得分:2)

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

addSbtPlugin("play" % "sbt-plugin" % "2.0-RC3")