Tip: Import Leiningen Project to IntelliJ (With Dependencies)
To import a Leiningen-based project into IntelliJ with the Clojure plugin, the best way seems to be:
If you change the dependencies, regenerate the pom.
(Notice that Leiningen 1 did download all the dependencies into ./lib/ when executing
- Run
lein pom
to generate a Mavenpom.xml
fromproject.clj
- Import the project as a Maven project (File - New Project... - Import project from external model - Maven - browse to the directory - ...)
If you change the dependencies, regenerate the pom.
(Notice that Leiningen 1 did download all the dependencies into ./lib/ when executing
lein deps
but that doesn't work anymore in Leiningen 2.)