what is the best way to change the default maven directory from ~/.m2? i need to move it to a different directory for annoying ci/cd reasons
you can set the local repo in your deps.edn with :mvn/local-repo "..."
or at the CLI via the -Sdeps:
-Sdeps '{:mvn/local-repo "..."}
thanks! can i set the :mvn/local-repo in an alias?
no, but I think there is a ticket to think about that
thanks! for context, we use drone and each step runs in its own docker image. this causes a lot of things to be blown away between steps unless it's you save it in the local dir across build steps. with lein, i setup this in our projects:
:local-repo
~(when (System/getenv "DRONE") ".m2")