2024年Clojure调查中分享您的看法!

欢迎!请查看关于页面,了解更多信息。

0
tools.deps
如果您已经使用logback,并且有一个logback.xml(可能是来自类似stuartsierra/log.dev的库),您将由于tools.deps通过aws-maven间接引入logback.xml而收到很多警告。

{code:title=deps.edn}
{:deps {org.clojure/tools.deps.alpha {:mvn/version "0.5.460"}}}



❯ clojure -e '(clojure.java.io/resource "logback.xml")'
#object[java.net.URL 0x1c852c0f "jar:file:/home/dominic/.m2/repository/org/springframework/build/aws-maven/5.0.0.RELEASE/aws-maven-5.0.0.RELEASE.jar!/logback.xml"]


我不知道您能做些什么,除了分支上游之外。

冲突实例

{code:title=deps.edn}
{:deps {org.clojure/tools.deps.alpha {:mvn/version "0.5.460 "
                                      :exclusions [org.slf4j/slf4j-nop]}
        com.stuartsierra/log.dev {:mvn/version "0.2.0"}
        org.clojure/tools.logging {:mvn/version "0.4.1"}}}



$ echo "(require 'clojure.tools.logging)  (clojure.tools.logging/info :hello)" | clojure
...
12:27:29,975 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
12:27:29,975 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/dominic/.m2/repository/org/springframework/build/aws-maven/5.0.0.RELEASE/aws-maven-5.0.0.RELEASE.jar!/logback.xml]
12:27:29,975 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/dominic/.m2/repository/com/stuartsierra/log.dev/0.2.0/log.dev-0.2.0.jar!/logback.xml]
...

1 个答案

0
参考:https://clojure.atlassian.net/browse/TDEPS-108(severeoverfl0w报告)
...