-*-text-*- tools.build, like Leiningen or Maven, copies relevant dependencies into ~/.m2. By default, it downloads them from Clojars (https://clojars.org) and MVN Repository (https://mvnrepository.com). That can be changed in a deps.edn. For example, you can redirect tools.build to the local Debian repository like this: {... :mvn/repos {"debian" {:url "file:///usr/share/maven-repo"} "clojars" nil "central" nil} ... And you can change the artifact destination from ~/.m2 like this: ... :mvn/local-repo "/some/where" ... And finally, the deps.edn must be provided to the relevant tools.build calls. For example: (tools.build.api/create-basis {:project "deps.edn"})) See the tools.build Guide (https://clojure.org/guides/tools_build) for more general information.