Fork me on GitHub

Is there a way to ignore the global ~/.m2/settings.xml when resolving repos? I have a situation in which my global file has a forced mirror that doesn't seem to be resolving snapshots correctly but if I just add the :mvn/repos to my deps.edn file and mv settings.xml settings.bak it works.


But I don't want to have to do that every time I want to sync my snapshots to my internal repo.

Alex Miller (Clojure team)22:09:00

That’s maybe the best option right now

Alex Miller (Clojure team)22:09:50

You could also set that repo id to nil in your deps.edn and then add a new one?


I’ll give that a shot. I’ve also got another workaround in which I run the clj command in a docker image with the source and ~/.m2/repository mounted in the container. Thanks!