[英]Display loaded dependencies in leiningen REPL
I'm running into problems because the library I have appears to conflict with the published documentation. 我遇到了问题,因为我的库似乎与已发布的文档冲突。 I had a few problems with getting the right version of things installed before, and I'm wondering if this is the cause. 我之前安装了正确版本的东西时遇到了一些问题,我想知道这是不是原因。
Is there any way to print out which jars were loaded in the repl so I can check? 有没有办法打印出在repl中加载哪些罐子所以我可以检查?
You can also use query lein for 您也可以使用查询lein
lein classpath
带有lein classpath
lein deps :tree
与lein deps :tree
的依赖关系树打印输出 This might also help: 这也可能有所帮助:
lein deps :tree
- shows a tree of dependencies that get pulled in lein deps :tree
- 显示被拉入的依赖树
[library "version" :exclusions [some-other-lib "version"]]
- exclude the some-other-lib
that gets pulled in by some library. [library "version" :exclusions [some-other-lib "version"]]
- 排除由某些库引入的some-other-lib
。
You can then manually pull in the right version of some-other-lib
by defining your own dependency vector. 然后,您可以通过定义自己的依赖关系向量手动拉入some-other-lib
的正确版本。
(System/getProperty "java.class.path")
There are several options: 有几种选择:
(System/getProperty "java.class.path")
, (println (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader))))
使用java interrop: (System/getProperty "java.class.path")
, (println (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader))))
system-classpath
clojure / java.classpath包含有用的函数:如system-classpath
lein
: lein classpath
and lein deps :tree
lein
: lein classpath
和lein deps :tree
boot
: boot show -p
, as well as useful function in boot environnement . boot
: boot show -p
,以及boot环境中的有用功能。 Maybe have a look at martinklepsch/boot-deps . 也许看看martinklepsch / boot-deps 。 For boot
, I also wrote nha/boot-deps that helps managing dependency conflicts. 对于boot
,我还编写了nha / boot-deps来帮助管理依赖冲突。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.