我有一個雷音項目在一個目錄,而不是使用所下載該.jar當我運行clojure lein:我如何在我的項目中包含來自其他目錄的源代碼?
> lein deps
我想從克隆的github倉庫使用源(它有最新的修補程序不在目前的罐子)。用leiningen做這種規範的方法是什麼?
這裏是我的項目文件:
(defproject oroboros "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.2.1"]
[org.clojure/clojure-contrib "1.2.0"]
[clojure-source "1.2.1"]
[overtone "0.3.0"]
[penumbra "0.6.0-SNAPSHOT"]]
:native-dependencies [[penumbra/lwjgl "2.4.2"]]
:dev-dependencies [[native-deps "1.0.5"]
[swank-clojure "1.4.0-SNAPSHOT"]])
我想用從GitHub泛音回購,而不是從clojars之一。
https://github.com/overtone/overtone
這可能嗎?
添加checkout目錄並鏈接回購沒有奏效。我需要在這裏做更多嗎?我沒有看到其他地方描述的這個功能。 – prismofeverything
如果您在checkout目錄中添加了一個鏈接,則不需要在project.clj文件中指定依賴項。與文檔暗示的相反,您應該從project.clj文件中刪除引用,否則lein deps仍然會中斷。 –
Joost是正確的,你應該從project.clj中的dependencies中刪除overtone。 – mtyaka