Multiple SLF4J bindings cause error?

前端 未结 6 1013
傲寒
傲寒 2020-12-31 02:06

I have a problem with my dependency tree and multiple SLF4J binding. What I found out so far is that usually this only causes a warning but in my case it seems to prevent my

6条回答
  •  旧时难觅i
    2020-12-31 02:47

    Answer from Fateh is correct I had to spend some time to figure out how to use it, that's why I'm adding a complete solution:

    1. Run mvn dependency:tree

    2. find out which library is using slf4j:

      [INFO] +- net.lightbody.bmp:browsermob-proxy:jar:2.0-beta-8:compile
      [INFO] |  +- org.slf4j:slf4j-jdk14:jar:1.7.25:compile
      
    3. exclude it from maven like this:

           
              net.lightbody.bmp
              browsermob-proxy
              2.0.0
              
                  
                      org.slf4j
                      slf4j-jdk14
                  
              
          
      

提交回复
热议问题