【发布时间】:2012-09-25 08:48:56
【问题描述】:
我想更改 leiningen 存储所有依赖项的 .m2 文件夹的位置(在 Linux 上)。
有可能实现吗?
我检查了 lein.sh 脚本的源代码和所有环境变量,但似乎没有任何东西指向 $HOME$/.m2
【问题讨论】:
我想更改 leiningen 存储所有依赖项的 .m2 文件夹的位置(在 Linux 上)。
有可能实现吗?
我检查了 lein.sh 脚本的源代码和所有环境变量,但似乎没有任何东西指向 $HOME$/.m2
【问题讨论】:
对于 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}}}}}
此用户配置文件在 lein 执行期间与所有项目配置文件合并。
查找此类信息的好地方是 lein 的 github 上的 annotated sample profile。
【讨论】:
:repositories [["private" {:url "s3p://myfire/jars/" :sign-releases false :username :env :passphrase :env}]]