我刚开始使用clojure web开发,但是,第二步陷入困境 .
D:\cloj\work>lein new luminus guestbook +h2
Could not find artifact luminus:lein-template:jar:? in central
(https://repo1.maven.org/maven2/)
Could not find artifact luminus:lein-template:jar:? in clojars
(https://clojars.org/repo/)
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.
-
我可以在clojars看到https://clojars.org/repo/luminus/lein-template/的模板
-
我不是代理人的背后 .
-
my .lein / profiles.clj具有以下内容
{:user {:java-cmd "C:\Program Files\Java\jdk1.8.0_65\bin\java.exe":plugins [[lein-ancient "0.6.10"] [luminus / lein-template "2.9.10.74"]]}
}
我错过了什么!谢谢
1 回答
在阅读使用Clojure电子书的Web开发时,我遇到了同样的问题 . 问题是我复制粘贴了电子书中的
profiles.clj
配置,导致一些不可见的字符被包含在内,搞砸了配置 . 我用十六进制查看器验证了这一点 .解决方案是手动输入配置或者如果你懒惰的话从这里复制粘贴:)
当然你也可以省略这一点,但是你将使用最新版本,这可能会在书写时发生一些变化 .