AEM osgi引入第三方jar包,将jar包转化成bundle,再上传
在aem项目中由于引入了新的jar包,打包上传的时候报错Cannot be resolved
操作:
打开eclipse
- new project------>选择建立------>plug-in Development 下的plug-in from Existing Jar Archives ;
定义插件名称即project name,
2.然后按提示选择所需要的转化的jar文件, 点击完成
可以选择多个jar作为一个bundle,在添加external jar的时候选择多个jar即可。
3.可以再MANIFEST.MF文件中配置,需要的jar包,完成后将其直接export 为plugin即可获得bundle版
4.项目右键,export导出 选择deployable plug-ins and fragments
5.转换为bundle之后,再去Adobe Experience Manager Web Console Bundles中,选择Install/update 将转换之后的jar包上传,osgi中就成功引入