我是clojure / lein的新手。
project.clj看起来像这样
(defproject pio-cache "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"]
[clj-http "0.9.2"]]
:main pio-cache.core/main
)
我的核心文件看起来像
(ns pio-cache.core
(:require [clj-http.client :as client])
)
但我不能使用clj-http。当我尝试运行它时,我会继续:
java.io.FileNotFoundException: Could not locate clj_http/client__init.class or clj_http/client.clj on classpath
我已尝试投放lein deps
和lein classpath
。什么都没有解决它。
[clj-http "0.9.2"]
[cheshire "5.3.1" :exclusions [[org.clojure/clojure]]]
[com.fasterxml.jackson.core/jackson-core "2.3.1"]
[com.fasterxml.jackson.dataformat/jackson-dataformat-smile "2.3.1"]
[tigris "0.1.1"]
[commons-codec "1.9" :exclusions [[org.clojure/clojure]]]
[commons-io "2.4" :exclusions [[org.clojure/clojure]]]
[crouton "0.1.2" :exclusions [[org.clojure/clojure]]]
[org.jsoup/jsoup "1.7.1"]
[org.apache.httpcomponents/httpclient "4.3.3" :exclusions [[org.clojure/clojure]]]
[commons-logging "1.1.3"]
[org.apache.httpcomponents/httpcore "4.3.2" :exclusions [[org.clojure/clojure]]]
[org.apache.httpcomponents/httpmime "4.3.3" :exclusions [[org.clojure/clojure]]]
[org.clojure/tools.reader "0.8.4" :exclusions [[org.clojure/clojure]]]
[potemkin "0.3.4" :exclusions [[org.clojure/clojure]]]
[clj-tuple "0.1.2"]
[riddley "0.1.6"]
[slingshot "0.10.3" :exclusions [[org.clojure/clojure]]]
[clojure-complete "0.2.3" :exclusions [[org.clojure/clojure]]]
[org.clojure/clojure "1.6.0"]
[org.clojure/tools.nrepl "0.2.3" :exclusions [[org.clojure/clojure]]]
答案 0 :(得分:0)
我进入另一个目录,让lein
生成基于铃声的应用程序模板并下载其依赖项,然后回到此项目的目录中,突然依赖下载才开始工作....?