向 Clojure 项目添加依赖项
来自 Clojure noob 的快速 Clojure 问题:
我们需要为我们的项目解析文本文件,并且正在考虑使用 fnparse 来完成工作。
我们需要向 project.clj 添加什么,以便 leiningen 来管理此依赖项?
我们已经尝试将 [name.choi.joshua.fnparse "2.2"]
添加到:dependency,但是 lein deps 却找不到它。
我们担心这个库可能无法使用 leiningen。在这种情况下,还有其他好的 Clojure 解析库吗?
Quick Clojure question from a Clojure noob:
we need to parse text files for our project, and are looking at using fnparse to get the job done.
What do we need to add to project.clj for leiningen to manage this dependency?
We've already tried adding [name.choi.joshua.fnparse "2.2"]
to :dependencies, but lein deps
then fails to find it.
We're worried that maybe we can't use leiningen for this library. In that case, are there other good parsing libraries out there for Clojure?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最近发现了 lein search 命令。有时在这样的情况下非常有帮助:
I recently dicovered the
lein search
command. is is sometimes incredibly helpful in cases like this:查看 Clojars,正确的依赖项似乎只是
[fnparse "2.2.7"]
。Looking on Clojars, it appears the correct dependency is just
[fnparse "2.2.7"]
.