首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

如何导入clojure项目到eclipse中

2013-01-02 
怎么导入clojure项目到eclipse中(defproject my-project 1.0.0-SNAPSHOT:description My Clojure Leini

怎么导入clojure项目到eclipse中
(defproject my-project "1.0.0-SNAPSHOT" :description "My Clojure Leiningen Project" :dependencies [ [org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"][ring/ring-jetty-adapter "0.2.5"] ] :dev-dependencies [ [lein-eclipse "1.0.0"] ])?

Then, you need to download the project dependencies via

prompt> lein deps

This will automatically install lein-eclipse and add a new task called eclipse to leiningen. Invoking

prompt> lein eclipse

runs this task and creates the Eclipse projects files .project and .classpath. Now you can simply import the project into Eclipse via “File->Import->Existing Project into Workspace”.

热点排行