Details
Description
Starting analyze from a project directory, it crashes with this message : "incomplete literal/length tree".
It seems like some zip is corrupted, I guess this is a jar that may have this problem, but I can't figure which one it is.
I guess maven-dependency-plugin should at least try to catch this exception to log which jar it was trying to analyze. This would help identify the corrupted jar in the local maven repository and try to correct/update it.
Thanks a lot.
To fix this we need to wrap the original IOException with another IOException with additional info about the bad jar, however java 4 IOException does not have constructor IOException ( String cause, Throwable e ) ( and java 5 does )
so this is a tough fix, unless we are willing to throw another Exception type instead of IOException and still make Java 4 compatible at
public interface ClassAnalyzer
{
// fields -----------------------------------------------------------------
String ROLE = ClassAnalyzer.class.getName();
// public methods ---------------------------------------------------------
Set analyze( URL url )
throws IOException;
}