I'm struggling to find a reasonable approach to manage a big enough code base, more specifically, how to manage import
statements for any given bundle.
The problem is, if you have a bundle with has his own dependencies to other 3rd party libraries, and if you choose to embed some of them (in my case I do), the maven-bundle-plugin
will also scan packages from those libraries and add them as imported
by your bundle (which is completely counter-intuitive).
A work around my be to get rid of the wildcard *
in your import
statements, but this means that now you have to maintain the list of imports by hand.
So how do you guys manage this problem ? Am I missing something here ?
Any advice will be greatly appreciated