I’d say the 2.5.4 version was producing invalid syntax and the 3.0.1 version is following the spec. Cmpn 6 section 135.4 (p. 997) indicates the type must be indicated as List<String>. The effective:=active only goes on the Require-Capability header generated from a reference.
I wasn’t aware that properties could be specified in these headers. If you want them, please open a bug in bnd at github and I will discuss it with the experts and if there is no objection implement adding them. thanks david jencks > On Mar 14, 2016, at 5:54 AM, Aruna Karunarathna <sujithu...@gmail.com> wrote: > > Hi Devs, > > Recently I've upgraded from maven-bundle-plugin verssion from 2.5.4 to > 3.0.1 and I am experiencing the following behavior with the latest version. > > I have following section in Sample class > > @Component( > name = > "org.wso2.carbon.kernel.internal.deployment.DeploymentEngineListenerComponent", > immediate = true, > > > > *property = { > "capability-name=org.wso2.carbon.kernel.deployment.Deployer", > "component-key=carbon-deployment-service" }* > ) > > for the 2.5.4 version's generated MANIFEST.MF I could see the following in > Provide-Capability section. > > Provide-Capability: osgi.service;effective:=active;objectClass="org.wso2 > .carbon.kernel.startupresolver.RequiredCapabilityListener";capability-n > ame="org.wso2.carbon.sample.deployer.mgt.Deployer";component-key=carbon > -sample-deployment-engine > > And for the 3.0.1 version's generated MANIFEST.MF I could see the following > in Provide-Capability section. the property tag inside the Component > annotation is missing. and also the objectClass is changed to > objectClass:List<String>. > > Provide-Capability: osgi.service;objectClass:List<String>="org.wso2.carb > on.kernel.startupresolver.RequiredCapabilityListener" > > How do I make the properties inside the Component section available in > MANIFEST.MF in the 3.0.1 version? > > Regards, > Aruna --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org