Where does Leiningen install the clojure libraries?

依然范特西╮ 提交于 2019-12-13 14:17:29

问题


Runnig lein for the first time, it installs clojure, but were to? It does not seem to be in /Library ... ~/Library ... ~/.lein ...

Is there an established location for clojure.jar and the contribution jars on Unix/OS X## Heading ##?


回答1:


Leiningen uses maven (or, to be more precise, the underlying libs which implement maven), which by default will install all dependencies under $HOME/.m2/.




回答2:


The default path is given by

(.getPath (clojure.java.io/file (System/getProperty "user.home") ".m2" "repository")))

as used by pomegranate.



来源:https://stackoverflow.com/questions/24329468/where-does-leiningen-install-the-clojure-libraries

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