-<project>
+<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.yaz4j</groupId>
- <artifactId>yaz4j</artifactId>
- <version>1.2-SNAPSHOT</version>
+ <artifactId>yaz4j-lib</artifactId>
+ <version>1.6-SNAPSHOT</version>
</parent>
<groupId>org.yaz4j</groupId>
<artifactId>libyaz4j</artifactId>
<name>libyaz4j</name>
- <packaging>so</packaging>
+ <packaging>${packaging}</packaging>
<build>
- <finalName>${artifactId}</finalName>
+ <finalName>${project.artifactId}</finalName>
<testSourceDirectory>../src/test</testSourceDirectory>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
+ <version>1.8</version>
<executions>
<execution>
<id>write-yaz-config</id>
<goal>run</goal>
</goals>
<configuration>
- <tasks>
+ <target>
<exec executable="${yaz.config}" outputproperty="yaz.cflags">
<arg value="--cflags" />
</exec>
- <echo message="YAZ CFLAGS: ${yaz.cflags}"/>
+ <echo message="YAZ CFLAGS: ${yaz.cflags}" />
<exec executable="${yaz.config}" outputproperty="yaz.libs">
<arg value="--libs" />
</exec>
- <echo message="YAZ LIBS: ${yaz.libs}"/>
+ <echo message="YAZ LIBS: ${yaz.libs}" />
<!-- this does not work on debian/ubuntu
- <propertyfile file="${basedir}/target/yaz-config.properties"
- comment="YAZ COMPILER/LINKER FLAGS">
- <entry key="yaz.cflags" value="${yaz.cflags}"/>
- <entry key="yaz.libs" value="${yaz.libs}"/>
+ <propertyfile file="${basedir}/target/yaz-config.properties" comment="YAZ COMPILER/LINKER FLAGS">
+ <entry key="yaz.cflags" value="${yaz.cflags}" />
+ <entry key="yaz.libs" value="${yaz.libs}" />
</propertyfile>
-->
- <echo file="${basedir}/target/yaz-config.properties"
- message="yaz.cflags=${yaz.cflags}${line.separator}yaz.libs=${yaz.libs}"/>
- </tasks>
+ <echo file="${basedir}/target/yaz-config.properties" message="yaz.cflags=${yaz.cflags}${line.separator}yaz.libs=${yaz.libs}" />
+ </target>
</configuration>
</execution>
</executions>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native-maven-plugin</artifactId>
+ <version>1.0-alpha-8</version>
<extensions>true</extensions>
<configuration>
<javahOS>${javahOS}</javahOS>
<compilerProvider>generic</compilerProvider>
<compilerExecutable>g++</compilerExecutable>
<compilerStartOptions>
- <compilerStartOption>-fPIC</compilerStartOption>
+ <compilerStartOption>-fPIC -Wno-deprecated-declarations</compilerStartOption>
</compilerStartOptions>
<compilerEndOptions>
<compilerEndOption>${yaz.cflags}</compilerEndOption>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
+ <version>3.3</version>
<configuration>
<encoding>UTF-8</encoding>
- <source>1.6</source>
- <target>1.6</target>
+ <source>1.7</source>
+ <target>1.7</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.9.1</version>
<executions>
<execution>
<id>include-generated-test-sources</id>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
+ <version>2.18.1</version>
<configuration>
<forkMode>once</forkMode>
<workingDirectory>target</workingDirectory>
</plugin>
</plugins>
</build>
-
- <repositories>
- <repository>
- <id>Codehaus Snapshots</id>
- <url>http://snapshots.repository.codehaus.org/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>Codehaus Snapshots</id>
- <url>http://snapshots.repository.codehaus.org/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled> <!-- Workaround for MNG-2974, see note below -->
- </releases>
- </pluginRepository>
- </pluginRepositories>
</project>