Open main menu

Wikibooks β

Learning Clojure/Leiningen

< Learning Clojure
« Learning Clojure
Concurrent Programming Reader Macros

Leiningen is a build tool for Clojure based on Maven. It can do everything that Maven does, but it adds further support for Clojure and streamlines common Clojure tasks.

Like Maven, Leiningen favors convention over configuration, and thus automates many of the build, test and deployment steps without lots of complex configuration.

Getting started with LeiningenEdit

The official home page for Leiningen is at Like Maven, Leiningen can download and install dependencies as needed, so to install it all that is necessary is to download and run a small bootstrap script that will install all the additional modules as needed.

Installing on LinuxEdit

Download the shell script from Put it somewhere in your path and make it executable. A convenient place to put it is in ~/bin, if that is on your $PATH. You should then be able to run lein commands:

$ lein version
Leiningen 1.4.1 on Java 1.6.0_20 OpenJDK Client VM

Installing on WindowsEdit

  1. Download the Windows distribution from
  2. Unzip it to a folder of your choice
  3. Modify your path to include the 'lein' directory