Skip to content

Instantly share code, notes, and snippets.

@akollegger
Created April 18, 2010 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akollegger/370449 to your computer and use it in GitHub Desktop.
Save akollegger/370449 to your computer and use it in GitHub Desktop.
diff --git a/pom.xml b/pom.xml
index d699b0a..b76e082 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
<groupId>com.osinka</groupId>
<artifactId>mongo-scala-driver</artifactId>
<version>0.7.4</version>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
<name>MongoDB driver for Scala</name>
<inceptionYear>2009</inceptionYear>
@@ -201,6 +201,20 @@
</properties>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.3</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
+ <Bundle-Version>${pom.version}</Bundle-Version>
+ <Export-Package>!${bundle.namespace}.internal.*,${bundle.namespace}.*;version="${pom.version}"</Export-Package>
+ <Private-Package>${bundle.namespace}.internal.*</Private-Package>
+ </instructions>
+ </configuration>
+ </plugin>
</plugins>
</build>
@@ -263,6 +277,10 @@
<scala.version>2.8.0.Beta1</scala.version>
<jdk.version>1.6</jdk.version>
<java.src.version>1.5</java.src.version>
+
+ <!-- OSGi Bundle Properties -->
+ <bundle.symbolicName>com.osinka.mongodb</bundle.symbolicName>
+ <bundle.namespace>com.osinka.mongodb</bundle.namespace>
</properties>
<prerequisites>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment