I'm currently trying to use Sigar in a maven-build, and it says everytime:
"org.hyperic.sigar.SigarException: no libsigar-x86-linux.so in java.library.path"
I've installed Sigar to maven with mvn install:install-file -DgroupId=org.hyperic -DartifactId=sigar -Dversion=1.6.4 -Dpackaging=jar -Dfile=sigar.jar (where sigar.jar is a jar only with the files in the org-folder, and the maven dependency with the things in the lib-folder), but then it does not find the .so-file.
I've tried to find answers, who mostly say one should unzip the files like Unzip dependency in maven . Unzipping (after installing the other things via install:install-file) does work fine, but the file isn't included in the path after all.
Then I've tried to find something to include the files in the build path, so I did something like this: Surefire JUnit Testing using Native Libraries (I want to use sigar in the tests), but this also doesn't change anything. I've tried it with many different folders, and even adding the file itself and not the folder it is in to the library path, but even this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
<argLine>-Djava.library.path=${project.build.directory}/lib/libsigar-x86-linux.so</argLine>
</configuration>
</plugin>
does not work, but the file is clearly there. I'm using maven 2.2.1.
Has anybody an hint how to get sigar in this context working?
Thanks in advance, DaGeRe