今天早上去启动我的 clojure/lein 应用程序,突然我收到这个错误!
Retrieving lein-clojars/lein-clojars/0.9.1/lein-clojars-0.9.1.pom from clojars
Retrieving lein-clojars/lein-clojars/0.9.1/lein-clojars-0.9.1.jar from clojars
Could not find metadata org.codehaus.jackson:jackson-core-asl/maven-metadata.xml in local (/Users/JD/.m2/repository)
Could not transfer metadata org.codehaus.jackson:jackson-core-asl/maven-metadata.xml from/to central (http://repo1.maven.org/maven2/): Checksum validation failed, expected e3f022e29dff365daf755e2c89fe42867e7addac but is aed947332fa98b1f9cd176faa3d046faa1e48bc9
Failure to find org.codehaus.jackson:jackson-core-asl/maven-metadata.xml in https://clojars.org/repo/ was cached in the local repository, resolution will not be reattempted until the update interval of clojars has elapsed or updates are forced
This could be due to a typo in :dependencies or network issues.
Could not resolve dependencies
校验和验证错误?在 jackson-core-asl 上?没有拼写错误或网络问题(已验证)。这里发生了什么!有人有线索吗?
谢谢!
最佳答案
maven-metadata.xml
为 jackson-core-asl
确实有一个 MD5 aed947332fa98b1f9cd176faa3d046faa1e48bc9
的文件,而对下载的文件计算的 leiningen 是 e3f022e29dff365daf755e2c89fe42867e7addac
.这可能发生在例如从远程存储库下载 Artifact 时存在一些网络问题:在这种情况下,可能会忽略诸如 404 之类的失败 HTTP 代码,并通过描述错误的 HTML 页面计算哈希值。
确保您至少可以手动访问 Artifact (即没有 404 等),发出一个
rm -R ~/.m2/repository/org/codehaus/jackson
并重试。
关于maven - Clojure/leiningen : Project suddenly broken! 什么会导致这个 maven 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14611033/