手动更新nexus的索引

安装nexus

  1.下载

  源码包 nexus-2.13.0-01-bundle.tar.gz 下载地址 http://www.sonatype.org/nexus/

  2.解压源码包

  3.启动并访问

  ./nexus start 启动 restart重启 stop 关闭

  ip:端口/nexus访问  端口可在config的nexus.properties中修改

  默认用户名admin 密码admin123

更新索引

1.下载文件

  nexus-maven-repository-index.gz 
    nexus-maven-repository-index.properties 

  indexer-cli-5.1.0.jar

2.安装

  将三个文件移到同一个文件夹

  执行命令java -jar indexer-cli-5.1.0.jar -u nexus-maven-repository-index.gz -d indexer 

  将原来indexer文件夹中的文件全部删除

  将生成后的indexer文件夹中的文件全部放到central-ctx

  重启nexus

  更新索引前记得先关闭nexus服务

原文地址:https://www.cnblogs.com/rookie404/p/6047812.html