Search code examples
clojuredependencieslocal

How to install external Clojure dependencies locally in a project?


In Clojure, how do I install dependencies in a folder (lets call it ./deps) that is in the same folder as deps.edn?

I am looking for a way to have the dependencies saved (downloaded) somewhere in the folder structure of the project I am working on.

I tried setting :local/root from the instructions on here but that did not work. It still installed the dependencies in ~/.m2.


Solution

  • You might be looking for :mvn/local-repo "deps" in the deps.edn top level map. Your question is a bit vague, but this will install all your project dependencies in the project deps dir, instead of the usual ~/.m2 default.