Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
maven-bundle-plugin-1.2.0
-
None
Description
BND has a split-package directive used to combine packages with different/overlapping content. However, the 'merge-first' setting appears to behave like 'merge-last' which means you cannot use this to overlay local classes on top of inlined dependencies, because the local class would be overwritten by the one from the dependency (as it appears after it on the classpath, and is merged last).
The current workaround is to use Include-Resource to explicitly overwrite the affected class with the correct version.
I've raised this issue with Peter, and suggested a fix. This issue will target the next maintenance release after version 1.2.0 of the plugin.