nexus更新Central仓库索引
2017-07-26 14:02
1611 查看
一:自动更新
选中central,configuration,将Remote Storage Location(代理地址)设置为:https://repo1.maven.org/maven2/,将Download
Remote Indexes设置为true
右键central,选择最后一项“update index”,优点是操作简单,不过速度会有点慢。
二:手动更新
从https://repo1.maven.org/maven2/.index/下载
选中central,configuration,将Remote Storage Location(代理地址)设置为:https://repo1.maven.org/maven2/,将Download
Remote Indexes设置为true
右键central,选择最后一项“update index”,优点是操作简单,不过速度会有点慢。
二:手动更新
从https://repo1.maven.org/maven2/.index/下载
nexus-maven-repository-index.gz 和 nexus-maven-repository-index.properties
从https://repo1.maven.org/maven2/org/apache/maven/indexer/indexer-cli/5.1.1/
下载indexer-cli-5.1.1.jar
将三个文件放在同一目录,执行如下命令java -jar indexer-cli-5.1.1.jar -u nexus-maven-repository-index.gz -d indexer,
此时会生成一个indexer文件夹,待执行完后,将nexus安装目录\nexus2\sonatype-work\nexus\indexer\central-ctx中的内容全部删除,
并把生成的indexer的内容复制到..\central-ctx中。重启nexus就可以看到更新后的索引了
相关文章推荐
- 离线更新nexus中央仓库索引
- Nexus索引更新和仓库迁移
- 使用nexus代理maven仓库更新索引笔记
- Maven使用技巧001--- 离线更新nexus中央仓库索引的方案
- 【Linux运维入门】Nexus索引更新和仓库迁移
- 手动更新maven私有仓库nexus的索引文件
- 手把手教你手动更新 nexus 私服索引
- Sonatype Nexus 手动更新索引
- Nexus下载远程Maven仓库索引
- Nexus 手动更新索引
- Nexus手动更新索引
- GXPT环境搭建——私服Nexus更新索引(三)
- 使用nexus搭建maven私服、手动更新索引
- Nexus远程Maven仓库索引下载教程
- 使用nexus搭建maven私服、手动更新索引
- nexus私服(无法连接外网)索引更新方法
- 使用nexus搭建maven私服、手动更新索引
- Study nexus《使用nexus搭建maven私服手动更新索引》
- Nexus下载Maven仓库索引(远程OR离线)
- 使用nexus搭建maven私服、手动更新索引