配置Clojure国内仓库
在项目中设置国内仓库
修改project.clj,参考如下内容进行设置
(defproject project-name
:dependencies [[org.clojure/clojure "1.10.0"]]
:repositories [["central" "http://maven.aliyun.com/nexus/content/groups/public"]
["clojars" "https://mirrors.tuna.tsinghua.edu.cn/clojars/"]])
;; 这个是官方的启用非严格检查方案
(require 'cemerick.pomegranate.aether)
(cemerick.pomegranate.aether/register-wagon-factory!
"http" #(org.apache.maven.wagon.providers.http.HttpWagon.))