clojure之leiningen生成eclipse工程

本文详细介绍了如何通过Leiningen在Eclipse环境中生成Clojure工程,包括环境配置、生成新工程、安装Eclipse插件及整合步骤。提供了从下载Leiningen到最终导入Eclipse的完整流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一 通过leiningen生成eclipse工程

1.环境配置, 下载:https://github.com/technomancy/leiningen/downloads : leiningein-1.5.2-win.zip

leiningen-1.5.2-win.zip
解压zip包,修改lein.bat文件,将 LEIN_VERSION=1.5.2 修改为LEIN_VERSION=1.6.2. 然后运行lein self-install(注意运行安装命令的时候,lein回去mvn respository下载clojure1.2.0, lein运行依赖clojure1.2.0.jar. 也就是说如果你的环境变量中设置: CLOJURE_JAR 为clojure1.3.0.jar, 对lein不会有影响)

2.生成新工程. lein new demo-name. 其中project.clj 内容如下:

(defproject leinDemo "1.0.0-SNAPSHOT"
  :description "leiningen demon"
  :dependencies [
                 [org.clojure/clojure "1.3.0"]
                 [org.clojure/clojure-contrib "1.2.0"]
                 ]
)


3.安装leiningin eclipse plugin, 命令行运行lein plugin install lein-eclipse "1.0.0"

4.进入demo-name,命令行运行lein eclipse既可.

5.导入eclipse


二 整合eclipse和leiningen

http://blog.csdn.net/xiejianming/article/details/6950630

http://stackoverflow.com/questions/2136792/using-clojure-and-leiningen-with-ides
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值