Hi,
now that Apache LDAP API 2.1.7 is out, I'm trying to bump up a few
dependencies, like the SLF4J 1.7.36 -> 2.0.13. It does not work well...
I get some OSGi error when running integ-osgi tests, with such message:
[caused by: Unable to resolve slf4j.api [43](R 43.0): missing
requirement [slf4j.api [43](R 43.0)] osgi.extender;
(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))
It seems it has something to do with the way the slf4j-api pom is buolt,
with more specifically those instructions:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Import-Package>org.slf4j.spi;version="${range;[===,+);${version_cleanup;${project.version}}}"</Import-Package>
<!-- Export the client/user package of slf4j-api version 1
to make the slf4j-api bundle in version 2 usable for bundles that only
import slf4j-1.x -->
<_exportcontents><![CDATA[
*,\
org.slf4j;version="${latest.1.version}",\
org.slf4j.helpers;version="${latest.1.version}"
]]></_exportcontents>
<Require-Capability><![CDATA[
osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))",
osgi.serviceloader;filter:="(osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider)";osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider"
]]></Require-Capability>
</instructions>
</configuration>
</plugin>
So basically, the Require-Capability refuse anything that is greater or
equal 2.0.
It seems related to this exchange:
https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/issues/682
I'm currently investigating, but if anyone has some clue, it would be
helpful.
Thanks!
--
*Emmanuel Lécharny* P. +33 (0)6 08 33 32 61
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]