我使用Leiningen和当地的回购,这是我的project.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.
我没有使用代理,所以它肯定是依赖问题,我无法找到原因......
答案 0 :(得分:0)
你在哪里 camelclojure ?我没有在MVNRepositories中找到它,也没有在Clojars中找到它。也许该项目被重命名为其他东西?
任何方式,您还应该包含 groupId :
[info.kovanovic/camelclojure "0.0.1-SNAPSHOT"]
但是,我仍然建议检查项目的当前状态。它在我看来它被重命名。