我使用本地库进行一些开发,但防火墙阻止了很多互联网站点。有没有办法手动下载工件?
我的 project.clj 是:
https://github.com/zubairq/coils/blob/master/project.clj?
更新
从给出的评论中,我了解到要采取的步骤是:
1) Install Maven
2) Find out which jars are in my project (How can I do this based on my project.clj?)
    我使用本地库进行一些开发,但防火墙阻止了很多互联网站点。有没有办法手动下载工件?
我的 project.clj 是:
https://github.com/zubairq/coils/blob/master/project.clj?
从给出的评论中,我了解到要采取的步骤是:
1) Install Maven
2) Find out which jars are in my project (How can I do this based on my project.clj?)
    为了弄清楚您的项目需要哪些 jar,您可以执行以下操作:
$ lein deps :tree
这将向您展示一种称为“依赖树”的东西。它看起来类似于:
 [clj-time "0.5.0"]
   [joda-time "2.2"]
 [clojure-complete "0.2.3"]
 [org.myproject/some-proto "0.0.1-20130523.145830-9"]
   [org.flatland/protobuf "0.7.2"]
     [ordered-collections "0.4.0"]
     [org.flatland/schematic "0.1.0"]
     [org.flatland/useful "0.9.0"]
 [com.datomic/datomic-free "0.8.3862"]
   ...
安装手动下载的 jar 的一种简单方法是使用“ lein-localrepo ”:
$ lein localrepo install [-r repo-path] 
                         [-p pom-file] 
                         <filename> 
                         <[groupId/]artifactId> 
                         <version>
这里有几个例子(假设你已经下载了 jars):
$ lein localrepo install foo-1.0.6.jar com.example/foo 1.0.6
$ lein localrepo install foomatic-1.3.9.jar foomatic 1.3.9
查看文档以获取更多功能和示例。
您可以lein-localrepo通过将以下内容添加到您的插件来安装~/.lein/profiles.clj:
{:user {:plugins [[lein-localrepo "0.5.2"]]}}
如果使用代理服务器“可以”,您可以将其添加~/.lein/profiles.clj到jvm-opts
{:user {:jvm-opts ["-Dhttp.proxyHost=168.1.1.104" "-Dhttp.proxyPort=8080"]}}
user要使用的配置文件名称在哪里。
或者您可以在启动 lein 之前http_proxy导出环境变量。