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

I have a project that I am converting over to maven. Everything was going great until I decided to add log4j into the mix. When I added log4j version 1.2.15 as a dependency and tried to compile my project, I got the following error.

[INFO] ------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------
[INFO] Compilation failure
error: error reading /Users/gjenning/.m2/repository/javax/jms/jms/1.1/jms-1.1.jar; cannot read zip file

I don’t know why log4j caused a issue with the jms-1.1.jar file and throws a fatal error, but it does. To fix this issue, all I had to do was change the log4j dependency version from 1.2.15 to 1.2.14 and all now works great.

Posted on Mar 26, 2010 by Mike Jennings in Java | 0 Comments | Permalink