-
1. Re: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log
ahhughes Dec 5, 2011 6:35 PM (in response to hpgisler)I obviously don't have visibility of your project configuration, but my guess is that a pre 1.6.2 slf4j dependency other than the ones you listed in your pom above is being inherited.
Check your maven effective pom to see a complete list of dependencies, find the ones you need to modify and add them to your pom's <dependencyManagement> element. Good luck!
-
2. Re: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log
hpgisler Dec 6, 2011 3:44 AM (in response to hpgisler)Thank you. Thanks to your input, I've solved the problem.
There was also a transitive dependency on slf4j-ext (1.5.10) in my test scope from some unknown package.
After also adding slf4-ext (1.6.2) to my dependency management section, the problem went away.
Still one (off-topic) question tough: (disclaimer: I am a maven novice)
How would I find out the package responsible to depend on slf-ext in my test scope? (just to understand better).Up till now, I've (via try and error) manually excluded some of my direct dependencies and checked, whether a certain transitive dependency went away.
But surely, this is hardly to right way to do it? -
3. Re: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log
assen Dec 12, 2011 2:18 AM (in response to hpgisler)Hi,
If you use IntelliJ IDEA the you can use
Show Dependencies Graph
-feature of the maven plugin to see all dependencies in your project (also the transitive) and take various actions like exclusion, change of scope etc.
This plugin is very helpful for big projects and I love it.
There exists also similar plugin for Eclipse. -
4. Re: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log
wolfch May 3, 2013 10:37 PM (in response to hpgisler)mvn dependeny:tree
It will output dependency tree, even showing overrides in dependencyManagment