Hi,
I'm not an OSGI expert but will try to answer your questions based on my own experiences. Since this is really an OSGI related question I would suggest to post your questions again on the Felix mailing list if my answers are not enough.

1) some projects might already annotate their jars with the maven- bundle-plugin - but how do I quickly find out if they have when I have a lot of external jars to look at?

AFAIK they is no way to figure this out, at least I don't know one. You have to check all dependencies. If you are only using parts of these frameworks, you can add the packages you need as private packages and the maven bundle plugin will add them to the bundle. You may encounter errors that one or more packages are missing even if they are not used. Such issues can be solved by adding them as dynamic imports. In that case they will only be imported when they are available (and used).

2) there are several bundle repositories (oscar, felix project, etc.), but they appear to be small, not-searchable and even undiscoverable via google searches...

Sorry, haven't used this yet.

3) I have read about "wrapper bundles" on this mailing list - but how do they look like?

The simplest way is to create a new maven project that has dependencies to the projects you want to be contained in your bundle. The add the packages you need to be available in OSGI as exported packages. Thus they will be added to the bundle and made public so that other bundles can use them.

4) it's possible with some maven config (I think assembly plugin) to "merge" multiple jars in a single one - is it possible to use the bundle plugin with that final jar then?

Should be possible by following instructions from 3.

Regards,
Alex

Reply via email to