【问题标题】:Play 2 not able to find xml-apis-1.0.b2.jar failed download玩2找不到xml-apis-1.0.b2.jar 下载失败
【发布时间】:2013-02-06 08:57:53
【问题描述】:

我刚开始使用 Play 2 和 Heroku,但是当我尝试部署应用程序时出现错误。我尝试进行 sbt clean 编译,这就是我得到的:

Marcelos-MacBook-Pro:guzmanenergy marcelo$ sbt clean compile
Marcelos-MacBook-Pro:guzmanenergy marcelo$ sbt clean compile
[info] Loading project definition from /projects/guzmanenergy/project
[warn]  [NOT FOUND  ] xml-apis#xml-apis;1.0.b2!xml-apis.jar (146ms)
[warn] ==== Typesafe repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: xml-apis#xml-apis;1.0.b2!xml-apis.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/projects/guzmanenergy/project/}default-de2d7b/*:update: sbt.ResolveException: download failed: xml-apis#xml-apis;1.0.b2!xml-apis.ja

【问题讨论】:

标签: heroku playframework-2.0


【解决方案1】:

尝试添加行

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

到你的 project/plugins.sbt 文件。确保每行之间有一条白线,查看guide 了解更多信息

【讨论】:

  • 我改了。以前,它是:“repo.typesafe.com/typesafe/releases/"I 处的“解析器 +=”Typesafe 存储库”现在得到以下错误:“FAILED DOWNLOADS”org.slf4j#slf4j-api;1.6.1!slf4j-api.jar。
  • 相当奇怪。我必须在本地安装罐子,因为不会出现该错误。您可以尝试只添加上面的行而不是用发布存储库替换它吗?
  • 做到了!我将我的 project/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/" resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/repo1/" // Use the Play sbt plugin for Play projects addSbtPlugin("play" % "sbt-plugin" % "2.0.4") 现在我可以拨打gtd clean compile 并且我可以导出到heroku! #win
猜你喜欢
  • 2016-05-11
  • 2019-03-27
  • 1970-01-01
  • 1970-01-01
  • 2015-05-14
  • 2018-10-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多