2 <modelVersion>4.0.0</modelVersion>
4 <groupId>org.yaz4j</groupId>
5 <artifactId>yaz4j-lib</artifactId>
6 <version>1.5-SNAPSHOT</version>
8 <groupId>org.yaz4j</groupId>
9 <artifactId>yaz4j</artifactId>
12 <packaging>dll</packaging>
15 <testSourceDirectory>../src/test</testSourceDirectory>
18 <groupId>org.codehaus.mojo</groupId>
19 <artifactId>native-maven-plugin</artifactId>
20 <version>1.0-alpha-8</version>
21 <extensions>true</extensions>
23 <javahOS>win32</javahOS>
24 <!--<envFactoryName>org.codehaus.mojo.natives.msvc.MSVC6EnvFactory</envFactoryName>-->
26 <compilerProvider>msvc</compilerProvider>
28 <compilerStartOptions>
29 <compilerStartOption>${yaz.include}</compilerStartOption>
30 <compilerStartOption>/D WIN32</compilerStartOption>
31 </compilerStartOptions>
35 <include>**/*.cpp</include>
37 <directory>../src/main/native</directory>
41 <include>**/*.cpp</include>
43 <directory>../target/generated-sources/native</directory>
47 <linkerStartOption>/dll</linkerStartOption>
50 <linkerEndOption>${yaz.libs}</linkerEndOption>
55 <!-- this is to compile and execute tests, that are arch-dependent
56 because they need to load so/dll -->
58 <groupId>org.apache.maven.plugins</groupId>
59 <artifactId>maven-compiler-plugin</artifactId>
60 <version>2.0.2</version>
62 <encoding>UTF-8</encoding>
65 <showDeprecation>true</showDeprecation>
66 <showWarnings>true</showWarnings>
71 <groupId>org.codehaus.mojo</groupId>
72 <artifactId>build-helper-maven-plugin</artifactId>
73 <version>1.9.1</version>
76 <id>include-generated-test-sources</id>
77 <phase>generate-test-sources</phase>
78 <goals><goal>add-test-source</goal></goals>
81 <source>../src/main/java</source>
82 <source>../target/generated-sources/java</source>
90 <artifactId>maven-surefire-plugin</artifactId>
91 <version>2.18.1</version>
93 <forkMode>once</forkMode>
94 <workingDirectory>target</workingDirectory>
95 <environmentVariables>
96 <PATH>${project.build.directory};${yaz.path}\bin</PATH>
97 </environmentVariables>