How To Configure Leiningen to Use An HTTP Proxy

Wednesday, June 01, 2011 10:45 PM

I spent a couple of hours banging my head against a wall over this.  Leiningen doesn't respect the HTTP_PROXY environment variable as most Unix programs do.  I finally asked on the Clojure IRC channel and got the answer from manutter: leiningen, of course, uses maven for its dependency management.  Maven, in turn, doesn't respect the environment variable.  Instead you need to configure a specific file in your ~/.m2 directory.

Hope this helps someone.

Technorati Tags: ,
Comments
Gravatar
# re: How To Configure Leiningen to Use An HTTP Proxy
Posted by Tim Visher on 6/7/2012 7:59 PM
You're post has served me well for awhile now. It's out of date for lein2, though.

I posted instructions for lein2 over at blog.twonegatives.com/.../how-to-set-leiningen2...
Gravatar
# re: How To Configure Leiningen to Use An HTTP Proxy
Posted by Julian on 10/6/2012 9:34 PM
That's perfect. I believe lein2 uses pomegranate, which respects the standard environment variables, rather than maven, which not only doesn't respect HTTP_PROXY, it doesn't even respect any reasonable sense of taste.
Something to add?

Talking sense? Talking rubbish? Something I'm missing? Let me know!

Fields denoted with a "*" are required.

 (will not be displayed)

 
Please add 5 and 4 and type the answer here:

Preview Your Comment