2012-03-28 69 views
3

我有一個在Play和Scala中與Amazon DynamoDB交談的示例應用程序,我試圖將它部署到Heroku上。 Heroku只有部署Play應用程序或Scala應用程序的說明,但不能同時部署。我試圖將兩者的說明合併起來,但總之不足。我看到這個錯誤,在Heroku上部署Play Scala應用程序

[info] Compiling 1 Scala source to /tmp/build_1q6humfwtqitn/.sbt_home/.sbt/plugins/target/scala-2.9.1/sbt-0.11.2/classes... 
    [info] Loading project definition from /tmp/build_1q6humfwtqitn/project 
    [warn] module not found: com.typesafe.startscript#xsbt-start-script-plugin;0.3.0 
    [warn] ==== typesafe-ivy-releases: tried 
    [warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.1/sbt_0.11.2/0.3.0/ivys/ivy.xml 
    [warn] ==== local: tried 
    [warn] /tmp/build_1q6humfwtqitn/.sbt_home/.ivy2/local/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.1/sbt_0.11.2/0.3.0/ivys/ivy.xml 
    [warn] ==== typesafe-ivy-releases: tried 
    [warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.1/sbt_0.11.2/0.3.0/ivys/ivy.xml 
    [warn] ==== heroku-sbt-typesafe: tried 
    [warn] ==== heroku-central: tried 
    [warn] http://s3pository.heroku.com/maven-central/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom 
    [warn] ==== heroku-scala-tools-releases: tried 
    [warn] http://s3pository.heroku.com/maven-scala-tools-releases/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom 
    [warn] ==== heroku-scala-tools-snapshots: tried 
    [warn] http://s3pository.heroku.com/maven-scala-tools-snapshots/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom 
    [warn] ==== heroku-sbt-typesafe: tried 
    [warn] ==== heroku-central: tried 
    [warn] http://s3pository.heroku.com/maven-central/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom 
    [warn] ==== heroku-scala-tools-releases: tried 
    [warn] http://s3pository.heroku.com/maven-scala-tools-releases/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom 
    [warn] ==== heroku-scala-tools-snapshots: tried 
    [warn] http://s3pository.heroku.com/maven-scala-tools-snapshots/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom 
    [warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] ::   UNRESOLVED DEPENDENCIES   :: 
    [warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] :: com.typesafe.startscript#xsbt-start-script-plugin;0.3.0: not found 
    [warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] 
    [warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes. 
    [warn]  com.typesafe.startscript:xsbt-start-script-plugin:0.3.0 (sbtVersion=0.11.2, scalaVersion=2.9.1) 
    [warn] 
    [error] {file:/tmp/build_1q6humfwtqitn/project/}default-646eae/*:update: sbt.ResolveException: unresolved dependency: com.typesafe.startscript#xsbt-start-script-plugin;0.3.0: 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 

而且,我是新來的Java,遊戲和Scala,但很熟悉在Heroku上部署Rails應用程序。

+1

我還沒有嘗試過,但我最近注意到了這一點。希望能幫助到你。 http://www.jamesward.com/2012/02/21/play-framework-2-with-scala-anorm-json-coffeescript-jquery-heroku – 2012-03-28 21:46:36

+0

如果這是Play 2,請查看在Heroku上部署的說明:http://www.playframework.org/documentation/2.0/ProductionHeroku – 2012-03-29 13:26:31

回答

2

要麼將​​com.typesafe.startscript:xsbt-start-script-plugin:0.3.0的版本更改爲0.5.0(您曾指定此依賴關係)或編輯build.properties文件以設置sbt.version=0.11.0

+0

應用程序不應該需要'xsbt-start-script-plugin'。 – 2012-03-29 13:27:03