Stop Maven Complaining about javax/jms/jms/1.1/jms-1.1.jar; cannot read zip file
My build was breaking due to Maven complaining about not being able to read jms-1.1.jar, as if it was corrupt after having been downloaded.
Deleting it from my local repository and letting it re-download fixed it a couple of times, but for what it’s worth I eventually stopped it from behaving like this by changing my log4j dependency from version 1.2.15 to 1.2.14.
Here’s the error I was getting:
[INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure error: error reading /Users/Rob/.m2/repository/javax/jms/jms/1.1/jms-1.1.jar; cannot read zip file
and here’s my final dependency:
<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.14</version> </dependency>
Hope this helps!
Leave a Reply
You must be logged in to post a comment.










