मुझे अपने निर्भरता पेड़ और एकाधिक SLF4J बाध्यकारी में समस्या है। ये अपवाद मैं मिलता है :: क्या मैं अब तक पता चला कि आम तौर पर यह केवल एक चेतावनी का कारण बनता है, लेकिन मेरे मामले में यह चलने से मेरा कार्यक्रम को रोकने के लिए लगता हैएकाधिक एसएलएफ 4 जे बाइंडिंग त्रुटि का कारण बनता है?
SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/FischerNi/.m2/repository/org/slf4j/slf4j-jdk14/1.5.3/slf4j-jdk14-1.5.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/FischerNi/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding. SLF4J: Your binding is version 1.5.5 or earlier. SLF4J: Upgrade your binding to version 1.6.x. or 2.0.x Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
और इस के प्रासंगिक टुकड़ा है मेरी निर्भरता: net.lightbody.bmp browsermob-प्रॉक्सी 2.0 बीटा-8
<!-- LOGGING DEPENDENCIES - LOG4J -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
किसी कृपया मुझे बताओ कैसे इस समस्या को हल करने के लिए कर सकते हैं?
आप अलग-अलग संस्करणों (1.5.3 और 1.6.1, त्रुटि संदेश के अनुसार) के साथ कई बार 'slf4j-log4j12' कई बार (सीधे या परोक्ष रूप से किसी अन्य निर्भरता के माध्यम से) शामिल हैं। – Jesper