centOS7.6安裝maven編譯編碼提示SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
阿新 • • 發佈:2021-01-16
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
要執行如下命令是報錯:
[[email protected] rocketmq-all-4.8.0-source-release]# mvn -Prelease-all -DskipTests clean install -U SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
提示去:http://www.slf4j.org/codes.html查詢對應的錯誤“org.slf4j.impl.StaticLoggerBinder”
說是maven缺少對應的jar,將slf4j-nop.jarslf4j-simple.jar,slf4j-log4j12.jar,slf4j-jdk14.jarorlogback-classic.jar中的任意一個jar加到/maven/lib中編譯就可以,
提供官網下載地址https://mvnrepository.com/search?q=slf4j-nop-1.6.4.jar
然後mvn編譯成功