Using libvirt Java API bindings in maven

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

ant build

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 :

            <id>libvirt repo</id>



Add this in your pom and you are ready to go.
Thanks :)