Introduced bundle packaging through maven-bundle-plugin.
java-app-lib solely depends on org.eclipse.paho/org.eclipse.paho.client.mqttv3 and org.json/json: both this artifacts are built as Java OSGi bundles.
I have added the maven-bundle-plugin to the POM and changed the packaging mode to "bundle": this way the generated JAR has all the needed manifest headers to be a proper OSGi bundle itself.
The usage of the JAR as a simple standalone Java library is totally unchanged, but now the same library can properly execute inside an OSGi runtime, like Apache Felix, Eclipse Equinox and so on.
Introduced bundle packaging through maven-bundle-plugin.
java-app-lib solely depends on org.eclipse.paho/org.eclipse.paho.client.mqttv3 and org.json/json: both this artifacts are built as Java OSGi bundles.
I have added the maven-bundle-plugin to the POM and changed the packaging mode to "bundle": this way the generated JAR has all the needed manifest headers to be a proper OSGi bundle itself.
The usage of the JAR as a simple standalone Java library is totally unchanged, but now the same library can properly execute inside an OSGi runtime, like Apache Felix, Eclipse Equinox and so on.