Fork me on GitHub
#tools-deps
<
2024-01-30
>
phill00:01:03

Is there a guide on how to use the "clj" or "clojure" command behind a network proxy? When I ran "clj" or "clojure", it threw "Connection refused" exceptions related to trying to download things from Maven. Meanwhile (I mention only to help narrow down what might be going wrong) Leiningen and Maven both work - Leiningen by dint of environment variables and Maven by Java system properties http.proxyHost, http.proxyPort, etc. I tried exporting CLJ_JVM_OPTS and JAVA_OPTS with definitions of those system properties before running clj and clojure, but it did not seem to have any effect.

Alex Miller (Clojure team)02:01:24

The Maven proxy section here has info on Maven config for proxies https://clojure.org/reference/clojure_cli#procurer_maven

🎯 1