2016-06-24 27 views
0

我試圖按照此recipe在本地安裝庫A並在另一個項目中使用B. lein安裝在A上工作,lein deps適用於B,但在運行時,我得到Could not locate A on classpathlein本地安裝,「找不到A_lib/core/as.clj」

尋找獨立的jar文件,生成lein [ring] uberjar我確實有A_lib/core.clj。但我得到

Exception in thread "main" java.io.FileNotFoundException: 
Could not locate A_lib/core/as__init.class or A_lib/core/as.clj on classpath. 
Please check that namespaces with dashes use underscores in the Clojure file name., 
compiling:(B/handler.clj:1:1) 

爲什麼它會尋找A_lib/core/as.clj而不是A_lib/core.clj?

回答

0

我做了一個簡單的拼寫錯誤,

[ab-lib.core as ablib] 

而不是

[ab-lib.core :as ablib]