libvirt最新版本未deploy到maven中央仓库

libvirt是虚拟化API。html

org.libvirt:libvirt:jar是其java实现。java

官网:http://libvirt.org/web

在中央仓库搜索,其最高版本为0.4.7,但是现实状况这个不是最新版本(发现有人在用0.4.9版本)缓存

经过查看其官网,在http://libvirt.org/java.html页面得到相关信息:
maven

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>
url

由上可知,spa

libvirt在中央仓库中的最高版本为0.4.7,代理

而要使用0.4.8或更高版本须要配置libvirt的maven仓库:http://www.libvirt.org/maven2/code

不明白0.4.8版本或更高版本为什么不deploy到中央仓库,而是自建仓库xml

在nexus上配置Repository:

管理员登陆nexus,在上面新建代理仓库,并将代理仓库放到Public Repositories仓库组中

缓存org.libvirt:libvirt组件:

一、建立一个maven项目,并将libvirt的dependecy添加到pom.xml中

<dependency>
  <groupId>org.libvirt</groupId>
  <artifactId>libvirt</artifactId>
  <version>0.4.9</version></dependency>

二、执行 mvn test -U 就能够将组件缓存到本地切记要加-U

     加上-U表示强制更新

相关文章
相关标签/搜索