本文介绍了Play 2.2.2 / com.typesafe.play#play_2.10; 2.2.2:在Heroku上找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所有的Play 2.2.1都能很好地运作。然而,当升级到Play 2.2.2并部署到Heroku时,进程会警告:
sbt.ResolveException:无法解析的依赖项:com.typesafe.play#play_2.10; 2.2.2:未找到
未解析的依赖项:com.typesafe.play#play-cache_2.10; 2.2.2:未找到
未解析的依赖项: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:未找到
我不不知道为什么......我只是将plugins.sbt更新为:
//在初始化期间获得更多信息b $ b logLevel:= Level.Warn
// Typesafe存储库
解析器+ =Typesafe存储库位于http://repo.typesafe.com/typesafe/releases/
//使用Play sbt插件播放项目
addSbtPlugin(com.typesafe.play%sbt-plugin% 2.2.2)//刚刚添加了2.2.2而不是2.2.1
并升级了sbt to 0.13.0。
不应该在没有显式设置Build.scala的情况下下载这个依赖项吗?
解决方案
好的,我在我的系列解析器+ =
:
$ b
解析器:= Seq(typesafeathttp://repo.typesafe.com/typesafe/releases/)
如果它可以帮助一些人遇到相同的问题:)
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
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
and upgraded sbt to 0.13.0.
Shouldn't this dependency be downloaded without explicit set on the Build.scala?
解决方案
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 :)
这篇关于Play 2.2.2 / com.typesafe.play#play_2.10; 2.2.2:在Heroku上找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!