<div dir="ltr">Hi Ceki,<div><br></div><div>thanks a lot, I have read my own previous message and actually it does not make much sense... even to myself :)</div><div><br></div><div>I was confused, the manifest is absolutely correct, sorry.</div><div><br></div><div>Kind regards,</div><div><br></div><div><br></div><div>Roberto</div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-26 11:20 GMT+01:00 Ceki Gulcu <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Ho Roberto,<br>
<br>
The contents of slf4j-api/src/main/resources/META-INF/MANIFEST.MF<br>
<br>
Export-Package: org.slf4j;version=${parsedVersion.osgiVersion},<br>
org.slf4j.spi;version=${parsedVersion.osgiVersion},<br>
org.slf4j.helpers;version=${parsedVersion.osgiVersion},<br>
org.slf4j.event;version=${parsedVersion.osgiVersion}<br>
Import-Package: org.slf4j.impl;version=${slf4j.api.minimum.compatible.version} is the current version.<br>
<br>
The org.slf4j.impl;version could be any version in the 1.6.x and 1.7.x series.<br>
<br>
--<br>
Ceki<br>
<br>
where ${slf4j.api.minimum.compatible.version} is 1.6.0 and<div><div class="h5"><br>
<br>
On 2/26/2016 10:44, Roberto Pierpaoli wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br>
<br>
I'm using slf4j-api v.1.7.16 in one of my OSGi-based projects: BndTools<br>
is an Eclipse Plugin that I use for rapid testing (it handles many OSGi<br>
implementations, really easying the procedure of deploying the code into<br>
them and launching the runtime).<br>
<br>
Before launching the runtime, BndTools performs an auto-resolve routine<br>
to pre-populate the environment with all the needed JARs: in my case it<br>
resolves slf4j-api v.1.7.16 as requested by my code, but **also<br>
slf4j-api v.1.6.2 as requested by slf4j-api v.1.7.16 itself**...<br>
<br>
When running the runtime, an error occurs, since 2 JARs are found<br>
exposing the same packages and this is ambiguous inside an OSGi environment.<br>
<br>
Exploring the JARs I have noticed that slf4j-api v1.7.16 declares an<br>
explicit dependency its manifest towards the following package:<br>
<br>
Import-Package: org.slf4j.impl;version=1.6.0<br>
<br>
is this normal?<br>
<br>
May be this the reason why also slf4j-api v.1.6.2 is resolved by<br>
BndTools and thus both the JARs are included?<br>
<br>
Thanks for any contribution,<br>
<br>
<br>
Roberto<br>
<br>
<br></div></div>
_______________________________________________<br>
slf4j-user mailing list<br>
<a href="mailto:slf4j-user@qos.ch" target="_blank">slf4j-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/slf4j-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/slf4j-user</a><br>
<br>
</blockquote>
_______________________________________________<br>
slf4j-user mailing list<br>
<a href="mailto:slf4j-user@qos.ch" target="_blank">slf4j-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/slf4j-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/slf4j-user</a></blockquote></div>
</div></div>