Blame SOURCES/add-osgi-metadata-maven.patch

1c4375
diff --git a/mongo-java-driver-r3.2.1/bson/pom.xml b/mongo-java-driver-r3.2.1/bson/pom.xml
1c4375
index 4cc39e1..ee387fe 100644
1c4375
--- a/mongo-java-driver-r3.2.1/bson/pom.xml
1c4375
+++ b/mongo-java-driver-r3.2.1/bson/pom.xml
1c4375
@@ -2,12 +2,18 @@
1c4375
 
1c4375
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1c4375
   <modelVersion>4.0.0</modelVersion>
1c4375
+  <parent>
1c4375
+    <groupId>org.mongodb</groupId>
1c4375
+    <artifactId>aggregator-project</artifactId>
1c4375
+    <version>3.2.1</version>
1c4375
+  </parent>
1c4375
   <groupId>org.mongodb</groupId>
1c4375
   <artifactId>bson</artifactId>
1c4375
   <version>3.2.1</version>
1c4375
   <name>BSON</name>
1c4375
   <description>The BSON library</description>
1c4375
   <url>http://bsonspec.org</url>
1c4375
+  <packaging>bundle</packaging>
1c4375
   <licenses>
1c4375
     <license>
1c4375
       <name>The Apache Software License, Version 2.0</name>
1c4375
@@ -61,6 +67,24 @@
1c4375
           </execution>
1c4375
         </executions>
1c4375
       </plugin>
1c4375
+      <plugin>
1c4375
+        <groupId>org.apache.felix</groupId>
1c4375
+        <artifactId>maven-bundle-plugin</artifactId>
1c4375
+        <extensions>true</extensions>
1c4375
+        <configuration>
1c4375
+          <instructions>
1c4375
+            <Bundle-Vendor>Red Hat, Inc.</Bundle-Vendor>
1c4375
+            <Bundle-SymbolicName>org.mongodb.bson</Bundle-SymbolicName>
1c4375
+            <Export-Package>org.bson,org.bson.*</Export-Package>
1c4375
+            <Import-Package>
1c4375
+                    javax.xml.bind.*,
1c4375
+                    org.slf4j;resolution:=optional,
1c4375
+            </Import-Package>
1c4375
+            
1c4375
+            <_nouses>true</_nouses>
1c4375
+          </instructions>
1c4375
+        </configuration>
1c4375
+      </plugin>
1c4375
     </plugins>
1c4375
   </build>
1c4375
 </project>
1c4375
diff --git a/mongo-java-driver-r3.2.1/driver-async/pom.xml b/mongo-java-driver-r3.2.1/driver-async/pom.xml
1c4375
index b960af9..9478ee4 100644
1c4375
--- a/mongo-java-driver-r3.2.1/driver-async/pom.xml
1c4375
+++ b/mongo-java-driver-r3.2.1/driver-async/pom.xml
1c4375
@@ -2,12 +2,19 @@
1c4375
 
1c4375
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1c4375
   <modelVersion>4.0.0</modelVersion>
1c4375
+  <parent>
1c4375
+    <groupId>org.mongodb</groupId>
1c4375
+    <artifactId>aggregator-project</artifactId>
1c4375
+    <version>3.2.1</version>
1c4375
+  </parent>
1c4375
+
1c4375
   <groupId>org.mongodb</groupId>
1c4375
   <artifactId>mongodb-driver-async</artifactId>
1c4375
   <version>3.2.1</version>
1c4375
   <name>MongoDB Asynchronous Driver</name>
1c4375
   <description>The MongoDB Asynchronous Driver</description>
1c4375
   <url>http://www.mongodb.org</url>
1c4375
+  <packaging>bundle</packaging>
1c4375
   <licenses>
1c4375
     <license>
1c4375
       <name>The Apache Software License, Version 2.0</name>
1c4375
@@ -61,6 +68,33 @@
1c4375
           <target>1.7</target>
1c4375
         </configuration>
1c4375
       </plugin>
1c4375
+      <plugin>
1c4375
+        <groupId>org.apache.felix</groupId>
1c4375
+        <artifactId>maven-bundle-plugin</artifactId>
1c4375
+        <extensions>true</extensions>
1c4375
+        <configuration>
1c4375
+          <instructions>
1c4375
+            <Bundle-Vendor>Red Hat, Inc.</Bundle-Vendor>
1c4375
+            <Bundle-SymbolicName>org.mongodb.driver-async</Bundle-SymbolicName>
1c4375
+            <Export-Package>com.mongodb.*</Export-Package>
1c4375
+            <Import-Package>
1c4375
+              org.bson.*,
1c4375
+              javax.crypto.*,
1c4375
+              javax.crypto.spec.*,
1c4375
+              javax.management.*,
1c4375
+              javax.net.*,
1c4375
+              javax.net.ssl.*,
1c4375
+              javax.security.sasl.*,
1c4375
+              javax.security.auth.callback.*,
1c4375
+              org.ietf.jgss.*,
1c4375
+              io.netty.*;resolution:=optional,
1c4375
+              org.slf4j;resolution:=optional,
1c4375
+            </Import-Package>
1c4375
+            
1c4375
+            <_nouses>true</_nouses>
1c4375
+          </instructions>
1c4375
+        </configuration>
1c4375
+      </plugin>
1c4375
     </plugins>
1c4375
   </build>
1c4375
 </project>
1c4375
diff --git a/mongo-java-driver-r3.2.1/driver-core/pom.xml b/mongo-java-driver-r3.2.1/driver-core/pom.xml
1c4375
index 271265d..3f5826b 100644
1c4375
--- a/mongo-java-driver-r3.2.1/driver-core/pom.xml
1c4375
+++ b/mongo-java-driver-r3.2.1/driver-core/pom.xml
1c4375
@@ -2,6 +2,11 @@
1c4375
 
1c4375
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1c4375
   <modelVersion>4.0.0</modelVersion>
1c4375
+  <parent>
1c4375
+    <groupId>org.mongodb</groupId>
1c4375
+    <artifactId>aggregator-project</artifactId>
1c4375
+    <version>3.2.1</version>
1c4375
+  </parent>
1c4375
   <groupId>org.mongodb</groupId>
1c4375
   <artifactId>mongodb-driver-core</artifactId>
1c4375
   <version>3.2.1</version>
1c4375
@@ -9,6 +14,7 @@
1c4375
   <description>The Java operations layer for the MongoDB Java Driver. Third parties can ' +
1c4375
                                                    'wrap this layer to provide custom higher-level APIs</description>
1c4375
   <url>http://www.mongodb.org</url>
1c4375
+  <packaging>bundle</packaging>
1c4375
   <licenses>
1c4375
     <license>
1c4375
       <name>The Apache Software License, Version 2.0</name>
1c4375
@@ -82,6 +88,33 @@
1c4375
           <target>1.7</target>
1c4375
         </configuration>
1c4375
       </plugin>
1c4375
+      <plugin>
1c4375
+        <groupId>org.apache.felix</groupId>
1c4375
+        <artifactId>maven-bundle-plugin</artifactId>
1c4375
+        <extensions>true</extensions>
1c4375
+        <configuration>
1c4375
+          <instructions>
1c4375
+            <Bundle-Vendor>Red Hat, Inc.</Bundle-Vendor>
1c4375
+            <Bundle-SymbolicName>org.mongodb.driver-core</Bundle-SymbolicName>
1c4375
+            <Export-Package>com.mongodb.*</Export-Package>
1c4375
+            <Import-Package>
1c4375
+              org.bson.*,
1c4375
+              javax.crypto.*,
1c4375
+              javax.crypto.spec.*,
1c4375
+              javax.management.*,
1c4375
+              javax.net.*,
1c4375
+              javax.net.ssl.*,
1c4375
+              javax.security.sasl.*,
1c4375
+              javax.security.auth.callback.*,
1c4375
+              org.ietf.jgss.*,
1c4375
+              io.netty.*;resolution:=optional,
1c4375
+              org.slf4j;resolution:=optional,
1c4375
+            </Import-Package>
1c4375
+            
1c4375
+            <_nouses>true</_nouses>
1c4375
+          </instructions>
1c4375
+        </configuration>
1c4375
+      </plugin>
1c4375
     </plugins>
1c4375
   </build>
1c4375
 </project>
1c4375
diff --git a/mongo-java-driver-r3.2.1/driver/pom.xml b/mongo-java-driver-r3.2.1/driver/pom.xml
1c4375
index 27dde69..7793c7a 100644
1c4375
--- a/mongo-java-driver-r3.2.1/driver/pom.xml
1c4375
+++ b/mongo-java-driver-r3.2.1/driver/pom.xml
1c4375
@@ -2,6 +2,11 @@
1c4375
 
1c4375
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1c4375
   <modelVersion>4.0.0</modelVersion>
1c4375
+  <parent>
1c4375
+    <groupId>org.mongodb</groupId>
1c4375
+    <artifactId>aggregator-project</artifactId>
1c4375
+    <version>3.2.1</version>
1c4375
+  </parent>
1c4375
   <groupId>org.mongodb</groupId>
1c4375
   <artifactId>mongodb-driver</artifactId>
1c4375
   <version>3.2.1</version>
1c4375
diff --git a/mongo-java-driver-r3.2.1/mongo-java-driver/pom.xml b/mongo-java-driver-r3.2.1/mongo-java-driver/pom.xml
1c4375
index 844fcd8..342218e 100644
1c4375
--- a/mongo-java-driver-r3.2.1/mongo-java-driver/pom.xml
1c4375
+++ b/mongo-java-driver-r3.2.1/mongo-java-driver/pom.xml
1c4375
@@ -2,12 +2,18 @@
1c4375
 
1c4375
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1c4375
   <modelVersion>4.0.0</modelVersion>
1c4375
+  <parent>
1c4375
+    <groupId>org.mongodb</groupId>
1c4375
+    <artifactId>aggregator-project</artifactId>
1c4375
+    <version>3.2.1</version>
1c4375
+  </parent>
1c4375
   <groupId>org.mongodb</groupId>
1c4375
   <artifactId>mongo-java-driver</artifactId>
1c4375
   <version>3.2.1</version>
1c4375
   <name>MongoDB Java Driver</name>
1c4375
   <description>The MongoDB Java Driver uber-artifact, containing mongodb-driver, mongodb-driver-core, and bson</description>
1c4375
   <url>http://www.mongodb.org</url>
1c4375
+  <packaging>bundle</packaging>
1c4375
   <licenses>
1c4375
     <license>
1c4375
       <name>The Apache Software License, Version 2.0</name>
1c4375
@@ -91,6 +97,34 @@
1c4375
           </artifactSet>
1c4375
         </configuration>
1c4375
       </plugin>
1c4375
+      <plugin>
1c4375
+        <groupId>org.apache.felix</groupId>
1c4375
+        <artifactId>maven-bundle-plugin</artifactId>
1c4375
+        <extensions>true</extensions>
1c4375
+        <configuration>
1c4375
+          <instructions>
1c4375
+            <Bundle-Vendor>Red Hat, Inc.</Bundle-Vendor>
1c4375
+            <Bundle-SymbolicName>org.mongodb.mongo-java-driver</Bundle-SymbolicName>
1c4375
+            <Export-Package>
1c4375
+              com.mongodb.*,
1c4375
+              org.bson.*,
1c4375
+            </Export-Package>
1c4375
+            <Import-Package>
1c4375
+              javax.xml.bind.*,
1c4375
+              javax.crypto.*,
1c4375
+              javax.management.*,
1c4375
+              javax.net.*,
1c4375
+              javax.security.sasl.*,
1c4375
+              javax.security.auth.callback.*,
1c4375
+              org.ietf.jgss.*,
1c4375
+              io.netty.*;resolution:=optional,
1c4375
+              org.slf4j;resolution:=optional,
1c4375
+            </Import-Package>
1c4375
+            
1c4375
+            <_nouses>true</_nouses>
1c4375
+          </instructions>
1c4375
+        </configuration>
1c4375
+      </plugin>
1c4375
     </plugins>
1c4375
   </build>
1c4375
 </project>
1c4375
diff --git a/mongo-java-driver-r3.2.1/pom.xml b/mongo-java-driver-r3.2.1/pom.xml
1c4375
index 64f1e56..eb97e32 100644
1c4375
--- a/mongo-java-driver-r3.2.1/pom.xml
1c4375
+++ b/mongo-java-driver-r3.2.1/pom.xml
1c4375
@@ -13,4 +13,15 @@
1c4375
     <module>driver-async</module>
1c4375
     <module>driver</module>
1c4375
   </modules>
1c4375
+  <build>
1c4375
+    <pluginManagement>
1c4375
+      <plugins>
1c4375
+        <plugin>
1c4375
+          <groupId>org.apache.felix</groupId>
1c4375
+          <artifactId>maven-bundle-plugin</artifactId>
1c4375
+          <version>1.4.0</version>
1c4375
+        </plugin>
1c4375
+      </plugins>
1c4375
+    </pluginManagement>
1c4375
+  </build>
1c4375
 </project>