Reputation: 13594
The Maven Apache Felix OSGI bundle plugin is emitting the following warning:
Bundle-Activator x.x.x is being imported into the bundle rather than being contained inside it. This is usually a bundle packaging error
What does this warning mean? My implementation of BundleActivator
is specified with the <Bundle-Activator>
property.
Upvotes: 3
Views: 796
Reputation: 19606
The errors tells you that it can find your specified Activator class in a package that is specified as imported package. The class is not packaged into your bundle though which is a quite unusual case.
I think the problem could be the Private-Package definition. You define the com.joyent.manta.cosbench.config.* as private. While the package with the Activator is not defined a private or exported.
If a package is not private or exported then it will be not included in the jar. Instead only an Import-Package statement is created. So you sohuld define the package with the Activator either as private or as exported. Then it should work.
Upvotes: 4