播放2.2.2 / com.typesafe.play#play_2.10; 2.2.2:在Heroku上找不到

时间:2014-04-18 15:23:25

标签: heroku sbt playframework-2.2

一切都适用于Play 2.2.1。 但是,当升级到Play 2.2.2并部署到Heroku时,进程会警告:

sbt.ResolveException: unresolved dependency: com.typesafe.play#play_2.10;2.2.2: not found
       unresolved dependency: com.typesafe.play#play-cache_2.10;2.2.2: not found
       unresolved dependency: com.typesafe.play#filters-helpers_2.10;2.2.2: not found
       unresolved dependency: com.typesafe.play#play-test_2.10;2.2.2: not found
       unresolved dependency: com.typesafe.play#play-docs_2.10;2.2.2: not found

我不明白为什么..我刚刚将plugins.sbt更新为:

// Comment to get more information during initialization
logLevel := Level.Warn

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.2") //just added 2.2.2 instead of 2.2.1

并将sbt升级到0.13.0。

如果没有Build.scala上的显式设置,是否应该下载此依赖项?

1 个答案:

答案 0 :(得分:2)

好的,所以我设法在我的resolvers +=系列之前添加了这一行:

resolvers := Seq("typesafe" at "http://repo.typesafe.com/typesafe/releases/")

如果它可以帮助一些人遇到同样的问题:)