Skip to content

Commit

Permalink
revert back to liblmdb.a approach for win64
Browse files Browse the repository at this point in the history
  • Loading branch information
krisskross committed Jan 11, 2015
1 parent 4f80f52 commit 72df4a5
Showing 1 changed file with 50 additions and 23 deletions.
73 changes: 50 additions & 23 deletions lmdbjni-win64/pom.xml
Original file line number Diff line number Diff line change
@@ -1,35 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2013, RedHat, Inc.
http://www.redhat.com/
Licensed 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.
-->

<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/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.deephacks.lmdbjni</groupId>
<artifactId>lmdbjni-project</artifactId>
<version>0.1.3-SNAPSHOT</version>
<version>0.2.6</version>
</parent>

<artifactId>lmdbjni-win64</artifactId>
<version>0.1.3-SNAPSHOT</version>
<version>0.2.6</version>

<name>${project.artifactId}</name>
<description>The lmdbjni Windows 64 bit native libraries</description>
Expand All @@ -39,17 +19,49 @@ limitations under the License.
</properties>

<dependencies>
<dependency>
<groupId>org.deephacks.lmdb</groupId>
<artifactId>lmdb-win64</artifactId>
<version>0.1.2</version>
</dependency>
<dependency>
<groupId>org.deephacks.lmdbjni</groupId>
<artifactId>lmdbjni</artifactId>
<version>0.1.3-SNAPSHOT</version>
<version>0.2.6</version>
</dependency>
</dependencies>

<build>
<testSourceDirectory>${basedir}/../lmdbjni/src/test/java</testSourceDirectory>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>unpack</id>
<phase>validate</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.deephacks.lmdb</groupId>
<artifactId>lmdb-win64</artifactId>
<version>${lmdb-version}</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/lmdb</outputDirectory>
<includes>META-INF/**</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -58,6 +70,21 @@ limitations under the License.
<classesDirectory>${basedir}/target/generated-sources/hawtjni/lib</classesDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
<environmentVariables>
<LD_LIBRARY_PATH>${lmdb-home}</LD_LIBRARY_PATH>
</environmentVariables>
<systemProperties>
<property>
<name>java.library.tmpdir</name>
<value>${lmdb-home}</value>
</property>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.fusesource.hawtjni</groupId>
<artifactId>maven-hawtjni-plugin</artifactId>
Expand Down

0 comments on commit 72df4a5

Please sign in to comment.