如何打开Eclipse中现有的Clojure项目? [英] How to open existing Clojure project in Eclipse?

查看:163
本文介绍了如何打开Eclipse中现有的Clojure项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文件 - >导入 - >一般 - >现有项目(如java项目)但eclipse不看到clojure项目,并且不能打开它:
你有什么想法为什么?

解决方案


  1. 安装逆时针插件在Eclipse中(来自eclipse marketplace)。这为eclipse提供了clojure和leiningen支持。


  2. Add lein2-eclipse 插件到您的project.clj:



    :在项目目录中运行以下命令:










    lein eclipse


这会产生必要的专案档案。


  1. 将项目导入eclipse(文件 - >导入 - >常规 - >现有项目)。


  2. 在eclipse中右键单击项目,然后配置>转换为leiningen项目



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.

  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"

这篇关于如何打开Eclipse中现有的Clojure项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆