Using libvirt Java API bindings in maven25 Sep 2012
Hello coders, I am writing this quick post just to help a small bunch of people who are trying to use libvirt JAVA API bindings. I was trying to build .jar from git repo mentioned on the Libvirt site, but
command was giving a bunch of errors, to be precise, 100 errors. Then I decided to go with maven but there was no documentation. There is no rocket science in understanding maven architecture but for the coders trying to find ready template here it is :
<repositories> <repository> <id>libvirt repo</id> <url>http://www.libvirt.org/maven2/</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.libvirt</groupId> <artifactId>libvirt</artifactId> <version>0.4.9</version> </dependency> </dependencies>
Add this in your pom and you are ready to go.