如何使用leiningen使用本地罐子发展? [英] How to use leiningen to develop using local jars?

查看:162
本文介绍了如何使用leiningen使用本地罐子发展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到这个问题pretty多发现确切的问题,<一个href=\"http://stackoverflow.com/questions/2404426/leiningen-how-to-add-dependencies-for-local-jars\">here.但是,看到这个问题,为1.5岁(左右),我想重温它。一个人如何使用leiningen添加本地的依赖?当然,这个能力,现在一定存在呢?

I realize that this question is pretty much the exact question found here. However, seeing as that question is 1.5 years old (or so), I would like to revisit it. How does one add local dependencies using leiningen? Surely this capability must exist by now?

推荐答案

创建私有Maven仓库,然后添加以下到你的 project.clj

Create a private Maven Repository, and then, add the following to your project.clj

:repositories {"local" ~(str (.toURI (java.io.File. "your_local_repository")))}

这篇关于如何使用leiningen使用本地罐子发展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆