You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Aruna Karunarathna <su...@gmail.com> on 2016/03/14 13:54:00 UTC
Maven Bundle Plugin 3.0.1 not processing the annotations
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
Re: Maven Bundle Plugin 3.0.1 not processing the annotations
Posted by Aruna Karunarathna <su...@gmail.com>.
On Tue, Mar 15, 2016 at 12:04 PM, David Jencks <
david_jencks@yahoo.com.invalid> wrote:
> 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. I've already added an issue to the bndtools also [1]. Please
let me know if further information is required.
[1]. https://github.com/bndtools/bndtools/issues/1300
Regards,
Aruna
>
> thanks
> david jencks
>
>
> > On Mar 14, 2016, at 5:54 AM, Aruna Karunarathna <su...@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-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
--
*Aruna Sujith Karunarathna*
WSO2 Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: aruna@wso2.com | Web: www.wso2.com
Re: Maven Bundle Plugin 3.0.1 not processing the annotations
Posted by David Jencks <da...@yahoo.com.INVALID>.
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 <su...@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-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Maven Bundle Plugin 3.0.1 not processing the annotations
Posted by Aruna Karunarathna <su...@gmail.com>.
Hi sander,
Thank you for the reply, I am not using the maven-scr-plugin to process the
annotations.
I use only the maven-bundle-plugin with the ds-annotations.
<_dsannotations>*</_dsannotations>
Regards,
Aruna
On Mon, Mar 14, 2016 at 6:27 PM, Sander van Beek <sv...@tricode.nl> wrote:
> You may need to upgrade your scr-plugin version as well. I dont think all
> version of the bundle plugin and the scr plugin play well together.
>
> Regards,
> Sander
>
> 2016-03-14 13:54 GMT+01:00 Aruna Karunarathna <su...@gmail.com>:
>
> > 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
> >
>
>
>
> --
> Met vriendelijke groet,
> *Tricode Professional Services BV*
>
> *Sander van Beek*
> *Teamlead AEM / Teamlead Services*
> *E* svbeek@tricode.nl | *T* +31 318 559210 <+31%20318%20559210> | *M*
> +31
> 6 2724 9560 <+31628395109> (gewijzigd!) | *W* www.tricode.nl
> *S* linkedin <http://www.linkedin.com/company/tricode> | slideshare
> <http://www.slideshare.net/Tricode> | twitter <https://twitter.com/Tricode
> >
> | google+ <https://plus.google.com/+tricode> | facebook
> <https://www.facebook.com/Tricode> Tricode Professional Services BV; De
> Schutterij 12; 3905 PL Veenendaal, Netherlands
> <http://www.tricode.nl/aem> <http://www.tricode.nl/magnolia>
> <http://www.tricode.nl/ishop>
>
> --
> De inhoud van dit emailbericht is strikt vertrouwelijk en uitsluitend
> bestemd om gelezen te worden door de geadresseerde. Wij verzoeken u
> derhalve dit bericht direct aan de geadresseerde te overhandigen. Indien
> deze email per vergissing door u is ontvangen verzoeken wij u contact met
> ons op te nemen. Iedere openbaarmaking, verspreiding of vermenigvuldiging
> van dit emailbericht is strikt verboden. Iedere aansprakelijkheid is
> beperkt tot het bedrag dat in het desbetreffende geval onder onze
> beroepsaansprakelijkheidsverzekering wordt uitbetaald.
>
> The contents of this email is strictly personal and confidential and is
> only intended for the use by the adressee named above. We request you tot
> deliver this email immediately to the adressee. If you have received this
> email in error, please notify us. Publication, circulation, or
> multiplication of this email is strictly prohibited. Any liability shall be
> limited to the amount which is paid under the Firm's professional Liability
> Policy in the matter concerned.
>
Re: Maven Bundle Plugin 3.0.1 not processing the annotations
Posted by Sander van Beek <sv...@tricode.nl>.
You may need to upgrade your scr-plugin version as well. I dont think all
version of the bundle plugin and the scr plugin play well together.
Regards,
Sander
2016-03-14 13:54 GMT+01:00 Aruna Karunarathna <su...@gmail.com>:
> 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
>
--
Met vriendelijke groet,
*Tricode Professional Services BV*
*Sander van Beek*
*Teamlead AEM / Teamlead Services*
*E* svbeek@tricode.nl | *T* +31 318 559210 <+31%20318%20559210> | *M* +31
6 2724 9560 <+31628395109> (gewijzigd!) | *W* www.tricode.nl
*S* linkedin <http://www.linkedin.com/company/tricode> | slideshare
<http://www.slideshare.net/Tricode> | twitter <https://twitter.com/Tricode>
| google+ <https://plus.google.com/+tricode> | facebook
<https://www.facebook.com/Tricode> Tricode Professional Services BV; De
Schutterij 12; 3905 PL Veenendaal, Netherlands
<http://www.tricode.nl/aem> <http://www.tricode.nl/magnolia>
<http://www.tricode.nl/ishop>
--
De inhoud van dit emailbericht is strikt vertrouwelijk en uitsluitend
bestemd om gelezen te worden door de geadresseerde. Wij verzoeken u
derhalve dit bericht direct aan de geadresseerde te overhandigen. Indien
deze email per vergissing door u is ontvangen verzoeken wij u contact met
ons op te nemen. Iedere openbaarmaking, verspreiding of vermenigvuldiging
van dit emailbericht is strikt verboden. Iedere aansprakelijkheid is
beperkt tot het bedrag dat in het desbetreffende geval onder onze
beroepsaansprakelijkheidsverzekering wordt uitbetaald.
The contents of this email is strictly personal and confidential and is
only intended for the use by the adressee named above. We request you tot
deliver this email immediately to the adressee. If you have received this
email in error, please notify us. Publication, circulation, or
multiplication of this email is strictly prohibited. Any liability shall be
limited to the amount which is paid under the Firm's professional Liability
Policy in the matter concerned.