Archive for required library XXXX cannot be read or is not a valid ZIP file

今天eclipse中,maven项目出现了红色感叹号,查看Show View -> Problems, 提示Archive for required library XXXX cannot be read or is not a valid ZIP file。

一个一个排查比较麻烦,好了一个又出现另一个。

有点笨,但很彻底的解决方法:

清空maven的.m2\repository目录,重新刷新项目或重启eclipse。问题解决。

猜你喜欢

转载自blog.csdn.net/zhouyingge1104/article/details/80716575