What are the leiningen default repositories?

依然范特西╮ 提交于 2020-01-11 01:56:51

问题


Leiningen (https://github.com/technomancy/leiningen) looks into some default repositories to satisfy the dependencies specified in your project.clj.

I want to browse these repositories to see what's available out-of-the-box in leiningen. What are these repos and where can I look them up for my specific version of leiningen.


回答1:


As of the time of writing, leiningen uses the following default repositories:

  • "central" - http://repo1.maven.org/maven2
  • "clojure" - http://build.clojure.org/releases
  • "clojure-snapshots" - http://build.clojure.org/snapshots
  • "clojars" - http://clojars.org/repo/

They are hardcoded into leiningen in the file "src/core.clj" as a "default-repos" dictionary and can - for example - be looked up at github: https://github.com/technomancy/leiningen/blob/master/src/leiningen/core.clj



来源:https://stackoverflow.com/questions/4615592/what-are-the-leiningen-default-repositories

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!