Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
556 views
in Technique[技术] by (71.8m points)

java - Rebuilding Maven indexes Stuck at 0%

I am trying to rebuild the Maven index in Eclipse, but it has been stuck at 0% for hours.

I can't find any results when trying to add dependencies. I have tried running Eclipse as an Administrator and ticking "update repositories" on startup, but neither option worked.

I am using Windows 8.1 Enterprise Edition

Rebuilding Indexes: (0%)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  1. Leave Eclipse
  2. Go to [your-workspace-folder]
  3. Remove .metadata/.plugins/org.eclipse.m2e.core/nexus
  4. Remove .metadata/.plugins/org.maven.ide.eclipse/nexus
  5. Restart Eclipse

If it does not help, try also

  1. remove [your-home-folder]/.m2/repository/.cache/m2e/${m2e.version}.

See also https://stackoverflow.com/a/16444984/2886891


To prevent the impact of various bugs from the m2e plugin, I prefer using always the external maven (you have to have it installed of course):

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...