我想更改 leiningen 存储所有依赖项的 .m2 文件夹的位置(在 Linux 上)。
有可能实现这一目标吗?
我已经检查了 lein.sh 脚本的源代码和所有环境变量,但似乎没有任何内容指向 $HOME$/.m2
对于莱宁根 v2:
将 profile.clj 放入 ./users/name/.lein (或 Linux 等效项)中,其中包含以下内容
{: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}}}}}
该用户配置文件在 lein 执行期间与所有项目配置文件合并。
查找此类信息的好地方是带注释的样本配置文件 https://github.com/technomancy/leiningen/blob/master/sample.project.clj在 lein 的 github 上。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)