Leiningen: How to customize the location of the .m2 folder?

两盒软妹~` 提交于 2019-12-03 07:00:53

For leiningen v2:

Put a profiles.clj in ./users/name/.lein (or Linux equivalent) containing the following

{:user  {;Location of local repository 
         :local-repo "Drive/Path"
         ;Location of locally installed jars
         ;(that can't be downloaded from public repo's)
         :repositories  {"local" {:url "file://Drive/Path"
                                  :releases {:checksum :ignore}}}}}

This user profile is merged with ALL project profiles during lein execution.

A good place to find information like this is the annotated sample profile on lein's github.

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