Best way to convert existing java projects to osgi bundles

前端 未结 3 841
旧巷少年郎
旧巷少年郎 2021-02-14 22:44

We have lot of components out of which we want to modularize only a few to start with. Wondering what is the best way (in the context of my build environment) to create bundles

3条回答
  •  醉梦人生
    2021-02-14 23:09

    Use the maven bundle plugin. It will add the required import and export statements to you manifest based on scanning your code and the dependencies defined in the pom. This will require the least amount of effort to convert.

    I also recommend you use M2Eclipse instead of mvn eclipse:eclipse. It will keep your maven config and workspace in sync.

提交回复
热议问题