maven error: 用maven下载的spring jar包出现该异常 cannot be read or is not a valid ZIP file

2024-03-14,,

使用maven获取相关的依赖jar包时,出现异常:Archive for required library: 'D:/maven/repository/org/springframework/spring-context/4.0.0.RELEASE/ in project 'webmvc' cannot be read or is not a valid ZIP file

但是我去相关的目录找到了相关的jar包,但是IDE中仍然报错;在搜索引擎上找到了一个处理的方法,就是将该jar包的上一级目录删除,在IDE中更新maven项目,重新下载该jar包;最终解决了问题。我想应该是jar包在一开始下载不完整导致的吧!怕忘记,在此记录一下!

《maven error: 用maven下载的spring jar包出现该异常 cannot be read or is not a valid ZIP file.doc》

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