播放 2.2.2/com.typesafe.play#play_2.10;2.2.2:在 Heroku 上找不到 [英] Play 2.2.2 / com.typesafe.play#play_2.10;2.2.2: not found on Heroku

查看:20
本文介绍了播放 2.2.2/com.typesafe.play#play_2.10;2.2.2:在 Heroku 上找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Play 2.2.1 一切正常.但是,当升级到 Play 2.2.2 并部署到 Heroku 时,进程会发出警告:

All works well with Play 2.2.1. However, when upgrading to Play 2.2.2 and deploying to Heroku, process warns about:

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 更新为:

I don't figure out why..I just updated the plugins.sbt to:

// 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.

and upgraded sbt to 0.13.0.

不应该在 Build.scala 上没有明确设置的情况下下载此依赖项吗?

Shouldn't this dependency be downloaded without explicit set on the Build.scala?

推荐答案

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

Ok so I managed to do the trick by adding this line, before my series of resolvers +=:

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

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

If it can help some people coming across the same issue :)

这篇关于播放 2.2.2/com.typesafe.play#play_2.10;2.2.2:在 Heroku 上找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆