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 ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Install Counterclockwise plugin in Eclipse (from eclipse marketplace). This brings clojure and leiningen support to eclipse.
Add lein2-eclipse plugin to your project.clj :
:plugins [[lein2-eclipse "2.0.0"]]
Run following command inside the project directory :
lein eclipse
This generates necessary project files.
Import the project into eclipse ( File -> Import -> General -> Existing project ).
Right click on the project in eclipse then "Configure > Convert to leiningen project"
回答2:
You need a plugin for a Clojure project in Eclipse. Check Counterclockwise.
Although I personally use Counterclockwise, I think there are better IDEs for Clojure than Eclipse, for example LightTable.