Welcome! Please see the About page for a little more info on how this works.

0 votes
in tools.deps by
If you already are using logback, and have a logback.xml (possibly from a library like stuartsierra/log.dev), you will get a lot of warnings due to tools.deps bringing in a logback.xml transitively via aws-maven.

{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"]


I don't know that there's much you can do except fork upstream.

Example of the conflict happening:

{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 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/TDEPS-108 (reported by severeoverfl0w)
...