Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.util.jar.JarFile;
import java.util.jar.Manifest;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;

import org.apache.commons.io.IOUtils;
import org.apache.maven.plugin.MojoExecutionException;
Expand Down Expand Up @@ -210,8 +211,11 @@ private ReproducibleEnv extractEnv(File file, Artifact artifact) {
} else {
log.warn("no MANIFEST.MF found in jar " + file);
}
} catch (ZipException e) {
log.warn("Corrupt jar file " + file + "\n" + e.getMessage());
} catch (IOException e) {
log.warn("unable to open jar file " + file, e);
log.warn("unable to read jar file " + file + "\n due to "
+ e.getClass().getName() + "\n" + e.getMessage());
}
return null;
}
Expand Down