欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

eclipse maven error: Archive for required library in project cannot be read or is not a valid ZIP fi

程序员文章站 2022-02-12 21:23:07
...

eclipse 中maven 项目报错(console中problems视窗):

1.Description Resource Path Location Type

Archive for required library: 'D:/maven/MavenRepository/maven_jar/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar' in project 'MR_Maven' cannot be read or is not a valid ZIP file MR_Maven Build path Build Path Problem


2.Description Resource Path Location Type

Archive for required library: 'D:/maven/MavenRepository/maven_jar/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar' in project 'MR_Maven' cannot be read or is not a valid ZIP file MR_Maven Build path Build Path Problem



可能是由于网络问题下载的jar包完整,需要先手工删除,步骤:

1.找到控制台console提示的相关错误jar提示的路径

2.删除jar文件或整个文件夹

3.进入eclipse ,在相应项目上右键 选择run as->maven-install. 将会重新下载正确的完整jar包.


相关标签: jar