SLF4J: Class path contains multiple SLF4J bindings in Intellij
I am getting below issue each and everytime when i run tests or project. When i tried to delete the duplicated StaticLoggerBinding.class from jar_files(5) folder then the issue gets resolved. But then i am getting issue Failed to load class org.slf4j.impl.StaticLoggerBinder
. When i again add StaticLoggerBinder.class then again the issue Multiple bindings were found on the class path
coming.
I have also added below in my pom file but still same issue:
<dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.3</version> <scope>test</scope> </dependency>
I am using Intellij Idea. Below is the error:
SLF4J: Found binding in [jar:file:/home/Downloads/jar_files(5)/logback-classic-1.1.9.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/dev/bin/mvn/repo/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]