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表示強制更新

相關文章
相關標籤/搜索