Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Clojure lein ring和配置文件的问题_Clojure_Leiningen_Ring - Fatal编程技术网

Clojure lein ring和配置文件的问题

Clojure lein ring和配置文件的问题,clojure,leiningen,ring,Clojure,Leiningen,Ring,我很难让lein-ring-uberjar处理多个配置文件 以下工作: lein new luminus profile-issue cd profile-issue lein ring uberjar java -jar target\profile-issue-0.1.0-SNAPSHOT-standalone.jar 现在,当使用多个概要文件时,对project.clj的以下更改很重要 ;add key to project.clj :target-path "targe

我很难让
lein-ring-uberjar
处理多个配置文件

以下工作:

lein new luminus profile-issue
cd profile-issue
lein ring uberjar

java -jar target\profile-issue-0.1.0-SNAPSHOT-standalone.jar
现在,当使用多个概要文件时,对project.clj的以下更改很重要

 ;add key to project.clj
 :target-path "target/%s/" 
下一次尝试

lein clean
lein ring uberjar

java -jar target\profile-issue-0.1.0-SNAPSHOT-standalone.jar
Error: Could not find or load main class profile_issue.handler.main
第250行解释了在使用多个概要文件时将目标路径拆分为子目录非常重要的原因。简而言之,当使用
:target path“target/
时,您将遇到麻烦,因为不同的配置文件编译到同一个目录中,并且当您在没有
lein clean的情况下启动REPL时,您不知道您得到了什么

顺便说一句,当使用
:target path“target/%s/”
时,jar和uberjar不会出现在同一个目录中,这很奇怪


有什么想法吗?

我刚刚碰到了同样的事情,你解决了吗?github上有一个问题: