【发布时间】:2016-10-08 18:27:46
【问题描述】:
boot-clj 在启动时显示很多关于版本冲突的警告:它们看起来像这样:
Warning: version conflict detected: org.clojure/clojure version changes from 1.5.1 to 1.8.0
Warning: version conflict detected: clj-time version changes from 0.8.0 to 0.12.0
Warning: version conflict detected: riddley version changes from 0.1.7 to 0.1.12
Warning: version conflict detected: org.codehaus.plexus/plexus-utils version changes from 2.0.7 to 2.0.6
Warning: version conflict detected: org.clojure/tools.namespace version changes from 0.2.11 to 0.2.10
Warning: version conflict detected: com.fasterxml.jackson.core/jackson-core version changes from 2.1.1 to 2.3.2
我不太明白为什么有时第一个版本低于另一个版本,有时反之亦然。看起来我无法影响他们中的大多数人。例如,在我的项目中,我在版本 0.12.0 中需要 clj-time,所以我猜警告来自一个库,它本身需要另一个版本的 clj-time。
有没有办法修复它们,还是我总是使用-q 标志来“抑制引导本身的输出”?这可能会阻止显示其他可能更重要的输出吗?
【问题讨论】:
-
您是否尝试使用
-d标志? -
您的意思是手动添加缺少的依赖项?