我想使用https://github.com/arohner/lein-test-out/或https://clojars.org/org.clojars.jaley/lein-test-out
中的lein-test-out插件但是当我在dev-dependecty中使用[lein-test-out“0.1.0”]时,什么都没有,当我使用时
:profiles {:dev { :dependencies [[junit / junit“4.10”] [lein / test-out“0.2.0”]] :plugins [[lein-test-out“0.2.0”]]
我得到: leiningen.test-out问题加载:找不到类路径上的clojure / contrib / find_namespaces__init.class或clojure / contrib / find_namespaces.clj:
完整的project.clj:
(defproject dataserver "0.1.0-SNAPSHOT"
:aot [#"a\.b\..*"]
:omit-source true
:warn-on-reflection true
:min-lein-version "2.0.0"
:source-paths ["src-clj"]
:resource-paths ["/home/storm/storm/conf/storm.yaml" "resources"]
:uberjar-name "b.jar"
:uberjar-exclusions [#"log4j.properties"]
:main a.b.repl
:ring {:handler a.b.topmanager.core/app}
:dependencies [[org.clojure/clojure "1.4.0"]
[org.clojure/data.json "0.1.3"]
[org.clojure/data.priority-map "0.0.1"]
[com.rabbitmq/amqp-client "2.8.4"]
[org.scribe/scribe "1.3.1"]
[http.async.client "0.4.5"]
[org.clojure/tools.logging "0.2.4"]
[clj-redis "0.0.12"]]
:profiles {:dev {
:dependencies [[storm "0.7.3" :exclusions [org.clojure/tools.loggin org.clojure/tools.cli compojure hiccup
ring/ring-jetty-adapter backtype/jzmq]]
[org.clojure/data.xml "0.0.6"]
[org.clojure/data.zip "0.1.1"]
[compojure "1.0.4"]
[ring/ring-jetty-adapter "1.1.1"]
[org.slf4j/slf4j-log4j12 "1.6.6"]
[junit/junit "4.10"]
[org.clojars.jaley/lein-test-out "0.1.1-SNAPSHOT"]]
:plugins [[lein-ring "0.6.7"]
[lein-test-out "0.1.1"]]
}}
:jvm-opts ["-Dfile.encoding=UTF-8"
"-Dstorm.jar=target/b.jar"]
:repl-options {:timeout 60000})
答案 0 :(得分:0)
lein-test-out似乎期待来自clojure.contrib.find-namespaces
的{{1}}。您可以尝试将clojure.contrib
1.2添加到您的依赖项中,但请记住,clojure.contrib与clojure 1.3及其完全兼容,而clojure.contrib
本身需要1.3,所以看起来如果您需要可靠的东西,你要自己解决,让其他人为你解决它或不使用lein-test-out
。