Clojure Leiningen和本地回购依赖性问题

Clojure Leiningen和本地回购依赖性问题,clojure,leiningen,Clojure,Leiningen,我正在使用Leiningen和本地回购,这是我的项目.clj。Camelclojure是本地jar (defproject mashup-dsl "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-

我正在使用Leiningen和本地回购,这是我的项目.clj。Camelclojure是本地jar

(defproject mashup-dsl "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
        :url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]

            [enlive "1.1.1"]
            [ring/ring-core "1.1.8"]
            [ring/ring-jetty-adapter "1.1.8"]
            [net.cgrand/moustache "1.0.0"]
            [ring/ring-devel "1.1.8"]
            [compojure "1.1.5"]
            [org.clojure/data.zip "0.1.1"]
            [org.apache.camel/camel-core "2.11.0"]
            [org.apache.camel/camel-component "1.4.0"]     
            [org.clojure/data.xml "0.0.7"]
            [camelclojure "0.0.1-SNAPSHOT"]

          ]
 :repositories {"local"  "C:/Users/pvmd/.m2/repository"}
 :plugins [[lein-localrepo "0.5.2"]])
我已经在Maven的存储库中添加了一个本地jar,但是当我运行

lein deps
这是我得到的一个错误

C:\Users\pvmd\git\mashup-dsl\mashup-dsl>lein deps
Could not transfer artifact camelclojure:camelclojure:pom:0.0.1-SNAPSHOT from/to
local (C:/Users/pvmd/.m2/repository): No connector available to access reposito
ry local (C:/Users/pvmd/.m2/repository) of type default using the available factories      FileRepositoryConnectorFactory, WagonRepositoryConnectorFactory
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
我不使用代理,所以这肯定是一个依赖性问题,我就是找不到原因…

你从哪里得到的camelclojure?我在MVNRepositories和Clojars中都没有找到它。也许该项目被重命名为其他项目

无论如何,您都应该包括组ID

[info.kovanovic/camelclojure "0.0.1-SNAPSHOT"]

但是,我仍然建议检查项目的当前状态。在我看来,它被重命名了。

camelclojure是一个本地jar,它来自Mineague的coleague创建的项目。谢谢,但现在我似乎无法从中加载名称空间:user=>(需要'info.kovanovic.camelclojure.dsl)FileNotFoundException在类路径:clojure.lang.RT.load(RT.java:443)上找不到info/kovanovic/camelclojure/dsl_uuinit.class或info/kovanovic/camelclojure/dsl.clj,可能您的同事将dsl.clj重命名/移动到了其他地方。不,不是这样,jar是本地的,我已经使用mvn install命令安装了它,它在我的本地存储库中…可能是名称的问题…我会尝试其他方法