I am attempting to build a maven project (https://github.com/sdiemert/jgt) on Travis CI that depends on the Z3 SMT Solver.
I need to specifiy the location of the z3 dynamic library using:
-Djava.library.path=<path-to-directory-containing-lib>
I am using the Maven surefire plugin to execute tests and have specified the configuration as:
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<configuration>
<argLine>-Djava.library.path=./lib/</argLine>
</configuration>
</plugin>
I am able to execute tests on my local machine using: mvn test
However, when executing tests on Travis CI, I get build failures:
java.lang.UnsatisfiedLinkError: no libz3java in java.library.path`java.library.path
Here is a recent Travis CI build log:
I am at a bit of a loss for how to proceed. The closest thing I could find on SO is: Travis CI ignoring MAVEN_OPTS?.
Any help apperciated.