2012-08-08 48 views
2

我需要執行mvn install。據我所知,Leiningen(我已經擁有)建立在Maven之上,所以也許我不需要單獨安裝Maven - 或者我可以嗎?Lein是否包含maven可執行文件?

+0

,讓安裝Maven是一個非常簡單的任務。我只是認爲從lein執行它 - 如果可能的話 - 將是一個很好的竅門。 – vemv 2012-08-08 12:57:03

回答

6

Leiningen使用pomegranate,Clojure包裝爲Eclipse Aether,一個用於處理工件庫的庫。由於有更多的產品需要知識庫訪問,所以Aether的功能從Maven中分離出來成爲一個單獨的項目,而Maven改爲使用Aether。

石榴剛剛備案的安裝功能

install 
    "Install the jar-file kwarg using the pom-file kwarg and coordinates kwarg. 

:coordinates - [group/name \"version\"] 
:jar-file - a file pointing to the jar 
:pom-file - a file pointing to the pom 
:local-repo - path to the local repository (defaults to ~/.m2/repository) 
:transfer-listener - same as provided to resolve-dependencies" 
1

我相信有一個lein install任務。

+0

不幸的是,它的功能僅限於Lein項目... – vemv 2012-08-08 11:56:58

+0

@vemv對不起。從你的問題中,我推測你正在談論萊恩項目。 – kotarak 2012-08-09 05:53:40

相關問題