OSGi-ified Apocal Commons Logging?

I need an OSGi-ified version of Apache POI, but could not find it, so I built it using BND. BND claims that the Apache POI needs to register Apache Commons. Therefore, I searched for the OSGi-ified version, but did not find it. So I built one using BND. BND claims that Apache Commons logging requires "Apache Excalibur" and "Apache Avalon", which apparently were resignations of Apache projects that were somehow related to logging. I assume that I cannot find OSGi-ified versions.

Do I really need these things? Or is it just because Apache Commons optionally supports Excalibur and Avalon, whatever they are? In this case, I could just tell the BND to consider being optional, and not care that I don't have them?

Alternatively, does anyone know the β€œreal” version of OSGi Commons Logging, which already deals with these (and other) problems in a more thoughtful way than my β€œlet BND figure out” method?

Thanks in advance.

Edit: To be clear, BND does not actually require Commons Logging to need Avalon and Excalibur; rather, he claims that he needs the org.apache.avalon.framework.logger and org.apache.log packages. These packages seem to me to be from Avalon and Excalibur, repeatedly.

+4
source share
2 answers

There is a version of OSGi-ified Commons Logging available in Eclipse Orbit . Dependencies on Excalibur and Avalon should be optional and not required at run time. I know that someone is also working on the OSGi-ifying POI, but there are some problems with our build that causes circular dependencies.

+4
source

You can try using pax protocols. It provides OSGi ready-made implementations for all popular registration frameworks. The easiest way to verify this is with Apache Karaf. It comes preloaded with the pax protocol.

See http://karaf.apache.org/

+2
source

Source: https://habr.com/ru/post/1432824/


All Articles