简体   繁体   English

Eclipse Maven没有显示依赖关系

[英]Eclipse Maven not showing dependencies

For some reason I am unable to see the all other spring jars when I try to look for dependencies. 出于某种原因,当我尝试查找依赖项时,无法看到所有其他的Spring jar。 I tried deleting the org.springframework from the m2 local repository. 我尝试从m2本地存储库中删除org.springframework。 tried to update / rebuild local and global indexes. 尝试更新/重建本地和全局索引。 but nothing changed. 但是什么都没有改变。

在此处输入图片说明

You might have kept the Maven on "Offline" mode. 您可能使Maven处于“脱机”模式。

Go to eclipse (or spring sts) preferences --> type "maven" in search box --> click on "Maven" item in the list on left side --> 转到eclipse(或spring sts)首选项->在搜索框中键入“ maven”->单击左侧列表中的“ Maven”项->

  1. Make sure "Offline" and "Do not automatically update dependencies from remote repositories" check boxes are unchecked 确保未选中 “脱机”“不自动更新远程存储库中的依赖项”复选框
  2. Also make sure "Download repository index updates on startup" is checked . 还要确保选中 “启动时下载存储库索引更新”

Restart eclipse. 重新开始蚀。 Wait for eclipse to update indexes. 等待Eclipse更新索引。 This should solve your problem. 这应该可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM