2.Nexus更新索引
来源:互联网 发布:淘宝和微店哪个好 编辑:程序博客网 时间:2024/05/17 14:20
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
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
1
2
3
4
5
<
dependency
>
<
groupId
>org.apache.maven.indexer</
groupId
>
<
artifactId
>indexer-cli</
artifactId
>
<
version
>5.1.0</
version
>
</
dependency
>
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.Nexus安装与配置
2.Nexus更新索引
3.发布Maven项目到nexus中
4.按项目类型分配不同的nexus工厂来发布不同的项目
0 0
- 2.Nexus更新索引
- Nexus 手动更新索引
- Nexus更新索引
- Nexus私服 3 - 更新索引
- Sonatype Nexus 手动更新索引
- nexus更新Central仓库索引
- 离线更新nexus中央仓库索引
- nexus搭建和手动更新索引心得
- Nexus索引更新和仓库迁移
- 使用nexus代理maven仓库更新索引笔记
- 使用nexus搭建maven私服、手动更新索引
- 使用nexus搭建maven私服、手动更新索引
- nexus私服(无法连接外网)索引更新方法
- 手动更新本地nexus中central库的索引
- 手动更新maven私有仓库nexus的索引文件
- Maven和Nexus更新索引(index)的安装配置
- 【Linux运维入门】Nexus索引更新和仓库迁移
- 使用nexus搭建maven私服、手动更新索引
- httpClient 向微信服务器上传临时图片素材
- Vim常用命令
- 启动和停止Oracle服务bat脚本
- VirtualBox安装Redhat9.0
- 1.Nexus安装与配置
- 2.Nexus更新索引
- 3.发布Maven项目到nexus中
- Oracle GoldenGate单向复制配置
- 4.Nexus按项目类型分配不同的工厂来发布不同的项目
- Markdown学习笔记
- tensorflow学习(3):解读mnist_experts例子,训练保存模型并tensorboard可视化
- Vue-vuex基础知识的学习总结
- Maven入门-2.Maven一些核心概念介绍
- 单例模式(Singleton)