jai-imageio / jai-imageio-jpeg2000

JPEG2000 support for Java Advanced Imaging Image I/O Tools API
Other
73 stars 56 forks source link

Missing OSGI requirement osgi.wiring.package=com.github.jaiimageio.impl.common #43

Open grrobinson opened 1 year ago

grrobinson commented 1 year ago

Hello,

When trying to start jai-imageio-jpeg2000 (v1.4.0) on an OSGI environment, I have the following message :

"org.osgi.framework.BundleException: Unable to resolve jai-imageio-jpeg2000 [242](R 242.0): missing requirement [jai-imageio-jpeg2000 [242](R 242.0)] osgi.wiring.package; (osgi.wiring.package=com.github.jaiimageio.impl.common) Unresolved requirements: [[jai-imageio-jpeg2000 [242](R 242.0)] osgi.wiring.package; (osgi.wiring.package=com.github.jaiimageio.impl.common)]"

This error comes from the fact that jai-imageio-jpeg2000 manifest contains the following Import-Package: com.github.jaiimageio.impl.common

Whereas jai-imageio-core does not export this package.

Here are the dependencies added in my OSGI subsystem :

<dependency>
    <groupId>com.github.jai-imageio</groupId>
    <artifactId>jai-imageio-core</artifactId>
     <version>1.4.0</version>
</dependency>
<dependency>
    <groupId>com.github.jai-imageio</groupId>
    <artifactId>jai-imageio-jpeg2000</artifactId>
    <version>1.4.0</version>
</dependency>

Could you please fix the issue so we can use jai-imageio-jpeg2000 with OSGI ? Maybe the use of com.github.jaiimageio.impl.common package is not expected ?

Thanks for your help and best regards. Gregori.