【发布时间】:2017-09-30 04:43:29
【问题描述】:
我正在尝试在公司代理或本地 maven 镜像后面使用 lein 新模板构建,但失败:
C:\development\clojure> lein new luminus guestbook +h2
Failed to resolve version for luminus:lein-template:jar:RELEASE: Could not find metadata luminus:lein-template/maven-metadata.xml in local (C:\Users\username\.m2\repository)
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Could not find template luminus on the classpath.
将以下几行放在profiles.clj 中似乎没有效果:
:mirrors {"central" {:name "central"
:url "http://server.company_name.com:8080/artifactory/maven.central/"}}
环境变量(大写/小写似乎也没有影响):
HTTP_PROXY=http://username:password@proxy.company_name.com:8080
HTTPS_PROXY=https://username:password@proxy.company_name.com:8080
HTTP_NO_PROXY=*.company_name.com
HTTP_CLIENT=wget --no-check-certificate -O
注意:我还指定了没有用户名和密码的 HTTP/S 代理,这会导致同样的失败。
我也无法确定如何生成调试级别日志记录以帮助排除故障。
Java 1.8.0_144 Java HotSpot(TM) 64 位服务器虚拟机上的 Leiningen 2.7.0
Clojure 1.8.0
【问题讨论】: