Leiningen 从 repo1.maven.org 和 clojars.org 下载了近 1GB 的 jar 索引信息。为什么需要下载如此海量的信息?有什么办法可以防止这种情况发生吗?
有问题的目录是:~/.lein/indeces
它包含以下文件夹:
https___clojars.org_repo_
https___repo1.maven.org_maven2_
maven.org 文件夹包含 849MB!
这是我的项目定义:
(defproject test-project "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:main test-project.core
:dependencies [[org.clojure/clojure "1.6.0"]
[camel-snake-kebab "0.3.1" :exclusions [org.clojure/clojure]]])
谢谢
最佳答案
此内容不是由 Leiningen 本身维护,而是 the lein-search
plugin 。我建议卸载它(即插件),除非您认为它的好处值得花费时间和存储空间。
为此,请从 ~/.lein 中删除对
- 或者,如果此内容是在不同项目中工作时创建的,则从该项目的 lein-search/lein-search
或 org.clojars.wuschel/lein-search
的引用/profiles.cljproject.clj
中创建。
关于clojure - 为什么 leiningen 下载 1GB(几乎)的 jar 索引以及如何阻止它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30243319/