Archive required for library “xxx” cannot be read or is not a valid zip file报错解决

2022-11-07,,,,

在项目中导入别人的maven项目时报错Archive required for library “xxx” cannot be read or is not a valid zip file

网上查找了相应的解决方法,都是说eclipse自身的bug 或者是删除根目录的.classpath文件,找到“<classpathentry kind=”lib” path=”WebContent/WEB-INF/lib/readme.txt”/>”这一行,删掉

但其实不是这样的,出现这个报错的根本原因是eclipse在下载jar包依赖的时候没有下载完整的jar包导致了jar包无效,这时需要根据报错提示的报错找到本地maven仓库的jar包依赖,然后删除,重新下载,最后更新maven项目即可;

Archive required for library “xxx” cannot be read or is not a valid zip file报错解决的相关教程结束。

《Archive required for library “xxx” cannot be read or is not a valid zip file报错解决.doc》

下载本文的Word格式文档,以方便收藏与打印。