Closed juergen-albert closed 4 years ago
Thanks for the proposal. I'm not very familiar with OSGi, so I have a few questions. Does this have any effect on "regular" uses of the library? On the compilation (will mvn clean install
work as usual?).
It seems the packaging should be bundle
: this is not one of the "core packaging values" (https://maven.apache.org/pom.html#packaging), could this be an issue?
A bundle is just a normal jar with some additional Metadata in its Manifest. As long as nobody writes OSGi specific code, nothing will change for anybody using the jar.
I've seen that some bundles have this bundle
packaging, but I've no idea why they do it. Thus nothing would change. Maven would work as before and only the Manifest would look different. If you decide at a certain point to manually add something to the Manifest, you would need to use the bnd-maven-plugin, that is doing the manifest generation then.
Seems okay. Please provide your pull request.
I hope to find the time for it over the weekend.
I'd like to provide a PR to add OSGi support. The only change would be an added plugin to your maven build, so it generates the necessary Manifest. Would you accept such a change?