maven-build-scanner icon indicating copy to clipboard operation
maven-build-scanner copied to clipboard

SLF4J compatibity issues - logs not streaming while mvn target execution

Open pt-bhavsar opened this issue 3 years ago • 2 comments

Hello,

This is an amazing tool. Here is something happened post installation and I believe it may have to do with different running versions of SLF4J.

Set up:

OS - MAC Maven Version - 3.8.6 Java Version - OpenJDK 11

For every mvn target execution, I don't see the log which I was able to see before. I see below:

SLF4J: No SLF4J providers were found. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details. SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier. SLF4J: Ignoring binding found at [jar:file:/opt/apache-maven-3.8.6/lib/maven-slf4j-provider-3.8.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.

I have tried to locate the culprit dependency, but I couldn't. Executing mvn dependency:tree also throw above warning.

Any insight in to fixing this? Thanks in advance

pt-bhavsar avatar Oct 03 '22 18:10 pt-bhavsar

That is a warning, not an error. It should work ok? I think we need to add SL4J to dependencies.

alexec avatar Oct 03 '22 19:10 alexec

Yeah it is working. No issues with build. I am not sure what got changed after the install. I lost the ability to see any meaningful mvn execution logs.

pt-bhavsar avatar Oct 04 '22 21:10 pt-bhavsar

removal of org.slf4j.slf4j-api and org.slf4j.slf4j-simple from pom.xml helped to get back the maven logs

gorohovart avatar Oct 31 '22 13:10 gorohovart

Stale issue message

github-actions[bot] avatar Dec 31 '22 01:12 github-actions[bot]