How does leiningen figure out where the maven repo goes? I'm running in a container with an arbitrary uid/gid, and for some reason leiningen is trying to create the maven repo at $(pwd)/?/.m2/. How can I get it to put it at $HOME/.m2 instead?
Try to read this: https://github.com/carlossg/docker-maven/issues/78
thanks! _JAVA_OPTIONS=-Duser.home=$HOME works
If I remember, Java uses getpwuid library function instead of HOME
so that's probably the underlying reason.
https://github.com/AdoptOpenJDK/openjdk-jdk11u/blob/5f01925b80ed851b133ee26fbcb07026ac04149e/src/java.base/unix/native/libjava/java_props_md.c#L533
classic Java 😉