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 Problem2.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包.
上一篇: css样式的三种方法及选择器
下一篇: Jar包怎么读取包内资源文件