Subodh Joshi
Subodh Joshi

Reputation: 13492

Maven Throwing error in opening zip file?

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

Upvotes: 1

Views: 12637

Answers (2)

Azhar_K
Azhar_K

Reputation: 11

its because of corrupt file in repository delete that specific file which is showing error or delete entire repository and redeploy .

Upvotes: 1

eis
eis

Reputation: 53462

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.

Upvotes: 3

Related Questions