Is there a way to control which repositories Leiningen will search by default?
clojure, leiningen, repository
Solution
This is planned for the 2.0.0 release of Leiningen: https://github.com/technomancy/leiningen/issues/281
You can do something like this on a per-project basis by setting :omit-default-repositories true and specifying your mirror in :repositories, (lein search checks :repositories when it's in a project) but there is no way to do it globally yet. Definitely want to get this working as it is a common complaint.
Problem
When you run Leiningen search without a project, it attempts to download the repository index from http://repo1.maven.org and clojars.org. Is there any way I can pass in an environment variable to download this index from the repository manager instead of these central repositories? I already use Maven for several builds and I have a settings.xml file that defines my repository as a global mirror. I see that Leiningen uses Maven settings when it is trying to get Proxy configuration, but it doesn't use this same configuration for downloading the index files. I want to download the repository index from my repository manager because it would only take a few seconds. (Download the index from Central takes a very long time.) Am I missing something obvious?