Bugzilla – Bug 919
Add OSGi headers to the htmlparser Jar
Last modified: 2012-06-08 16:34:12 CEST
It would be much useful for OSGi users if htmlparser was natively distributed as an OSGi bundle. This minimally requires adding some unobtrusive headers to the jar's manifest. Some tools can help doing that automatically at build time (e.g. "bnd", a tool developed by OSGi's former editor Peter Kriens, available both for Maven or Ant). I volunteer to help if needed and if this feature request is accepted (I know OSGi reasonably well, although I'm not an OSGi "guru").
Created attachment 217 [details] Patch to the POM file Attached is a patch for the POM file found in htmlparser sources. The modified POM use the packaging type "bundle" along with maven-bundle-plugin to package the project as an OSGi bundle.
I have no clue what this does, but I trust it makes sense to Maven users. Landed: https://hg.mozilla.org/projects/htmlparser/rev/4a966cd2680d Thank you.
Although the patch went in the POM used to build 1.4, it seems the maven-bundle-plugin is not applied and the resulting Jar does not have OSGi headers. This may be linked with the workarounds performed as described in bug #921.
Re-closing. The POM in tag RELEASE_1_4 and deployed to Maven Central does succeed in adding OSGi headers. The released jar is OK. Please forget previous comment #3, probably due to uncommitted local changes in my setup.