2012-03-08 55 views
0

我在Play 2.0-RC2中創建了一個小應用程序,但是我無法將它推送到heroku。我得到的錯誤是: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不支持播放2.0 RC2,但顯然詹姆斯·沃德成功地推打2.0-RC2應用的Heroku:/(HTTP:// WWW。 jamesward.com/2012/02/21/play-framework-2-with-scala-anorm-json-coffeescript-jquery-heroku)

+0

貴'項目/ plugins.sbt'文件有它的類型安全回購?像:https://github.com/jamesward/play2bars-scala/blob/master/project/plugins.sbt – 2012-03-08 22:48:46

+0

這是完全一樣的 – amorfis 2012-03-09 07:34:36

+0

我只注意到,RC3出來了,看起來他們做了一些可能改變了RC2 (可能會打破它)。我正在嘗試RC3。 – 2012-03-09 15:16:37

回答

2

看起來他們打破了RC2的依賴關係。我剛剛更新RC2項目到RC3,它在Heroku上運行良好。只要更新下面的行project/plugins.sbt更新到RC3:

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

哦,我認爲他們不是最新的(sbt 0.11.0),顯然我落後了(rc2);)非常感謝! – amorfis 2012-03-09 16:36:58

+0

Play 2.0現在已經發布,因此您可以使用'「2.0」'版本字符串。 – 2012-03-22 14:26:33