Permalink
Browse files

Fix for issue #19 Add OSGi meta-data to the jar

  • Loading branch information...
1 parent cd17c11 commit c875916c8a8a5c595f00416f3e7447212af9d758 @chirino chirino committed Feb 6, 2013
Showing with 37 additions and 14 deletions.
  1. +37 −14 leveldbjni-all/pom.xml
@@ -42,6 +42,7 @@
<groupId>org.fusesource.leveldbjni</groupId>
<artifactId>leveldbjni-all</artifactId>
<version>99-master-SNAPSHOT</version>
+ <packaging>bundle</packaging>
<name>${project.artifactId}</name>
<description>An uber jar which contains all the leveldbjni platform libraries and dependencies</description>
@@ -50,44 +51,66 @@
<dependency>
<groupId>org.fusesource.leveldbjni</groupId>
<artifactId>leveldbjni-osx</artifactId>
- <version>99-master-SNAPSHOT</version>
+ <version>1.5</version>
</dependency>
<dependency>
<groupId>org.fusesource.leveldbjni</groupId>
<artifactId>leveldbjni-linux32</artifactId>
- <version>99-master-SNAPSHOT</version>
+ <version>1.5</version>
</dependency>
<dependency>
<groupId>org.fusesource.leveldbjni</groupId>
<artifactId>leveldbjni-linux64</artifactId>
- <version>99-master-SNAPSHOT</version>
+ <version>1.5</version>
</dependency>
<dependency>
<groupId>org.fusesource.leveldbjni</groupId>
<artifactId>leveldbjni-win32</artifactId>
- <version>99-master-SNAPSHOT</version>
+ <version>1.5</version>
</dependency>
<dependency>
<groupId>org.fusesource.leveldbjni</groupId>
<artifactId>leveldbjni-win64</artifactId>
- <version>99-master-SNAPSHOT</version>
+ <version>1.5</version>
</dependency>
</dependencies>
<build>
<plugins>
+
<plugin>
- <groupId>org.fusesource.mvnplugins</groupId>
- <artifactId>maven-uberize-plugin</artifactId>
- <version>1.15</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals><goal>uberize</goal></goals>
- </execution>
- </executions>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.3.7</version>
+ <extensions>true</extensions>
+ <inherited>true</inherited>
+ <configuration>
+ <instructions>
+ <Bundle-Name>${project.artifactId}</Bundle-Name>
+ <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
+ <Export-Package>
+ org.fusesource.leveldbjni;version=${project.version},
+ org.iq80.leveldb*;version=${leveldb-api-version},</Export-Package>
+ <Import-Package></Import-Package>
+ <DynamicImport-Package></DynamicImport-Package>
+ <Private-Package>org.fusesource.hawtjni*,org.fusesource.leveldbjni.internal*,!*</Private-Package>
+ <Implementation-Title>LevelDB JNI</Implementation-Title>
+ <Implementation-Version>${project.version}</Implementation-Version>
+ <Embed-Dependency>
+ *;groupId=org.fusesource.leveldbjni;inline=META-INF/native/*,
+ </Embed-Dependency>
+ <Embed-Transitive>true</Embed-Transitive>
+ <Bundle-NativeCode>
+ META-INF/native/windows32/leveldbjni.dll;osname=Win32;processor=x86,
+ META-INF/native/windows64/leveldbjni.dll;osname=Win32;processor=x86-64,
+ META-INF/native/osx/libleveldbjni.jnilib;osname=macosx,
+ META-INF/native/linux32/libleveldbjni.so;osname=Linux;processor=x86,
+ META-INF/native/linux64/libleveldbjni.so;osname=Linux;processor=x86-64
+ </Bundle-NativeCode>
+ </instructions>
+ </configuration>
</plugin>
</plugins>
</build>

0 comments on commit c875916

Please sign in to comment.