Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open existing Clojure project in Eclipse?

Ive tried to do it usual way File -> Import -> General -> Existing project (as for java projects) BUT eclipse dont see clojure projects and cannot open it :( do you have any idea why ?

like image 341
Ann Avatar asked Dec 29 '25 17:12

Ann


1 Answers

  1. Install Counterclockwise plugin in Eclipse (from eclipse marketplace). This brings clojure and leiningen support to eclipse.

  2. Add lein2-eclipse plugin to your project.clj :

    :plugins [[lein2-eclipse "2.0.0"]]

  3. Run following command inside the project directory :

    lein eclipse

This generates necessary project files.

  1. Import the project into eclipse ( File -> Import -> General -> Existing project ).

  2. Right click on the project in eclipse then "Configure > Convert to leiningen project"

like image 175
Viktor K. Avatar answered Dec 31 '25 07:12

Viktor K.