离线更新nexus搭建的Maven私服*仓库索引

            nexus可以在线更新*仓库索引,但是更新速度慢,而且很有可能下载的索引不全。下面介绍一种离线更新*仓库索引的方式,速度快并且可靠。

1、访问http://repo.maven.apache.org/maven2/.index/下载中心仓库最新版本的索引文件,我们需要下载如下两个文件nexus-maven-repository-index.gznexus-maven-repository-index.properties

离线更新nexus搭建的Maven私服*仓库索引

2,进入nexus安装目录\sonatype-work进入indexer目录,因为我们的代理名为central所以找到central-ctx ,将下载好的文件解压进去后。重新启动nexus,若能在central browse index中看到和remote一样的索引,即代表成功完成。

离线更新nexus搭建的Maven私服*仓库索引