How to open existing Clojure project in Eclipse?

為{幸葍}努か 提交于 2019-12-05 22:09:46
  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"

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!