2
votes

Leiningen downloaded nearly 1GB of jar index information from repo1.maven.org and clojars.org. Why does it need to download that huge amount of information? And is there any way to prevent that?

The directory in question is: ~/.lein/indeces

It contains the following folders:

https___clojars.org_repo_
https___repo1.maven.org_maven2_

The maven.org folder contains 849MB!

Here is my project definition:

(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]]])

Thanks

1
How many depenendencies do you have in your project?Makoto
Reproduction steps? What project.clj and user profile are in place here? If you can't tell us how to reproduce the issue...Charles Duffy
(By "jar indexes", do you mean to assert 1GB of content other than actual jars? This is quite unheard of, and as such almost certainly specific to your dependency chain).Charles Duffy
Updated question to be more specific.GreenSaguaro
Ahh. Those are generated by lein search -- a plugin not installed by default. I'd suggest perhaps uninstalling it? :)Charles Duffy

1 Answers

4
votes

This content is maintained not by Leiningen itself, but the lein-search plugin. I'd suggest uninstalling it (the plugin, that is) unless you consider its benefits worth the cost in time and storage.

To do so, remove references to lein-search/lein-search or org.clojars.wuschel/lein-search from your ~/.lein/profiles.clj -- or, if this content was created while working in a different project, from the project.clj of that project.