eclipse报错,显示 Unable to update index for central|http://repo1.maven.org/maven2

来源:互联网 发布:获取淘宝客服地址 编辑:程序博客网 时间:2024/04/28 17:45
  1. 会显示很多的包没有导入成功。有很多红叉叉。
  2. 2/15/17 1:56:02 AM CST: Unable to update index for central|http://repo1.maven.org/maven2

解决办法:
1. Close Eclipse
2. Delete workspace_location/.metadata/.plugins/org.maven.ide.eclipse/nexus
3. Delete workspace_location/.metadata/.plugins/org.eclipse.m2e.core/nexus
4. Open eclipse, Go to Window->Preferences->Maven and enable checkbox named “Download repository index updates on startup”.
5. OK and restart Eclipse.

0 0