eclipse-paho / eclipse-paho/paho.mqtt.java
OSGi - org.eclipse.paho.mqttv5.client does not export sub packages
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 919
- PR merge metrics
- No merged PRs in 30d
Description
Please fill out the form below before submitting, thank you!
- [x] Bug exists Release Version 1.2.5 ( Master Branch)
We are having a new paho mqtt v5 camel component and for our OSGi support then we noticed that the bundle JAR only exports
Export-Package: org.eclipse.paho.mqttv5.client;version="1.2.5"
As we use the memory persistence in the persist sub package then OSGi imports fails.
missing requirement [org.apache.camel.camel-paho-mqtt5/3.8.0.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.eclipse.paho.mqttv5.client.persist)"]]
I wonder if you can make the bundle JAR export its sub packages - or if they are really not for end users, then mark them as private packages in the bundle JAR manifest, then its more obvious to know.
Contributor guide
Research direction
Inspect how the 1.2.5 bundle JAR builds its OSGi manifest and exports org.eclipse.paho.mqttv5.client. Reproduce the missing org.eclipse.paho.mqttv5.client.persist import in an OSGi setup; done when the intended subpackages are exported or explicitly marked private in the manifest.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100