For some reason -Djava.library.path does not work.
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
- <workingDirectory>target</workingDirectory>
- <argLine>-Djava.library.path="${project.build.directory}"</argLine>
+ <workingDirectory>target</workingDirectory>
+ <environmentVariables>
+ <PATH>${yaz.path}\bin</PATH>
+ </environmentVariables>
</configuration>
</plugin>
+
</plugins>
</build>
</project>