【发布时间】:2014-06-06 13:45:20
【问题描述】:
- 我正在尝试通过 Google 要求一个 java 库并从 Clojure 调用它。
- 我根据groupId、artifactId和version在我的project.clj中添加了
com.google.api-client/google-api-client。 -
lein deps不返回任何输出 - 似乎它成功设置了所有依赖项。 - 我检查了类路径,它包含 google-api-client.jar
(System/getProperty "java.class.path"). -
user=>(require 'com.google.api-client/google-api-client)返回FileNotFoundException Could not locate google_api_client__init.class or google_api_client.clj on classpath: clojure.lang.RT.load (RT.java:443)
这是我的project.clj:
(defproject textsync "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"]
[com.google.api-client/google-api-client "1.18.0-rc"]
我做错了什么?
【问题讨论】: