Clojure leiningen 2是否省略默认存储库?
我正试图将archiva设置为leiningen项目的代理回购协议。我已经看到了对以下关键点的引用: :省略默认存储库 但它似乎不起作用。当我将clojars依赖项粘贴到我的项目文件中时,leiningen仍然从clojars而不是我的代理中提取。我的项目文件如下所示:Clojure leiningen 2是否省略默认存储库?,clojure,leiningen,archiva,Clojure,Leiningen,Archiva,我正试图将archiva设置为leiningen项目的代理回购协议。我已经看到了对以下关键点的引用: :省略默认存储库 但它似乎不起作用。当我将clojars依赖项粘贴到我的项目文件中时,leiningen仍然从clojars而不是我的代理中提取。我的项目文件如下所示: (defproject test-archiva "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIX
(defproject test-archiva "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:repositories [["snapshots", "http://myserver:8080/archiva/repository/snapshots"]
["releases", "http://myserver:8080/archiva/repository/internal"]]
:omit_default_repositories true
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.4.0"]
[incanter "1.4.1"]])
任何帮助都将不胜感激
(defproject test-archiva "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:repositories [["snapshots", "http://myserver:8080/archiva/repository/snapshots"]
["releases", "http://myserver:8080/archiva/repository/internal"]]
:omit-default-repositories true
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.4.0"]
[incanter "1.4.1"]])
试试看……看起来你用下划线代替了连字符,现在你可以写:
:repositories ^:replace [["snapshots", "http://myserver:8080/archiva/repository/snapshots"]
["releases", "http://myserver:8080/archiva/repository/internal"]]
我找不到哪个verion引入了这一功能,但它适用于2.3.4或更高版本的Leiningen。:省略默认存储库与省略默认存储库……这有区别吗?是的,我在缓冲区中更改了它。。。忘了保存,然后用_的运行了lein deps。更进一步。