Nexus更新索引(http://www.cnblogs.com/meet/p/5060892.html)
2016-10-06 13:32
369 查看
1.手动更新
1. 下载索引文件
在http://repo.maven.apache.org/maven2/.index/ 中下载
nexus-maven-repository-index.gz
nexus-maven-repository-index.properties
然后再下载一个indexer-cli-5.1.0.jar
indexer的下载地址:http://maven.outofmemory.cn/org.apache.maven.indexer/indexer-cli/5.1.0/
indexer的Maven
2. 解压缩索引文件
将上面三个文件(.gz & .properties & .jar)放置到同一目录下,运行如下命令
java -jar indexer-cli-5.1.0.jar -u nexus-maven-repository-index.gz -d indexer
3. 停止nexus
4. 删除原有的索引文件
将{nexus_home}\sonatype-work\nexus\indexer\central-ctx下的文件全部删掉
5. 拷贝索引至central-ctx目录下
将nexus-maven-repository-index.gz解压后的indexer目录中所有文件,放到sonatype-work\nexus\indexer\central-ctx下面
6. 启动nexus即自动更新索引
2.自动下载
1. 打开Repositories标签,选中远程仓库并打开Configuration,将Download Romote Location 设置为true;
2. 在远程仓库上右键选择Update Index,Nexus会自动建立一条任务计划;一般远程仓库都比较大,构建会比较多,索引文件会很大,像http://repo1.maven.org/maven2 就有几百M,因此需要的时间就比较长。
3. 可以进入Scheduled Tasks查看任务的执行情况,当执行完成时,远程仓库的索引就已经建立完毕了。
两种方式,只要Browse_Index后看到许多文件的话就说明更新成功
1. 下载索引文件
在http://repo.maven.apache.org/maven2/.index/ 中下载
nexus-maven-repository-index.gz
nexus-maven-repository-index.properties
然后再下载一个indexer-cli-5.1.0.jar
indexer的下载地址:http://maven.outofmemory.cn/org.apache.maven.indexer/indexer-cli/5.1.0/
indexer的Maven
将上面三个文件(.gz & .properties & .jar)放置到同一目录下,运行如下命令
java -jar indexer-cli-5.1.0.jar -u nexus-maven-repository-index.gz -d indexer
3. 停止nexus
4. 删除原有的索引文件
将{nexus_home}\sonatype-work\nexus\indexer\central-ctx下的文件全部删掉
5. 拷贝索引至central-ctx目录下
将nexus-maven-repository-index.gz解压后的indexer目录中所有文件,放到sonatype-work\nexus\indexer\central-ctx下面
6. 启动nexus即自动更新索引
2.自动下载
1. 打开Repositories标签,选中远程仓库并打开Configuration,将Download Romote Location 设置为true;
2. 在远程仓库上右键选择Update Index,Nexus会自动建立一条任务计划;一般远程仓库都比较大,构建会比较多,索引文件会很大,像http://repo1.maven.org/maven2 就有几百M,因此需要的时间就比较长。
3. 可以进入Scheduled Tasks查看任务的执行情况,当执行完成时,远程仓库的索引就已经建立完毕了。
两种方式,只要Browse_Index后看到许多文件的话就说明更新成功
相关文章推荐
- google对html网页的索引更新非常快
- Oracel DUAL 表的日常使用(http://blog.sina.com.cn/s/blog_53aed4430100axiv.html),更新session日期格式
- Maven和Nexus更新索引(index)的安装配置
- 使用nexus搭建maven私服、手动更新索引
- Nexus 手动更新索引
- 瑞星杀毒软件 v2006 18.30.10 特别版(更新06月06日病毒库) http://down.hotlife.cn/html/download/2006/6/06/1149566559.shtml
- Nexus手动更新索引
- 手动更新maven私有仓库nexus的索引文件
- 手动更新本地nexus中central库的索引
- Nexus索引更新和仓库迁移
- 聚焦索引与非聚焦索引及其查询效率(http://topic.csdn.net/u/20080303/11/F3AA3990-20EA-479C-9B15-A5318507291C.html)
- 使用nexus搭建maven私服、手动更新索引
- 使用nexus代理maven仓库更新索引笔记
- 2.Nexus更新索引
- Nexus私服 3 - 更新索引
- 一个经常被忽略的关于更新异常的问题 http://www.cnblogs.com/leoo2sk/archive/2008/04/04/1137776.html
- 转:自动更新程序源码下载(C#.Net) http://www.cnblogs.com/jenry/archive/2006/08/15/477302.html
- nexus私服(无法连接外网)索引更新方法
- nexus搭建和手动更新索引心得
- mysql索引(原文地址包括所有mysql的知识:http://www.cnblogs.com/lyhabc/p/3776739.html)