-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description:
When running the application, I am consistently encountering the SLF4J: Class path contains multiple SLF4J bindings warning. Despite efforts to resolve this by excluding slf4j-simple from the stanford-corenlp dependency, the issue persists.
Log:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/Descargas%20Google/stanford-corenlp-4.5.4/slf4j-simple.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/Manu/.m2/repository/ch/qos/logback/logback-classic/1.2.5/logback-classic-1.2.5.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 [org.slf4j.impl.SimpleLoggerFactory]
Steps to reproduce:
- Clone the repository.
- Run the application.
- Observe the above warning in the logs.
Attempted Resolutions:
- Excluded
slf4j-simplefrom thestanford-corenlpdependency inpom.xml. - Explicitly included
slf4j-apiandlogback-classicdependencies. - Updated all project dependencies and reimported them.
- Checked the dependency tree to verify the absence of
slf4j-simple. - Ran the application outside the IDE using Maven.
- Added
slf4j.propertiesto manually specify the logger for SLF4J.
None of the above solutions resolved the issue.
Environment:
- Java version: ( Java 11)
- Maven version: ( 3.6.3)
- OS: (e.g., Windows 10)
Any assistance or insights regarding this issue would be highly appreciated.