This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new 2cd4759 Enable SPI/ServiceLoader under OSGi (#806)
2cd4759 is described below
commit 2cd4759a92cdd6fb5683fb8cbbc197ecc92ebb16
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 0f1697b..acb0e7c 100644
--- a/rt/rs/microprofile-client/pom.xml
+++ b/rt/rs/microprofile-client/pom.xml
@@ -185,6 +185,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>