CLEREZZA-973: creating OSGi bundles
diff --git a/api/pom.xml b/api/pom.xml
index 0e829f3..494ca87 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -31,6 +31,7 @@
<groupId>org.apache.clerezza.commons-rdf</groupId>
<artifactId>commons-rdf-api</artifactId>
<version>0.1-SNAPSHOT</version>
+ <packaging>bundle</packaging>
<name>Clerezza Commons RDF API</name>
<description>
Apache Commons RDF provides an API modelling the RDF data model as defined by
diff --git a/impl.sparql/pom.xml b/impl.sparql/pom.xml
index 17cd16a..d1b4fdc 100644
--- a/impl.sparql/pom.xml
+++ b/impl.sparql/pom.xml
@@ -13,7 +13,7 @@
<groupId>org.apache.clerezza.commons-rdf</groupId>
<artifactId>commons-rdf-impl-sparql</artifactId>
<version>1.0.0-SNAPSHOT</version>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
<name>Clerezza Commons RDF SPARQL backed implementation.</name>
<description>An implementation of the rdf commons API backed by a sparql
endpoint. STATUS: Current code only supports reading
diff --git a/impl.utils/pom.xml b/impl.utils/pom.xml
index 6fb61e3..5a15662 100644
--- a/impl.utils/pom.xml
+++ b/impl.utils/pom.xml
@@ -26,11 +26,12 @@
<artifactId>clerezza</artifactId>
<version>0.5</version>
<relativePath />
- </parent>
+ </parent>
<groupId>org.apache.clerezza.commons-rdf</groupId>
<artifactId>commons-rdf-impl-utils</artifactId>
<version>0.1-SNAPSHOT</version>
+ <packaging>bundle</packaging>
<name>Clerezza Commons RDF Implementation Utils</name>
<description>
Apache Commons RDF provides an API modelling the RDF data model as defined by
@@ -50,6 +51,21 @@
<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/clerezza-rdf-core.git</developerConnection>
<url>https://git-wip-us.apache.org/repos/asf/clerezza-rdf-core.git</url>
</scm>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Export-Package>org.apache.commons.rdf.*</Export-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
<dependencies>