You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Cristiano <cv...@gmail.com> on 2018/07/03 19:28:08 UTC
is current version of Maven-Bundle-Plugin aware of
@ComponentPropertyType from DS 1.4?
hello,
I'm trying to play with DS 1.4 @ComponentPropertyType.
I've created an annotation:
> @ComponentPropertyType
> public @interface Config {
>
> /**
> * @return
> */
> String participant_id();
> }
then I tried to use it in activate method:
> @Activate
> @Config(participant_id = "category")
> @Override
> protected void activate(ComponentContext pInjectedComponentContext,
> Map<String, Object> pProperties,
> DsConfigParticipant pConfigProperties)
> {...}
but M-B-P gives me an manifest generation exception:
> [ERROR] Manifest
> br.com.c8tech.osgi:br.com.c8tech.osgi.core:jar:0.1.1-SNAPSHOT :
> Activate method for
> c8tech.osgi.core.internal.configuration.ComponentCategoryServiceProvider
> descriptor ()Ljava/lang/String; is not acceptable.
thanks,
Cristiano
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: is current version of Maven-Bundle-Plugin aware of
@ComponentPropertyType from DS 1.4?
Posted by Cristiano <cv...@gmail.com>.
Thanks both for the informations.
@Karl,
I have tried to override the bndlib dependency to 4.0.0 this way:
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>${version.maven-bundle}</version>
> <dependencies>
> <dependency>
> <groupId>biz.aQute.bnd</groupId>
> <artifactId>biz.aQute.bndlib</artifactId>
> <version>4.0.0</version>
> </dependency>
> </dependencies>
> </plugin>
> </plugins>
But the error have persisted.
I will wait to try with 4.0.1 when it were release, since I've
discovered that there are some issues with 4.0.0.
thanks all.
On 03/07/2018 17:38, Karl Pauls wrote:
> On Tue, Jul 3, 2018 at 10:24 PM Raymond Auge <ra...@liferay.com> wrote:
>> ComponentPropertyTypes only start to be recognized with bnd 4.0.0 and will
>> be fully with, as yet released, bnd 4.1.0.
>>
>> Since the latest maven-bundle-plugin 3.5.0 only uses bnd 3.5.0 it's not
>> handled (note the versions are kept in sync for convenience).
> Right, I guess we should try to at release a maven-bundle-plugin 4.0.0 soonish.
>
> (I believe you can override the bnd version that is going to be used
> by overriding the bndlib dependency of the maven-bundle-plugin but I
> might be wrong)
>
> regards,
>
> Karl
>
>> Sincerely,
>> - Ray
>>
>>
>> On Tue, Jul 3, 2018 at 3:28 PM, Cristiano <cv...@gmail.com> wrote:
>>
>>> hello,
>>>
>>> I'm trying to play with DS 1.4 @ComponentPropertyType.
>>>
>>> I've created an annotation:
>>>
>>> @ComponentPropertyType
>>>> public @interface Config {
>>>>
>>>> /**
>>>> * @return
>>>> */
>>>> String participant_id();
>>>> }
>>>>
>>> then I tried to use it in activate method:
>>>
>>> @Activate
>>>> @Config(participant_id = "category")
>>>> @Override
>>>> protected void activate(ComponentContext pInjectedComponentContext,
>>>> Map<String, Object> pProperties,
>>>> DsConfigParticipant pConfigProperties)
>>>> {...}
>>>>
>>> but M-B-P gives me an manifest generation exception:
>>>
>>> [ERROR] Manifest br.com.c8tech.osgi:br.com.c8te
>>>> ch.osgi.core:jar:0.1.1-SNAPSHOT : Activate method for
>>>> c8tech.osgi.core.internal.configuration.ComponentCategoryServiceProvider
>>>> descriptor ()Ljava/lang/String; is not acceptable.
>>>>
>>>
>>> thanks,
>>>
>>> Cristiano
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>
>> --
>> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>> (@rotty3000)
>> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
>> (@Liferay)
>> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: is current version of Maven-Bundle-Plugin aware of
@ComponentPropertyType from DS 1.4?
Posted by Karl Pauls <ka...@gmail.com>.
On Tue, Jul 3, 2018 at 10:24 PM Raymond Auge <ra...@liferay.com> wrote:
>
> ComponentPropertyTypes only start to be recognized with bnd 4.0.0 and will
> be fully with, as yet released, bnd 4.1.0.
>
> Since the latest maven-bundle-plugin 3.5.0 only uses bnd 3.5.0 it's not
> handled (note the versions are kept in sync for convenience).
Right, I guess we should try to at release a maven-bundle-plugin 4.0.0 soonish.
(I believe you can override the bnd version that is going to be used
by overriding the bndlib dependency of the maven-bundle-plugin but I
might be wrong)
regards,
Karl
> Sincerely,
> - Ray
>
>
> On Tue, Jul 3, 2018 at 3:28 PM, Cristiano <cv...@gmail.com> wrote:
>
> > hello,
> >
> > I'm trying to play with DS 1.4 @ComponentPropertyType.
> >
> > I've created an annotation:
> >
> > @ComponentPropertyType
> >> public @interface Config {
> >>
> >> /**
> >> * @return
> >> */
> >> String participant_id();
> >> }
> >>
> >
> > then I tried to use it in activate method:
> >
> > @Activate
> >> @Config(participant_id = "category")
> >> @Override
> >> protected void activate(ComponentContext pInjectedComponentContext,
> >> Map<String, Object> pProperties,
> >> DsConfigParticipant pConfigProperties)
> >> {...}
> >>
> >
> > but M-B-P gives me an manifest generation exception:
> >
> > [ERROR] Manifest br.com.c8tech.osgi:br.com.c8te
> >> ch.osgi.core:jar:0.1.1-SNAPSHOT : Activate method for
> >> c8tech.osgi.core.internal.configuration.ComponentCategoryServiceProvider
> >> descriptor ()Ljava/lang/String; is not acceptable.
> >>
> >
> >
> > thanks,
> >
> > Cristiano
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >
>
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
> (@rotty3000)
> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
> (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)
--
Karl Pauls
karlpauls@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: is current version of Maven-Bundle-Plugin aware of
@ComponentPropertyType from DS 1.4?
Posted by Raymond Auge <ra...@liferay.com>.
ComponentPropertyTypes only start to be recognized with bnd 4.0.0 and will
be fully with, as yet released, bnd 4.1.0.
Since the latest maven-bundle-plugin 3.5.0 only uses bnd 3.5.0 it's not
handled (note the versions are kept in sync for convenience).
Sincerely,
- Ray
On Tue, Jul 3, 2018 at 3:28 PM, Cristiano <cv...@gmail.com> wrote:
> hello,
>
> I'm trying to play with DS 1.4 @ComponentPropertyType.
>
> I've created an annotation:
>
> @ComponentPropertyType
>> public @interface Config {
>>
>> /**
>> * @return
>> */
>> String participant_id();
>> }
>>
>
> then I tried to use it in activate method:
>
> @Activate
>> @Config(participant_id = "category")
>> @Override
>> protected void activate(ComponentContext pInjectedComponentContext,
>> Map<String, Object> pProperties,
>> DsConfigParticipant pConfigProperties)
>> {...}
>>
>
> but M-B-P gives me an manifest generation exception:
>
> [ERROR] Manifest br.com.c8tech.osgi:br.com.c8te
>> ch.osgi.core:jar:0.1.1-SNAPSHOT : Activate method for
>> c8tech.osgi.core.internal.configuration.ComponentCategoryServiceProvider
>> descriptor ()Ljava/lang/String; is not acceptable.
>>
>
>
> thanks,
>
> Cristiano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
--
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
(@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
(@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)