Skip to content

Commit

Permalink
Create bundle for leveldbjni 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketraman committed Nov 17, 2012
1 parent 2e6622a commit 8857fc4
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 0 deletions.
141 changes: 141 additions & 0 deletions leveldbjni-all-1.4.1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>bundles-pom</artifactId>
<version>11-SNAPSHOT</version>
<relativePath>../bundles-pom/pom.xml</relativePath>
</parent>

<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.leveldbjni-all</artifactId>
<version>1.4.1_1-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
<description>This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.</description>

<properties>
<pkgGroupId>org.fusesource.leveldbjni</pkgGroupId>
<pkgArtifactId>leveldbjni-all</pkgArtifactId>
<pkgVersion>1.4.1</pkgVersion>
<servicemix.osgi.export.pkg>
*
</servicemix.osgi.export.pkg>
<servicemix.osgi.import.pkg>
*
</servicemix.osgi.import.pkg>
<servicemix.osgi.native>
META-INF/native/linux64/libleveldbjni.so;osname=linux;processor=x86_64,
META-INF/native/linux32/libleveldbjni.so;osname=linux;processor=x86,
META-INF/native/windows64/leveldbjni.dll;osname=win32;processor=x86_64
META-INF/native/windows32/leveldbjni.dll;osname=win32;processor=x86
META-INF/native/osx/libleveldbjni.jnilib;osname=macosx
</servicemix.osgi.native>
</properties>

<dependencies>
<dependency>
<groupId>${pkgGroupId}</groupId>
<artifactId>${pkgArtifactId}</artifactId>
<version>${pkgVersion}</version>
<optional>true</optional>
</dependency>

<!-- sources -->
<dependency>
<groupId>${pkgGroupId}</groupId>
<artifactId>${pkgArtifactId}</artifactId>
<version>${pkgVersion}</version>
<classifier>sources</classifier>
<optional>true</optional>
</dependency>
</dependencies>

<build>
<resources>
<resource>
<directory>target/nativelibs</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>unpack</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${pkgGroupId}</groupId>
<artifactId>${pkgArtifactId}</artifactId>
<version>${pkgVersion}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/nativelibs</outputDirectory>
<includes>**/native/**/*</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>${pkgGroupId}:${pkgArtifactId}</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>${pkgGroupId}:${pkgArtifactId}</artifact>
<excludes>
<exclude>**</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
11 changes: 11 additions & 0 deletions leveldbjni-all-1.4.1/src/main/resources/OSGI-INF/bundle.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
\u001B[1mSYNOPSIS\u001B[0m
${project.description}

Original Maven URL:
\u001B[33mmvn:${pkgGroupId}/${pkgArtifactId}/${pkgVersion}\u001B[0m

\u001B[1mDESCRIPTION\u001B[0m
The leveldbjni is a JNI interface for LevelDB, a journal library written in C++, originally developed by Google.

\u001B[1mSEE ALSO\u001B[0m
\u001B[36mhttps://github.com/fusesource/leveldbjni\u001B[0m

0 comments on commit 8857fc4

Please sign in to comment.