前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >libvirt最新版本未deploy到maven中央仓库

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

作者头像
donghui
发布2019-04-19 15:45:05
5620
发布2019-04-19 15:45:05
举报
文章被收录于专栏:donghui的博客donghui的博客

libvirt是虚拟化API。

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

官网:http://libvirt.org/

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

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

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>

由上可知,

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

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

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

在nexus上配置Repository:

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

缓存org.libvirt:libvirt组件:

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

代码语言:javascript
复制
<dependency>
  <groupId>org.libvirt</groupId>
  <artifactId>libvirt</artifactId>
  <version>0.4.9</version></dependency>

2、执行 mvn test -U 就可以将组件缓存到本地(切记要加-U

     加上-U表示强制更新

(adsbygoogle = window.adsbygoogle || []).push({});

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2014/10/04 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档