Nexus私服 3 - 更新索引
2015-01-07 17:33
162 查看
私服Nexus搭建完毕之后,由于网络原因,有时候会出现索引更新不了的问题,这里参考了网上众多资料,给出一种离线更新索引的方式。
nexus-maven-repository-index.gz
nexus-maven-repository-index.properties
下面就是解压这个索引文件,虽然后缀名为gz,但解压方式却比较特别,我们需要下载一个jar包:indexer-cli-5.1.1.jar,我们需要通过这个特殊的jar来解压这个索引文件
注:indexer-cli-5.1.1.jar是专门用来解析和发布索引的工具。
将上面三个文件(.gz & .properties & .jar)放置到同一目录下,例如我放置在了D:\index文件夹下面。运行CMD命令如下:
d:
cd index
java -jar indexer-cli-5.1.1.jar -u nexus-maven-repository-index.gz -d indexer
之后,会在D:\index自动生成一个indexer文件夹,大概十几分钟吧,cmd命令执行完毕,indexer文件大小会达到700M多点,然后indexer内的文件拷贝到私服{nexus-home}/sonatype-work/nexus/indexer/central-ctx目录下,重新启动nexus,索引更新完毕!
1、下载索引文件
nexus-maven-repository-index.gznexus-maven-repository-index.properties
2、下载解压工具
下面就是解压这个索引文件,虽然后缀名为gz,但解压方式却比较特别,我们需要下载一个jar包:indexer-cli-5.1.1.jar,我们需要通过这个特殊的jar来解压这个索引文件注:indexer-cli-5.1.1.jar是专门用来解析和发布索引的工具。
3、cmd命令解压
将上面三个文件(.gz & .properties & .jar)放置到同一目录下,例如我放置在了D:\index文件夹下面。运行CMD命令如下:
a、定位到D:\index下
d:cd index
b、执行解压命令
java -jar indexer-cli-5.1.1.jar -u nexus-maven-repository-index.gz -d indexer之后,会在D:\index自动生成一个indexer文件夹,大概十几分钟吧,cmd命令执行完毕,indexer文件大小会达到700M多点,然后indexer内的文件拷贝到私服{nexus-home}/sonatype-work/nexus/indexer/central-ctx目录下,重新启动nexus,索引更新完毕!
相关文章推荐
- 使用nexus搭建maven私服、手动更新索引
- 使用nexus搭建maven私服、手动更新索引
- Study nexus《使用nexus搭建maven私服手动更新索引》
- 使用nexus搭建maven私服、手动更新索引
- 使用nexus搭建maven私服、手动更新索引
- 使用nexus搭建maven私服、手动更新索引
- 使用nexus搭建maven私服、手动更新索引
- nexus私服(无法连接外网)索引更新方法
- 手把手教你手动更新 nexus 私服索引
- 使用nexus搭建maven私服、手动更新索引
- 使用nexus搭建maven私服、手动更新索引
- 使用nexus搭建maven私服、手动更新索引
- 使用nexus搭建maven私服、手动更新索引
- GXPT环境搭建——私服Nexus更新索引(三)
- Maven和Nexus更新索引(index)的安装配置
- Maven私服Nexus,无法更新jar
- Nexus更新索引
- 手动更新本地nexus中central库的索引
- nexus 离线更新索引
- Maven使用技巧001--- 离线更新nexus中央仓库索引的方案