Rebuilding Maven indexes Stuck at 0%

前端 未结 2 1833
忘了有多久
忘了有多久 2020-12-16 05:24

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 run

2条回答
  •  孤城傲影
    2020-12-16 05:54

    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):

提交回复
热议问题