使用lein工程与/ lib不工作 [英] Using lein project with /lib doesn't work

查看:119
本文介绍了使用lein工程与/ lib不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用lein 2.2时,试图将jar文件放在/ lib中不起作用。

When using lein 2.2, trying to put jar files in /lib does not work.

我试过,似乎没有工作,

I tried and it doesn't seems to work but plenty of docs out there says this way still works.

推荐答案

在Leiningen v2.0中删除了lib目录功能, 可重复性)。

The lib directory functionality was removed in Leiningen v2.0, in favor of a repository (repeatability).

至向项目中添加自由浮动广告瓶,您需要将依赖关系部署到 Clojars 或Maven存储库。 Maven仓库可以像项目文件夹中的目录一样简单。

To add free floating jars to a project, you will need to either deploy your dependency to Clojars or a Maven repository. The Maven repository can be as simple as a directory in your project folder.

如果您需要项目本地文件夹中的jar,请参阅此问题的答案:

Please see the answer to this question if you need the jar in a project local folder:

如何在leiningen使用签入的瓶子

这篇关于使用lein工程与/ lib不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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