Maven has several dependency scopes, those however do not feat well with OSGi concept.
- OSGi dependencies are non transitive.
OK, it can be specified to exclude all transitive dependencies
- OSGi bundle can use some dependency, but do no Export its module. Something like "private dependency"
OK, just use maven provided
scope, that is not is not transitive.
- OSGi bundle can use some dependency, and export its all or part of its packages. Something like "shared dependency"
Well, that is tricky, as OSGi has more granular package-based Export. Just assume that all packages are Exported, or those not Exported does not matter. But this get messy with Maven optional dependencies 1, 2
Is there a way with Maven start speaking OSGi language and give scopes like
private
exported
/public
Is there just good example of using Maven for non trivial OSGi projects?