Libvirt is a virtual API.
Org. libvirt: jar is its Java implementation.
Official Website: http://libvirt.org/
Search for the central repository. the maximum version is 0.4.7, but this is not the latest version (0.4.9 is found)
You can view the information on the official website at http://lib#.org/java.htmlpage:
Maven
Up until version 0.4.7 the Java bindings were available from the central Maven repository.
If you want to use 0.4.8 or higher, please add the following repository to your pom. xml
<Repositories>
<Repository>
<ID> libvirt-org </ID>
<URL> http://libvirt.org/maven2 </URL>
</Repository>
</Repositories>
We can see from the above,
The maximum version of libvirt in the central repository is 0.4.7,
To use 0.4.8 or a later version, you need to configure the maven repository for libvirt: http://www.libvirt.org/maven2/.
I don't understand why 0.4.8 or later does not deploy to the central warehouse, but build a self-built warehouse.
Configure repository on nexus:
Log on to nexus as an administrator, create a new proxy repository, and place the repository in the public repositories repository group.
Cache org. libvirt: libvirt component:
1. Create a Maven project and add dependecy of libvirt to Pom. xml.
<dependency> <groupId>org.libvirt</groupId> <artifactId>libvirt</artifactId> <version>0.4.9</version></dependency>
2. Execute MVN Test-UYou can cache the component locally (remember to add-U)
Plus-The utable indicates forced update.
The latest version of libvirt is not deploy to the maven central repository.