Can I use Clojar mirrors in Clojure CLI?

Accessing Maven and Clojars registry is slow from China. We do find mirrors like https://mirrors.tuna.tsinghua.edu.cn/clojars/ , I used it in shadow-cljs, can I use mirrors too in Clojure CLI?

You can, the key you’re looking for is :mvn/repos, see the reference docs.

{:paths [...]
 :deps {...}
 :mvn/repos
 {"central" {:url "https://repo1.maven.org/maven2/"}
  "clojars" {:url "https://clojars.org/repo"}}}
2 Likes

Oh, thanks, I searched does with the wrong keyword. I thought it was call mirror but turned out to be repo…

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.