I want to add the following dependency to org.eclipse.persistence.core
:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
<scope>provided</scope>
</dependency>
The first my naive attempt was to add it to org.eclipse.persistence.core/pom.xml
. As expected it didn't work. After that following this https://stackoverflow.com/a/12410482/5057736 I added to org.eclipse.persistence.core/META-INF/MANIFEST.MF
to Require-Bundle setting:
Require-Bundle: (original), org.slf4j;bundle-version="1.7.21"
However, I get
Caused by: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.eclipse.persistence.core 2.6.3.qualifier to bundle org.slf4j 1.7.21.; No solution found because the problem is unsatisfiable.]
Could anyone give exact answer how to add this dependency to this org.eclipse.persistence.core
project because after two hours, reading a lot of posts I have no solution.