本文介绍了如何在防火墙后面安装Leiningen软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我使用本地库来做一些开发,但防火墙阻止了大量的互联网网站。是否有手动下载工件的方法?I use a local library to do some development, but the firewall prevents alot of internet sites. Is there a way to download artifacts manually?我的project.clj是:My project.clj is:https://github.com/zubairq/coils/blob/master/project.clj? 更新 我理解要采取的步骤是:UpdateFrom the comments given I am understanding that the steps to take are:1) Install Maven2) Find out which jars are in my project (How can I do this based on my project.clj?)推荐答案 依赖关系树 为了找出您的项目需要哪些jars,您可以:Dependency TreeIn order to figure out which jars your project needs you can do:$ lein deps :tree你被称为依赖树的东西。它将类似于:Which will show you something that is called a "dependency tree". It will look similar to: [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"] ... $ b b 使用Lein安装Jars 安装手动下载的jar的一种简单方法是使用 lein-localrepo :$ lein localrepo install [-r repo-path] [-p pom-file] <filename> <[groupId/]artifactId> <version>以下是几个示例(假设您已下载jars):Here are a couple of examples (given that you have downloaded the 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查看文档了解更多功能和示例。Take a look at the documentation for more features and examples.您可以将 lein-localrepo 安装为插件,方法是在〜/ .lein / profiles.clj :You can install lein-localrepo as a plugin by adding the following to your ~/.lein/profiles.clj:{:user {:plugins [[lein-localrepo "0.5.2"]]}} 代理服务器后面的Lein 如果使用代理服务器ok,可以将其添加到〜/ .lein /profiles.clj 下的{:user {:jvm-opts ["-Dhttp.proxyHost=168.1.1.104" "-Dhttp.proxyPort=8080"]}}其中用户是要使用的个人资料名称。where user is a profile name to use.可以在启动lein之前导出 http_proxy 环境变量。Or you can export http_proxy environment variable before launching lein. 这篇关于如何在防火墙后面安装Leiningen软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-13 13:26