2 <modelVersion>4.0.0</modelVersion>
4 <groupId>org.yaz4j</groupId>
5 <artifactId>yaz4j-lib</artifactId>
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 <extensions>true</extensions>
22 <javahOS>win32</javahOS>
23 <!--<envFactoryName>org.codehaus.mojo.natives.msvc.MSVC6EnvFactory</envFactoryName>-->
25 <compilerProvider>msvc</compilerProvider>
27 <compilerStartOptions>
28 <compilerStartOption>${yaz.include}</compilerStartOption>
29 <compilerStartOption>/D WIN32</compilerStartOption>
30 </compilerStartOptions>
34 <include>**/*.cpp</include>
36 <directory>../src/main/native</directory>
40 <include>**/*.cpp</include>
42 <directory>../target/generated-sources/native</directory>
46 <linkerStartOption>/dll</linkerStartOption>
49 <linkerEndOption>${yaz.libs}</linkerEndOption>
54 <!-- this is to compile and execute tests, that are arch-dependent
55 because they need to load so/dll -->
57 <groupId>org.apache.maven.plugins</groupId>
58 <artifactId>maven-compiler-plugin</artifactId>
60 <encoding>UTF-8</encoding>
63 <showDeprecation>true</showDeprecation>
64 <showWarnings>true</showWarnings>
69 <groupId>org.codehaus.mojo</groupId>
70 <artifactId>build-helper-maven-plugin</artifactId>
73 <id>include-generated-test-sources</id>
74 <phase>generate-test-sources</phase>
75 <goals><goal>add-test-source</goal></goals>
78 <source>../src/main/java</source>
79 <source>../target/generated-sources/java</source>
87 <artifactId>maven-surefire-plugin</artifactId>
89 <forkMode>once</forkMode>
90 <workingDirectory>target</workingDirectory>
91 <environmentVariables>
92 <PATH>${yaz.path}\bin</PATH>
93 </environmentVariables>