aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csie...@apache.org
Subject [05/11] aries-jax-rs-whiteboard git commit: New wrapper bundle for exporting JAXRS contract
Date Mon, 19 Jun 2017 15:34:09 GMT
New wrapper bundle for exporting JAXRS contract

shamelessly copied from Aries JPA trying to follow Tim Ward's advice.


Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/9826878c
Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/9826878c
Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/9826878c

Branch: refs/heads/master
Commit: 9826878c17b05d89287b6e39050836f0441f869f
Parents: fcc6e29
Author: Carlos Sierra <csierra@apache.org>
Authored: Mon Jun 19 15:59:16 2017 +0200
Committer: Carlos Sierra <csierra@apache.org>
Committed: Mon Jun 19 17:31:55 2017 +0200

----------------------------------------------------------------------
 javax-ws-rs/2_0/bnd.bnd | 38 +++++++++++++++++++++++++++
 javax-ws-rs/2_0/pom.xml | 61 ++++++++++++++++++++++++++++++++++++++++++++
 javax-ws-rs/pom.xml     | 42 ++++++++++++++++++++++++++++++
 pom.xml                 |  1 +
 4 files changed, 142 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/9826878c/javax-ws-rs/2_0/bnd.bnd
----------------------------------------------------------------------
diff --git a/javax-ws-rs/2_0/bnd.bnd b/javax-ws-rs/2_0/bnd.bnd
new file mode 100644
index 0000000..e3b960a
--- /dev/null
+++ b/javax-ws-rs/2_0/bnd.bnd
@@ -0,0 +1,38 @@
+# Double exports copied from Geronimo to ensure maximal 
+# compatibility
+
+Export-Package:\
+    javax.ws.rs;jaxrs="2.0";version="1.1",\
+    javax.ws.rs;jaxrs="2.0";version="2.0",\
+    javax.ws.rs.client;jaxrs="2.0";version="1.1",\
+	javax.ws.rs.client;jaxrs="2.0";version="2.0",\
+	javax.ws.rs.container;jaxrs="2.0";version="1.1",\
+	javax.ws.rs.container;jaxrs="2.0";version="2.0",\
+	javax.ws.rs.core;jaxrs="2.0";version="1.1",\
+	javax.ws.rs.core;jaxrs="2.0";version="2.0",\
+	javax.ws.rs.ext;jaxrs="2.0";version="1.1",\
+	javax.ws.rs.ext;jaxrs="2.0";version="2.0"
+
+    
+Provide-Capability:\
+    osgi.contract;osgi.contract="JavaJAXRS";version:List<Version>="2,1";\
+    uses:="javax.ws.rs,javax.ws.rs.client,javax.ws.rs.container,javax.ws.rs.core,javax.ws.rs.ext"
+
+# Make the API substitutable with unversioned imports and a contract requirement
+
+Import-Package:\
+    !org.apache.geronimo.*,\
+    javax.ws.rs;version=0.0.0,\
+    javax.ws.rs.client;version=0.0.0,\
+    javax.ws.rs.container;version=0.0.0,\
+    javax.ws.rs.core;version=0.0.0,\
+    javax.ws.rs.ext;version=0.0.0,\
+    *
+
+Require-Capability:\
+    osgi.contract;filter:="(&(osgi.contract=JavaJAXRS)(version=2)(!(version>=2.1)))"
+
+Private-Package:\
+	org.apache.geronimo.osgi.locator
+
+Bundle-SymbolicName: org.apache.aries.jax.rs.javax.ws.rs_2.0
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/9826878c/javax-ws-rs/2_0/pom.xml
----------------------------------------------------------------------
diff --git a/javax-ws-rs/2_0/pom.xml b/javax-ws-rs/2_0/pom.xml
new file mode 100644
index 0000000..f134a74
--- /dev/null
+++ b/javax-ws-rs/2_0/pom.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.aries.jax.rs</groupId>
+        <artifactId>org.apache.aries.jax.javax.ws.rs.parent</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>javax.ws.rs_2.0</artifactId>
+    <name>Apache Aries JAX-RS Specification 2.0 API</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <version>6.0.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <version>5.0.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jaxrs_2.0_spec</artifactId>
+            <version>1.0-alpha-1</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>biz.aQute.bnd</groupId>
+                <artifactId>bnd-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+</project>

http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/9826878c/javax-ws-rs/pom.xml
----------------------------------------------------------------------
diff --git a/javax-ws-rs/pom.xml b/javax-ws-rs/pom.xml
new file mode 100644
index 0000000..e06f63a
--- /dev/null
+++ b/javax-ws-rs/pom.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>org.apache.aries.jax.javax.ws.rs.parent</artifactId>
+    <name>Apache Aries JAX-RS Specification API</name>
+    <packaging>pom</packaging>
+	
+    <parent>
+        <groupId>org.apache.aries.jax.rs</groupId>	
+        <artifactId>org.apache.aries.jax.rs</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    
+    <properties>
+        <baseline.skip>true</baseline.skip>
+    </properties>
+
+    <modules>
+        <module>2_0</module>
+    </modules>
+</project>
+

http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/9826878c/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 2830b70..77c086c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,6 +143,7 @@
         <module>jax-rs.whiteboard</module>
         <module>jax-rs.itests</module>
         <module>jax-rs.example</module>
+        <module>javax-ws-rs</module>
     </modules>
     <dependencies>
         <dependency>


Mime
View raw message