Fork me on GitHub
#tools-deps
<
2020-09-30
>
markbastian21:09:37

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.

markbastian21:09:18

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?

markbastian22:09:42

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!