Some updates to the jax-rs 2.1 bundle to see if it can be made usable for aries
diff --git a/jaxrs-api-2.1/pom.xml b/jaxrs-api-2.1/pom.xml
index 65ad2c4..99aeac9 100644
--- a/jaxrs-api-2.1/pom.xml
+++ b/jaxrs-api-2.1/pom.xml
@@ -49,12 +49,32 @@
<build>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>${project.build.directory}/sources</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
+ <version>3.4.0</version>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Bundle-Description>${project.description}</Bundle-Description>
+ <Bundle-Description>${project.name}</Bundle-Description>
+ <Bundle-License>CDDL-1.1;link="https://spdx.org/licenses/CDDL-1.1.html"</Bundle-License>
<Export-Package>
javax.ws.rs*;version=2.1.0;-split-package:=merge-first,
javax.ws.rs;version=2.1.0,
@@ -74,6 +94,7 @@
<Bundle-Activator>org.apache.servicemix.specs.locator.Activator</Bundle-Activator>
<Implementation-Title>Apache ServiceMix</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
+ <Provide-Capability>osgi.contract;osgi.contract=JavaJAXRS;uses:="javax.ws.rs,javax.ws.rs.client,javax.ws.rs.container,javax.ws.rs.core,javax.ws.rs.ext,javax.ws.rs.sse";version:List<Version>="2.1,2,1.1"</Provide-Capability>
</instructions>
<unpackBundle>true</unpackBundle>
</configuration>