Mettle
Mettle

Reputation: 11

Maven "error in opening zip file"

When mvn3 clean installing, I get this error:

error reading Users/user/.m2/repository/org/mockito/mockito-all/1.9.0/mockito-all-1.9.0.jar; error in opening zip file

I've been looking through the answers to similar questions and it sounds like the standard solution is to remove the repo and re-clean install, which I have done a few times, as well as by hand downloading the jar and putting it into the 1.9.0 folder. This does NOT solve the problem.

Upvotes: 0

Views: 4836

Answers (2)

Harisudan Kuppusami
Harisudan Kuppusami

Reputation: 321

Please try with the command to purge local repository.
Example: mvn dependency:purge-local-repository
Reference url:https://maven.apache.org/plugins/maven-dependency-plugin/examples/purging-local-repository.html

Upvotes: 3

Mettle
Mettle

Reputation: 11

Referencing the dead repository com.google will still return a jar, but the jar will not be understood by Maven.

Upvotes: 1

Related Questions