eclipse Maven 在打开 zip 文件时抛出错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13190823/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Maven Throwing error in opening zip file?
提问by Subodh Joshi
I have added plenty of jar files in My Local Apache Archivaand added the Repositorylocation and Dependenciesin my project pom.xml .
我在 My Local Apache Archiva 中添加了大量 jar 文件,并在我的项目 pom.xml 中添加了存储库位置和依赖项。
mvn clean
mvn eclipse:eclipse
working fine but when i am trying to run
工作正常,但是当我尝试跑步时
mvn install
then i am getting exception
然后我得到了例外
Error in opening zip files
while all jar file downloaded from archiva
而所有的jar文件都是从archiva下载的
Someone suggested delete the .m2 repository and run command again i tried that also but still not able to get resolution. Note:- I have no any test code in my project Thanks
有人建议删除 .m2 存储库并再次运行命令,我也尝试过,但仍然无法解决。注意:- 我的项目中没有任何测试代码谢谢
回答by eis
You have corrupt files in your local maven repository. They need to be redownloaded - possibly just deleting the .m2 folder and retrying will fix the issue, if not, you need to find out why your archiva repository is serving you bad files.
您的本地 Maven 存储库中有损坏的文件。它们需要重新下载 - 可能只是删除 .m2 文件夹并重试将解决问题,如果没有,您需要找出为什么您的存档存储库为您提供坏文件。
You should be able to run mvn -X install
to find out more detailed information as to which file was failing.
您应该能够运行mvn -X install
以找出有关哪个文件失败的更多详细信息。
回答by Azhar_K
its because of corrupt file in repository delete that specific file which is showing error or delete entire repository and redeploy .
因为存储库中的文件损坏,请删除显示错误的特定文件或删除整个存储库并重新部署。