nexus可以在线更新中央仓库索引,但是更新速度慢,而且很有可能下载的索引不全。下面介绍一种离线更新中央仓库索引的方式,速度快并且可靠。
1、访问http://repo.maven.apache.org/maven2/.index/下载中心仓库最新版本的索引文件,我们需要下载如下两个文件nexus-maven-repository-index.gz和nexus-maven-repository-index.properties。
2,进入nexus安装目录\sonatype-work进入indexer目录,因为我们的代理名为central所以找到central-ctx &#x