Maven Throwing error in opening zip file?

Subodh Joshi picture Subodh Joshi · Nov 2, 2012 · Viewed 11.1k times · Source

I have added plenty of jar files in My Local Apache Archiva and added the Repository location and Dependencies in my project 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

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

Answer

eis picture eis · Nov 2, 2012

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.

You should be able to run mvn -X install to find out more detailed information as to which file was failing.