奇葩錯誤SLF4J: Failed to load class org.slf4j。。的修復

用Kepler eclipse自帶的maven插件搞了一個maven項目,build的過程當中出現以下紅色信息:html

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".api

SLF4J: Defaulting to no-operation (NOP) logger implementationeclipse

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.maven

<dependency>ui

<groupId>org.slf4j</groupId>spa

<artifactId>slf4j-api</artifactId>插件

<version>${org.slf4j-version}</version>code

</dependency>htm

<dependency>ip

<groupId>org.slf4j</groupId>

<artifactId>jcl-over-slf4j</artifactId>

<version>${org.slf4j-version}</version>

<scope>runtime</scope>

</dependency>

<dependency>

<groupId>org.slf4j</groupId>

<artifactId>slf4j-log4j12</artifactId>

<version>${org.slf4j-version}</version>

<scope>runtime</scope>

</dependency>

即便將slfj以及log4j的jar包加進去,仍然會報錯:


最後,單獨下載了maven包,配置了maven指向的路徑,編譯經過。

相關文章
相關標籤/搜索