Clojure 为什么我会得到“一个”;project.clj中没有列出要编译的名称空间;警告
我正在Ubuntu 1.04上使用Lein1.6.2,并创建了一个裸项目。我搞不懂为什么我会被解雇 “project.clj中未列出要:aot编译的命名空间。” 输入编译时出错 project.cljClojure 为什么我会得到“一个”;project.clj中没有列出要编译的名称空间;警告,clojure,Clojure,我正在Ubuntu 1.04上使用Lein1.6.2,并创建了一个裸项目。我搞不懂为什么我会被解雇 “project.clj中未列出要:aot编译的命名空间。” 输入编译时出错 project.clj (defproject amr_db "1.0.0-SNAPSHOT" :description "FIXME: write description" :dependencies [[org.clojure/clojure "1.3.0"] [korma "
(defproject amr_db "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.3.0"]
[korma "0.2.1"]])
:main amr_db.core
core.clj(到目前为止)
如何清除警告?在project.clj中添加类似的行
(defproject amr_db "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.3.0"]
[korma "0.2.1"]])
:main amr_db.core
如果编译的jar不是main,那么您可能还需要这样的东西
:aot [amr_db.core amr_db.another_example]
非常感谢。我搜索过类似的东西,只发现不需要aot编译,也不需要如何编译。再次感谢。这里的“如果编译的jar不是main”是什么意思?