SLF4J: Не удалось загрузить класс «org.slf4j.impl.StaticLoggerBinder». ошибка

Regarding Eclipse IDE (Indigo, Juno and Kepler (32 and 64 bit versions)) Platforms: Windows, Ubuntu, Mac m2e version: 1.1.0.20120530-0009, 1.2.0.20120903-1050, 1.3.0.20130129-0926,
1.4.0.20130601-0317 General info

Вышеуказанная ошибка возникла после обновления m2e до версии 1.1.By removing m2e 1.1 and rolling back to m2e 1.0 everything worked fine. Я попытался повторить проблему в Windows и Ubuntu, и это дало мне точно такую же ошибку. Были протестированы многочисленные конфигурации slf4j-api и logback, но ни одна из них, похоже, не работает.

Ошибка появляется в любом проекте Maveneven without declaring slf4j dependency.

New Maven Project--> maven-archetype-quickstart

and

New Maven Project--> Simple project without archetype selection

result to

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
Testing enviroments and configurations

Протестировано с Eclipse Indigo и Eclipse Juno (32- и 64-разрядными) на Mac, 32-разрядными в Ubuntu и 64- и 32-разрядными в Windows. Проверенные свежие установкиJuno Classic, Juno Modelling tools, Kepler Standard, Kepler Modelling Tools и выдал ту же ошибку.

Ошибка появляется сclean, install, test, deploy, generate-sources, validate , compile , package, integration-test, verify и комбинации цели чистой с остальными целями. Появляется также с параметрами-e а также-X, Была попытка удалить репозиторий m2e и загрузить его с нуля, но снова безуспешно. Следует упомянуть, что он был протестирован на 3 разных машинах и в виртуальной коробке во всех вышеперечисленных системах, но выдает ту же ошибку.

Пробовал все разныеlogback конфигурации (от 1.0.4 до 1.0.13), которые разрешаютslf4j-api а такжеlogback-core зависимости, но все выдают одну и ту же ошибку:

<dependency>
   <groupId>ch.qos.logback</groupId>
   <artifactId>logback-classic</artifactId>
   <version></version>
</dependency>

Пробовал все по разному (от 1.6.1 до 1.7.5)slf4j-simple конфигурации.

<dependency>
   <groupId>org.slf4j</groupId>
   <artifactId>slf4j-simple</artifactId>
   <version></version>
   <scope>compile</scope>
</dependency>

Пробовал все по разному (от 1.6.1 до 1.7.5)log4j-over-slf4j конфигурации.

<dependency>
   <groupId>org.slf4j</groupId>
   <artifactId>log4j-over-slf4j</artifactId>
   <version></version>
   <scope>compile</scope>
</dependency>

Пробовал все по разному (от 1.6.1 до 1.7.5)slf4j-jdk14 конфигурации.

<dependency>
   <groupId>org.slf4j</groupId>
   <artifactId>slf4j-jdk14</artifactId>
   <version></version>
   <scope>compile</scope>
</dependency>

Пробовал все по разному (от 1.6.1 до 1.7.5)slf4j-log4j12 конфигурации.

<dependency>
     <groupId>org.slf4j</groupId>
     <artifactId>slf4j-log4j12</artifactId>
     <version></version>
     <scope>compile</scope>
</dependency>

Пыталсяslf4j-nop 1.7.5 конфигурации.

<dependency>
  <groupId>org.slf4j</groupId>
  <artifactId>slf4j-nop</artifactId>
  <version>1.7.5</version>
  <scope>compile</scope>
</dependency>

Last but not least the logs are saved and printed despite the error.

Ways to reproduce the error

Download Eclipse Juno, Indigo or Kepler 32 or 64 bit (All installations will cause the same error).

Install m2e - Maven Integration for Eclipse

Juno - http://download.eclipse.org/releases/juno Kepler - http://download.eclipse.org/releases/kepler Indigo - http://download.eclipse.org/technology/m2e/releases/ (currently unavailable)

OR

Update your m2e version to 1.1.0.20120530-0009, or 1.2.0.20120903-1050, or 1.3.0.20130129-0926, or 1.4.0.20130601-0317 )

Select File->New->Other->Maven Project->Click Next->Select
maven-archetype-quickstart from the catalog->Finish

OR

Select File->New->Other->Maven Project->Click Next->Select Create a simple project (skip archetype selection)-> Complete Artifact info-> Finish

Right Click on the project->Runs As->clean install (or any other goal mentioned above)

Первая строка на консоли будет

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.

P.S. Existing projects will produce the same error after updating the m2e version to 1.1.0.20120530-0009, 1.2.0.20120903-1050, 1.3.0.20130129-0926, 1.4.0.20130601-0317

Updates

EDIT

m2e support site:

The above question was posted as a bug in m2e support site and the answer from Igor Fedorenko was that

There are no immediate plans to suppress this message.

For viewing the above bug please refer to m2e official support site

EDIT 2

The above error indication is present also to m2e version 1.2.0.20120903-1050

EDIT 3

The above error indication is present also to m2e version 1.3.0.20130129-0926

EDIT 4

The above error indication is present also to m2e version 1.4.0.20130601-0317

EDIT 5

                              ***Reported FIXED***
The above error is reported as fixed for m2e version 1.5.0/Luna M3(Target Milestone). The version is not yet available for download. Luna M3 is scheduled for Nov. 15th. Latest dev build are available here More information about the m2e milestones you can find at the m2e main repository.

Ответы на вопрос(9)

Ваш ответ на вопрос