Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] [Issue] Embedded maven can't find SLF4J when there's a workspace dependency

Dear all,

I have a possible bug and I'd like to ask your help and opinion on it. T

Assumptions:
- The slf4j dependencies in the struts-module pom.xml are correct. I believe they are: line 44-55 declare the dependencies and line 77 and below tackle the commons-logging dependency.
- Running m2e 1.0.100.20110804-1717 on Indigo
- Running JDK: java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)


Steps:
1) Add zipped project in Eclipse. It is composed of parentA and two modules: module1 (jar) and struts-module (war)
2) Create a run configuration for the struts-module with goal jetty-run

Expected:
- Runs without problems

Actual:
First few lines of log say:
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.

Pinpointing the issue:
- If you remove the module1 dependency of struts-module (line 89 of the pom) the problem disappears.
- If I switch the run configuration to use "external maven - 3.0.3" instead of  "embedded", the problem doesn't appear.


I appreciate your feedback. If you could try out the testCase, it would be great.

Cheers,

Miguel Almeida


Attachment: testCase.zip
Description: Zip archive


Back to the top