Java 这是什么;进口于;maven bundle插件OSGI警告意味着什么?
Maven Apache Felix OSGI捆绑包插件发出以下警告: Bundle-Activator x.x.x is being imported into the bundle rather than being contained inside it. This is usually a bundle packaging error Bundle Activator x.x.x正在导入到Bundle中,而不是 包含在它里面。这通常是一个包打包错误Java 这是什么;进口于;maven bundle插件OSGI警告意味着什么?,java,maven,osgi,Java,Maven,Osgi,Maven Apache Felix OSGI捆绑包插件发出以下警告: Bundle-Activator x.x.x is being imported into the bundle rather than being contained inside it. This is usually a bundle packaging error Bundle Activator x.x.x正在导入到Bundle中,而不是 包含在它里面。这通常是一个包打包错误 这个警告是什么意思?我的Bun
这个警告是什么意思?我的
BundleActivator
实现是用
属性指定的。错误告诉您,它可以在指定为导入包的包中找到指定的激活器类。这个类没有打包到您的包中,这是一个非常不寻常的情况
我认为问题可能在于私有包的定义。将com.joyent.manta.cosbench.config.*定义为私有。而带有激活器的包未定义为私有或导出
如果包不是私有的或导出的,那么它将不包括在jar中。相反,只创建导入包语句。因此,您可以将带有激活器的包定义为私有或导出。然后它应该可以工作。项目是开源的,OSGI配置如下: