This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 3.3.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.3.x-fixes by this push:
     new 6eb18ec  Enable SPI/ServiceLoader under OSGi (#806)
6eb18ec is described below

commit 6eb18ec03e6087722bbeb6fa71ac15a356e2dfdb
Author: brevilo <[email protected]>
AuthorDate: Thu Jul 22 01:47:02 2021 +0200

    Enable SPI/ServiceLoader under OSGi (#806)
    
    * Using OSGi's Service Loader Mediator (i.e. Apache Aries SPI Fly)
    * Made all requirements optional (minimally invasive change)
---
 rt/rs/microprofile-client/pom.xml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/rt/rs/microprofile-client/pom.xml 
b/rt/rs/microprofile-client/pom.xml
index 50a6c45..ffc786c 100644
--- a/rt/rs/microprofile-client/pom.xml
+++ b/rt/rs/microprofile-client/pom.xml
@@ -180,6 +180,25 @@
           <scope>test</scope>
         </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Require-Capability>osgi.extender; 
filter:="(osgi.extender=osgi.serviceloader.registrar)"; 
resolution:=optional</Require-Capability>
+                        <Provide-Capability>
+                            osgi.serviceloader; 
osgi.serviceloader=org.eclipse.microprofile.rest.client.spi.RestClientBuilderResolver;
+                            
register:=org.apache.cxf.microprofile.client.spi.CxfRestClientBuilderResolver
+                        </Provide-Capability>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
     <profiles>
         <profile>
             <id>setup.eclipse</id>

Reply via email to