An update on this thread:
1. I have created a github issue for TwelveMonkeys for making
TwelveMonkeys be an OSGi bundle
https://github.com/haraldk/TwelveMonkeys/issues/794
2. I have created a fork of TwelveMonkeys
https://github.com/steinarb/TwelveMonkeys
3. I have created a branch on my fork of TwelveMonkeys, where I have
https://github.com/steinarb/TwelveMonkeys/tree/make-jar-files-be-osgi-bundles
a. Added an maven-bundle-plugin config in the <pluginManagement>
https://github.com/steinarb/TwelveMonkeys/blob/aef177031eaf2d4193c11628a2acb33e00a055c9/pom.xml#L221
b. Added Import-Package and Export-Package headers to the MANIFEST.MF
of all jar files, and made the jar files into OSGi bundles
https://github.com/steinarb/TwelveMonkeys/commit/aef177031eaf2d4193c11628a2acb33e00a055c9
c. Added <Provide-Capability> and <Require-Capability> to one of the
TwelveMonkeys imageio plugins
https://github.com/steinarb/TwelveMonkeys/blob/10cd149662e2ec4a051202bf9d6370d81ca9c8c8/imageio/imageio-jpeg/pom.xml#L38
4. I have created a test application that has a rudimentary react GUI
that lets you updload a JPEG URL and that image is downloaded into
the backend and the comment, if any, is extracted using imageio
https://github.com/steinarb/twelvemonkeys-karaf-demo
5. Instructions for how to build and run twelvemonkeys-karaf-demo in
the README
6. I have created a branch on that application where I'm trying to use
SPI from Aries SPI-fly to inject twelvemonkeys imageio into imageio
(so far without luck)
https://github.com/steinarb/twelvemonkeys-karaf-demo/tree/use-twelvemonkeys-imageio