eclipse中,maven中的pom.xml添加依赖配置版本提示功能

记录一下:

https://blog.csdn.net/fmwind/article/details/74011234

https://blog.csdn.net/muyi_amen/article/details/53690286

https://blog.csdn.net/Mason_Xu/article/details/78856441

在eclipse的maven中搜索本地仓库中的jar包搜索不到
在下载好maven和.m创建本地仓库后,设置好环境变量后,但是在在eclipse的maven还是找不到jar包.

原因是因为maven中的本地仓库的index索引没有更新,导致在eclipse的maven插件中搜索不到。

解决方案: 
在eclipse中打开菜单 window-> show view –> other –> Maven -> maven repositories 
打开之后,选择local repositories –> local repository ,右击,选择Build index.

更新完索引之后,在通过右键单击pom.xml文件选择maven –> add dependency 或者是打开pom.xml文件,选择dependencies –>add 时,就可以搜索到本地仓库的jar包了.

  • 2
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值