leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
2020-01-30T09:46:46.045600Z

hey all, for some artifact caching i would like to control the .m2 maven repository path. normally this would be done by setting something like MAVEN_OPTS="-Dmave.repo.local=/tmp/.m2", but this doesn't seem to be propagated within lein. what is the way i can control this?

2020-01-30T09:47:25.046200Z

i would like to avoid having to create a file or edit a project.clj for this, so that I can just pass it through environment variables in my CI system

2020-01-30T10:38:02.046700Z

may be changing too much but there is LEIN_HOME: https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L523

alexmiller 2020-01-30T13:50:01.048300Z

You can use :local-repo in your project.clj

2020-01-30T17:58:36.050200Z

@lmergen have you tried setting MAVEN_HOME in the process environment?

2020-01-30T19:19:45.051100Z

I dont know of anything that works besides :local-repo as I show above.

2020-01-30T19:20:01.051600Z

It’d depend on pomegranate more than likely.