(四)eclipse配置更新maven索引

一、检查maven配置

找到 show view 打开 Maven Repositories

《(四)eclipse配置更新maven索引》

分别显示,本地和远程仓库

《(四)eclipse配置更新maven索引》

二、更新本地仓库索引

 右击选择 Local Repository 点击 Rebuild index ,等一会就会遍历本地仓库索引

《(四)eclipse配置更新maven索引》

三、更新远程仓库索引

首先在 远程仓库 的 路径上 加 .index/nexus-maven-repository-index.gz 可以下载到 索引文件

如:  http://localhost:8802/nexus/content/groups/public/.index/nexus-maven-repository-index.gz

《(四)eclipse配置更新maven索引》

如图(私服上存储的索引文件):

《(四)eclipse配置更新maven索引》

右击选择 Global Repositories 下第一个,点击 Rebuild index ,等10几分钟。在本地仓库的路径会出现以下文件

《(四)eclipse配置更新maven索引》

然后在私服上就可以看到索引,以及jar包名称。

《(四)eclipse配置更新maven索引》

利用索引搜索jar

《(四)eclipse配置更新maven索引》

 

 

    原文作者:小松鼠米老鼠
    原文地址: https://blog.csdn.net/a350301941/article/details/100665576
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞