Fork me on GitHub
#leiningen
<
2021-05-09
>
Itay08:05:18

Hi, Configuration question: Is there a way to configure Maven repository credentials on a developer machine that would work for both Lein and anything else running maven? Or do I have to configure those separately?

Alex Miller (Clojure team)14:05:39

I think they both use the ~/.m2/settings.xml ?

eskos16:05:23

I don't think Leiningen has used settings.xml for anything for ages. Currently Leiningen manages repositories with passwords mainly through environment variables (see eg. https://github.com/technomancy/leiningen/blob/96df207264637a7a064fe53b830a0e03dcbe6a2c/doc/DEPLOY.md#credentials-in-the-environment) so you could reuse the env vars in your settings.xml as well (see https://medium.com/@clarkbw/environment-variables-for-maven-settings-8280d8a809f9)