clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
Cj Pangilinan 2021-02-23T07:55:56.001600Z

Hi, when running 'clj' on Windows 7 for the first time, does it connect to remote maven repo? I'm getting a time out error. I'm behind a proxy. ''' Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to http://repo1.maven.org:443 timed out '''

littleli 2021-02-23T09:52:39.001700Z

It's probably not a transparent proxy right? I recommend you to setup HTTP_PROXY and HTTPS_PROXY environment variables properly.

Cj Pangilinan 2021-02-23T11:21:16.001900Z

Thanks. I found out there's no settings.xml in my .m2/ directory. I copied one with the proxy details and run again clj. it works now. using cmd, powershell -command clj also works.

littleli 2021-02-23T11:32:16.002100Z

👍

alexmiller 2021-02-23T13:09:57.002300Z

you've already found this already it seems, but https://clojure.org/reference/deps_and_cli#_maven_proxies for the record

👍 1