
One of them is the lein-localrepo plugin which allows to install any jar lib as an artifact in the local maven repository of your machine (typically in the /.m2/repository. You can similarly set :mirrors if you have an in-house mirror of a maven repo. Install the localrepo Leiningen plugin The set of commands (tasks in Leiningen parlance) natively supported by Leiningen can be very easily extended by various plugins. You can set your own repos to be searched (or tweak various options) via :repositories in you project.clj. In practice you'll tend to see many libraries published in clojars where the name nicely matches the clojure namespace and github project name without the annoying Leiningen leverages the exact same mechanism with the exception that the group name does not have the restriction of being a reverse URI the way it must be with maven central. Maven uniquely identifies its dependencies (artifacts in maven parlance) by a triple (group-name, artifact-name, version). Instead, Leiningen is configured to search through a standard set of repos for your :dependencies E.g. The lein-run functionality is now part of core leiningen and doesn't need to be specified as a plugin Ĭlojars is a repository of clojure libraries quite similar to maven central (or to some lesser extent, rubygems).

Note that "sample" is a bit of a misnomer, it's a reference for all possible (built-in) keys and documentation of their defaults. When m2e 1.1 is released a small piece of XML included with the.

Right now you need to install an m2e-clojure integration plugin, which as far as I know hasnt been written yet. This is the object of the next tutorial: Part 2: Counterclockwise + Maven. With Leiningen 2.0 and greater you specify which plugins you want as values to :plugins in your project map. This is where Counterclockwise, the indispensable Clojure plugin for Eclipse, comes in.
