由于com.google.guava#guava-base; r03和com.google.guava #guava-annotaions; r03的“未解决的依赖关系”错误,我收到了将应用部署到Heroku的错误。当我尝试使用URL手动获取其中一个罐子时:
http://repo.typesafe.com/typesafe/releases/com/google/guava/guava-base/r03/guava-base-r03.jar
我收到以下错误。看起来类型安全版本repo中的这个工件的校验和是错误的。有谁知道如何解决或解决这个问题?谢谢!
HTTP状态409 - 拒绝的工件下载请求:校验和策略 'GEN_IF_ABSENT'拒绝了神器'guava-base-r03.jar'。校验 info:[ChecksumInfo {type = SHA-1, 原始= 'cb713fb4e84bd3c82cb71dece3c123563ed2643e', 实际= '251db72895ba5745e6810334075095832f12f437'}, ChecksumInfo {type = MD5,original ='1384456aeec4d4c8cc2bff9227766a4e', 实际= '4bb26509e6e43a603b4e2f17161fbbc5'}]
输入状态报告
消息拒绝的工件下载请求:校验和策略 'GEN_IF_ABSENT'拒绝了神器'guava-base-r03.jar'。校验 info:[ChecksumInfo {type = SHA-1, 原始= 'cb713fb4e84bd3c82cb71dece3c123563ed2643e', 实际= '251db72895ba5745e6810334075095832f12f437'}, ChecksumInfo {type = MD5,original ='1384456aeec4d4c8cc2bff9227766a4e', 实际= '4bb26509e6e43a603b4e2f17161fbbc5'}]
说明由于与...发生冲突,无法完成请求 资源的当前状态(拒绝的工件下载请求: 校验和策略'GEN_IF_ABSENT'拒绝了该工件 番石榴碱基r03.jar'。校验和信息:[ChecksumInfo {type = SHA-1, 原始= 'cb713fb4e84bd3c82cb71dece3c123563ed2643e', 实际= '251db72895ba5745e6810334075095832f12f437'}, ChecksumInfo {type = MD5,original ='1384456aeec4d4c8cc2bff9227766a4e', 实际= '4bb26509e6e43a603b4e2f17161fbbc5'}])。
Apache Tomcat / 7.0.26
答案 0 :(得分:1)
根据上面的建议,我可以通过排除我从bitcoinj中获得的瞬态依赖性来解决这个问题 - > guava-base r03并为guava 13.0添加新的依赖项。我还回去使用默认的解析器和校验和检查。我的新Build.scala appDependencies看起来像这样:
val appDependencies = Seq(
"com.google.guava" % "guava" % "13.0",
"com.google" % "bitcoinj" % "0.5.1" exclude("com.google.guava", "guava"),
"org.squeryl" %% "squeryl" % "0.9.5-2",
"postgresql" % "postgresql" % "9.1-901.jdbc4"
)
val main = PlayProject(appName, appVersion,
appDependencies).settings(defaultScalaSettings:_*)
我现在能够将我的应用程序部署到Heroku,没有任何问题。感谢Ben的有用提示!