Replies: 1 comment 3 replies
-
It looks to me that micronaut-maven-plugin has a transitive dependency on slf4j-simple, version 1.7.36.
If you launch instead the AppCommand via the java command, the output is as you expected it to be:
Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hello Micronaut Community,
I'm reaching out for assistance with an issue in my Maven project that uses Micronaut 4 and Apache Beam. While this may not be a direct issue with Micronaut, I believe the expertise in this community could provide valuable insights.
I'm facing a logging issue where, despite including
logback-classic
in my dependencies, I encounter the standard SLF4J error about missingStaticLoggerBinder
. The problem persists even after excludingorg.slf4j
from various dependencies. Interestingly, removingbeam-sdks-java-io-google-cloud-platform
resolves the logging issue, indicating a potential conflict. slf4j-simple also appears in the classpath, which might be part of the problem.The project is accessible at https://github.com/j1cs/logback-error, and it can be run with
./mvnw mn:run -DskipTests=true
. The expected log output should be:Any guidance on resolving this SLF4J implementation conflict or suggestions to debug this further would be greatly appreciated.
More info: https://stackoverflow.com/questions/77903737/conflict-with-slf4j-implementations-in-maven-project-with-micronaut-and-apache-b
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions