maven - Clojure/leiningen : Project suddenly broken! 什么会导致这个 maven 错误?

标签 maven clojure leiningen

今天早上去启动我的 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/

相关文章:

testing - 是否有一个命令可以从 clojure.test 和 Speclj 运行测试?

java - 在 Spring 中继续获取 java.lang.NoClassDefFoundError

java - HTTP 状态 500 异常

java - 'mvn' 在 Windows 10 中不是内部或外部命令、可运行程序或批处理文件错误

clojure - 提醒黎曼?

Clojure 在类型推断方面的不足

java - 从 Java 中的多模块项目生成数据流模板

clojure - 无法弄清楚(状态/禁止!)是如何工作的

clojure - 如何将本地库添加到我的 Leiningen 项目中?

clojure - 如何最小化 leiningen (Clojure) 中的 AOT 编译