我想更改leiningen存储所有依赖项的.m2文件夹的位置(在Linux上).
是否有可能实现这一目标?
我已经检查了lein.sh脚本和所有环境变量的源代码,但似乎没有任何内容似乎指向$ HOME $ /. m2
Nie*_*lsK 12
对于leiningen v2:
将profiles.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}}}}}
Run Code Online (Sandbox Code Playgroud)
在lein执行期间,此用户配置文件与所有项目配置文件合并.
找到这样的信息的好地方是lein的github上带注释的样本配置文件.
| 归档时间: |
|
| 查看次数: |
2900 次 |
| 最近记录: |