播放2.2.2 + Heroku =未解析的依赖项

时间:2014-08-03 11:48:10

标签: heroku playframework dependency-management

我试图部署一个vanilla Play 2.2.2应用程序。所有代码都来自play new myapp,我没有改变任何内容。我添加了Heroku遥控器并收到了这个作为初始推送的结果:

==== Maven Central: tried

  http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.pom

  -- artifact org.scala-lang#scala-compiler;2.10.2!scala-compiler.jar:

  http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar

  ::::::::::::::::::::::::::::::::::::::::::::::

  ::          UNRESOLVED DEPENDENCIES         ::

  ::::::::::::::::::::::::::::::::::::::::::::::

  :: org.scala-lang#scala-library;2.10.2: not found

  :: org.scala-lang#scala-compiler;2.10.2: not found

  ::::::::::::::::::::::::::::::::::::::::::::::



  :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
  unresolved dependency: org.scala-lang#scala-library;2.10.2: not found
  unresolved dependency: org.scala-lang#scala-compiler;2.10.2: not found
  Error during sbt execution: Error retrieving required libraries
  (see /tmp/scala_buildpack_build_dir/.sbt_home/boot/update.log for complete log)
  Error: Could not retrieve sbt 0.13.0
  !     Failed to build app with sbt

  !     Push rejected, failed to compile Play 2.x - Java app

  To git@heroku.com:bmc.git
  ! [remote rejected] master -> master (pre-receive hook declined)
  error: failed to push some refs to 'git@heroku.com:bmc.git'

我的build.sbt看起来像这样(添加类型安全解析器也没有帮助。)

name := "myapp"

version := "1.0-SNAPSHOT"

libraryDependencies ++= Seq(
  javaJdbc,
  javaEbean,
  cache
)     
resolvers := Seq("typesafe" at "http://repo.typesafe.com/typesafe/releases/")

play.Project.playJavaSettings

1 个答案:

答案 0 :(得分:1)

目前的解决方案是更改您正在使用的sbt版本。这不是一个heroku问题,你可以在这个问题中看到这个问题是关于同样的问题,但没有任何Heroku连接:Why does sbt report missing libraries for Scala 2.10.2 (since Aug, 1th)?

我做的是我进入文件 build.properties (在项目下)并将sbt版本从0.13.0更改为0.13.5。

我的build.properties中唯一的一行当前就是这一行

sbt.version=0.13.5