Hello Jan, I have checked solution that i have proposed to you and it does not work... I have created an issue [1] and I will fix it.
If you want to add ranking property to service you have to write xml by hand or write own annotation using SPI. [1] https://issues.apache.org/jira/browse/ARIES-1641 2016-11-12 14:42 GMT+01:00 Dominik Przybysz <[email protected]>: > By the way, solution for not available ranking property of this annotation > is quite simple. Just publish your service with service.ranking property: > > @OsgiServiceProvider > @Properties({ > @Property(name = "service.ranking", value = "10") > }) > > 2016-11-09 17:58 GMT+01:00 Dominik Przybysz <[email protected]>: > >> I think we could consider upgrading when version 1.0.0 will be released. >> >> 2016-11-09 17:53 GMT+01:00 Fetyko, Jan <[email protected]>: >> >>> Thank you. >>> Still a bummer. >>> Any plans on upgrading ? >>> >>> jan >>> ________________________________________ >>> From: Dominik Przybysz <[email protected]> >>> Sent: Wednesday, November 9, 2016 10:48 >>> To: [email protected] >>> Subject: Re: blueprint-maven-plugin 1.4 and ranking >>> >>> Hi, >>> blueprint maven plugin currently uses version 0.8.0 of org.ops4j.pax.cdi. >>> There is not ranking property is this version: >>> https://github.com/ops4j/org.ops4j.pax.cdi/blob/cdi-0.8.0/pa >>> x-cdi-api/src/main/java/org/ops4j/pax/cdi/api/OsgiServiceProvider.java >>> >>> 2016-11-09 17:41 GMT+01:00 Fetyko, Jan <[email protected]>: >>> >>> > Hi, >>> > >>> > >>> > I'm trying to use >>> > >>> > >>> > <plugin> >>> > >>> > <groupId>org.apache.aries.blueprint</groupId> >>> > <artifactId>blueprint-maven-plugin</artifactId> >>> > <version>1.4.0</version> >>> > </plugin> >>> > >>> > with annotations: >>> > >>> > <dependency> >>> > <groupId>org.ops4j.pax.cdi</groupId> >>> > <artifactId>pax-cdi-api</artifactId> >>> > <version>1.0.0.RC2</version> >>> > <optional>true</optional> >>> > </dependency> >>> > >>> > My bean has an annotation: >>> > >>> > @OsgiServiceProvider(classes = com.my.Clazz.class, ranking = 10) >>> > >>> > The generated service however doesn't have the ranking added as >>> desired. >>> > >>> > I get >>> > >>> > <service ref="service" interface="com.my.Clazz"> >>> > >>> > Instead of (I think) expected >>> > >>> > <service ref="service" interface="com.my.Clazz" ranking="10"> >>> > >>> > Am I missing something ? >>> > Is this a bug ? >>> > >>> > Thank you got your help. >>> > >>> > Jan >>> > ________________________________ >>> > NOTICE: This message, and any attachments, are for the intended >>> > recipient(s) only, may contain information that is privileged, >>> confidential >>> > and/or proprietary and subject to important terms and conditions >>> available >>> > at E-Communication Disclaimer<http://www.cmegroup.com/tools- >>> > information/communications/e-communication-disclaimer.html>. If you >>> are >>> > not the intended recipient, please delete this message. CME Group and >>> its >>> > subsidiaries reserve the right to monitor all email communications that >>> > occur on CME Group information systems. >>> > >>> >>> >>> >>> -- >>> Pozdrawiam / Regards, >>> Dominik Przybysz >>> ________________________________ >>> >>> NOTICE: This message, and any attachments, are for the intended >>> recipient(s) only, may contain information that is privileged, confidential >>> and/or proprietary and subject to important terms and conditions available >>> at E-Communication Disclaimer<http://www.cmegroup >>> .com/tools-information/communications/e-communication-disclaimer.html>. >>> If you are not the intended recipient, please delete this message. CME >>> Group and its subsidiaries reserve the right to monitor all email >>> communications that occur on CME Group information systems. >>> >> >> >> >> -- >> Pozdrawiam / Regards, >> Dominik Przybysz >> > > > > -- > Pozdrawiam / Regards, > Dominik Przybysz > -- Pozdrawiam / Regards, Dominik Przybysz
