log4j2-slf4j-impl duplicate dependencies

log4j2-slf4j-impl duplicate dependencies

I have a Maven project where I would like to use log4j2 with slf4j. So I add this dependency:

I have a Maven project where I would like to use log4j2 with slf4j. So I add this dependency:

<dependency>
  <groupId>org.apache.logging.log4j</groupId>
  <artifactId>log4j-slf4j-impl</artifactId>
  <version>2.11.2</version>
</dependency>

It seems to work as far as I can tell. But my question is in regard to log4j-slf4j-impl's transitive dependencies.

Why does IntelliJ show that log4j-core brings in log4j-api, but then omits it due to being a duplicate (which I believe the below screenshot is saying)? And how can I prevent that?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Java Fundamentals: Learn Java for absolute beginners |Simpliv

Java Fundamentals: Learn Java for absolute beginners

Java Essentials : Learn Core Java From Basic to Advance

Learn Java Programming Using Practical Assignments. Start Building Back-end Web Applications Robust Test Automation Frameworks By End Of The Course. Learn More!

Fundamentos de Java: Aprende Java desde cero, sin misterios | Simpliv

Fundamentos de Java: Aprende Java desde cero, sin misterios