Repository: commons-rdf
Updated Branches:
  refs/heads/COMMONSRDF-47 a574473c0 -> 92998b329


Add ServiceLoader support in OSGi


Project: http://git-wip-us.apache.org/repos/asf/commons-rdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rdf/commit/27dbd9ed
Tree: http://git-wip-us.apache.org/repos/asf/commons-rdf/tree/27dbd9ed
Diff: http://git-wip-us.apache.org/repos/asf/commons-rdf/diff/27dbd9ed

Branch: refs/heads/COMMONSRDF-47
Commit: 27dbd9eda02550df85734c6198a0308cf5ca55e0
Parents: 0e1969a
Author: Aaron Coburn <[email protected]>
Authored: Wed Jan 11 10:11:38 2017 -0500
Committer: Aaron Coburn <[email protected]>
Committed: Wed Jan 11 13:21:36 2017 -0500

----------------------------------------------------------------------
 jena/pom.xml        | 19 +++++++++++++++----
 jsonld-java/pom.xml | 19 +++++++++++++++----
 rdf4j/pom.xml       |  7 +++----
 simple/pom.xml      | 19 +++++++++++++++----
 4 files changed, 48 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/27dbd9ed/jena/pom.xml
----------------------------------------------------------------------
diff --git a/jena/pom.xml b/jena/pom.xml
index d7a7c9e..c4d349e 100644
--- a/jena/pom.xml
+++ b/jena/pom.xml
@@ -33,10 +33,6 @@
        <name>Commons RDF impl: Jena</name>
        <description>Apache Jena implementation of Commons RDF API</description>
 
-  <properties>
-    
<commons.osgi.symbolicName>org.apache.commons.rdf.jena</commons.osgi.symbolicName>
-  </properties>
-
     <distributionManagement>
       <site>
         <id>commonsrdf-api-site</id>
@@ -97,4 +93,19 @@
                </dependency>
        </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            
<Bundle-SymbolicName>org.apache.commons.rdf.jena</Bundle-SymbolicName>
+            <Require-Capability>osgi.extender; 
filter:="(osgi.extender=osgi.serviceloader.registrar)";resolution:=optional</Require-Capability>
+            <Provide-Capability>osgi.serviceloader; 
osgi.serviceloader=org.apache.commons.rdf.api.RDF</Provide-Capability>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>

http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/27dbd9ed/jsonld-java/pom.xml
----------------------------------------------------------------------
diff --git a/jsonld-java/pom.xml b/jsonld-java/pom.xml
index f65fcc5..39300f7 100644
--- a/jsonld-java/pom.xml
+++ b/jsonld-java/pom.xml
@@ -33,10 +33,6 @@
     <name>Commons RDF impl: JSON-LD Java</name>
     <description>Parser integration of JSON-LD Java</description>
 
-    <properties>
-      
<commons.osgi.symbolicName>org.apache.commons.rdf.jsonldjava</commons.osgi.symbolicName>
-    </properties>
-
     <distributionManagement>
       <site>
         <id>commonsrdf-api-site</id>
@@ -70,4 +66,19 @@
         
     </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            
<Bundle-SymbolicName>org.apache.commons.rdf.jsonldjava</Bundle-SymbolicName>
+            <Require-Capability>osgi.extender; 
filter:="(osgi.extender=osgi.serviceloader.registrar)";resolution:=optional</Require-Capability>
+            <Provide-Capability>osgi.serviceloader; 
osgi.serviceloader=org.apache.commons.rdf.api.RDF</Provide-Capability>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>

http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/27dbd9ed/rdf4j/pom.xml
----------------------------------------------------------------------
diff --git a/rdf4j/pom.xml b/rdf4j/pom.xml
index 9e12625..5b1b6cc 100644
--- a/rdf4j/pom.xml
+++ b/rdf4j/pom.xml
@@ -33,10 +33,6 @@
        <name>Commons RDF impl: RDF4j</name>
        <description>Eclipse RDF4j implementation of Commons RDF 
API</description>
 
-  <properties>
-    
<commons.osgi.symbolicName>org.apache.commons.rdf.rdf4j</commons.osgi.symbolicName>
-  </properties>
-
        <build>
                <plugins>
                        <plugin>
@@ -50,6 +46,9 @@
 
                                                
<Export-Package>org.apache.commons.rdf.rdf4j</Export-Package>
                                                
<Private-Package>org.apache.commons.rdf.rdf4j.impl</Private-Package>
+                                               
<Bundle-SymbolicName>org.apache.commons.rdf.rdf4j</Bundle-SymbolicName>
+                                               
<Require-Capability>osgi.extender; 
filter:="(osgi.extender=osgi.serviceloader.registrar)";resolution:=optional</Require-Capability>
+                                               
<Provide-Capability>osgi.serviceloader; 
osgi.serviceloader=org.apache.commons.rdf.api.RDF</Provide-Capability>
                                        </instructions>
                                </configuration>
                        </plugin>

http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/27dbd9ed/simple/pom.xml
----------------------------------------------------------------------
diff --git a/simple/pom.xml b/simple/pom.xml
index b0f2005..e1dc104 100644
--- a/simple/pom.xml
+++ b/simple/pom.xml
@@ -33,10 +33,6 @@
     <name>Commons RDF impl: Simple</name>
     <description>Simple (if not naive) implementation of Commons RDF 
API</description>
 
-    <properties>
-      
<commons.osgi.symbolicName>org.apache.commons.rdf.simple</commons.osgi.symbolicName>
-    </properties>
-
     <distributionManagement>
       <site>
         <id>commonsrdf-api-site</id>
@@ -59,4 +55,19 @@
         </dependency>
     </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            
<Bundle-SymbolicName>org.apache.commons.rdf.simple</Bundle-SymbolicName>
+            <Require-Capability>osgi.extender; 
filter:="(osgi.extender=osgi.serviceloader.registrar)";resolution:=optional</Require-Capability>
+            <Provide-Capability>osgi.serviceloader; 
osgi.serviceloader=org.apache.commons.rdf.api.RDF</Provide-Capability>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>

Reply via email to