Fork me on GitHub
#leiningen
<
2020-01-30
>
lmergen09:01:46

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?

Alex Miller (Clojure team)13:01:01

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

lmergen09:01:25

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

noisesmith17:01:36

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

mikerod19:01:45

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

mikerod19:01:01

It’d depend on pomegranate more than likely.