Rob Young

Twitter Flickr Last.fm LinkedIn LinkedIn
Guess what it is!Moth EggsBehe-mothSummer BarbecueRed Wine MeniscusWest Coast SunsetMay BugA Burst Of WhiteGreen & PinkIrisColours

Stop Maven Complaining about javax/jms/jms/1.1/jms-1.1.jar; cannot read zip file

without comments

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!

Written by Rob

February 25th, 2010 at 8:40 pm

Posted in Programming,Tutorials

Tagged with ,

Leave a Reply

You must be logged in to post a comment.