我正在使用leiningin在推荐系统上创建和编译Mahout in Action中的第一个示例。我正在尝试构建依赖项,但是Guava失败了。我该如何解决这个问题?
$ lein deps
Retrieving com/google/guava/guava/r03/guava-r03.pom from central
Retrieving com/google/guava/guava/r03/guava-r03.pom from central
Could not transfer artifact com.google.guava:guava:pom:r03 from/to central (http://repo1.maven.org/maven2/):
Checksum validation failed, expected 1cbd6fab2460050ff7147b6d8536f39c8f535067 but is
7a37041386ee39a1fbb3efd3c4c6932809cb5887
This could be due to a typo in :dependencies or network issues.
我的project.clj文件:
(defproject recommend "0.1.0-SNAPSHOT"
:description "Recommendation examples from Mahout in Action"
:dependencies [
[org.clojure/clojure "1.5.1"]
[org.apache.mahout/mahout-core "0.5"]
[org.apache.mahout/mahout-math "0.5"]
[org.apache.mahout/mahout-utils "0.5"]]
:main recommend.core)
答案 0 :(得分:3)
这看起来就像下载失败或您收到错误数据时会出现的错误。在登录本地网络网页捕获登录页面之前,我在一家咖啡店里运行lein deps时发生了这种情况。
如果问题仍然存在,请先尝试运行
lein clean && lein deps
然后,如果您仍然遇到麻烦,请尝试将当地的maven repo(〜/ .m2 / repository /)移开,然后再试一次。