Installing Leiningen behind a proxy

Leiningen is the defacto build tool for clojure projects. Installing in any corporate environment probably means you will need to install behind a proxy, which I found wasn’t that well documented even though it’s very simple with just a few steps:

  1. Set the environment variables http_proxy and https_proxy, leiningen will honor these settings.
  2. Download the lein installer script from http://leiningen.org/#install
  3. Make sure the script is executable & on your path
  4. Run it with the argument self-install, for example on windows run lein.bat self-install

After that you will have it installed, from anywhere on your machine run lein new my-project and get to work!

Leave a Reply