You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "elharo (via GitHub)" <gi...@apache.org> on 2025/09/30 11:09:36 UTC
Re: [PR] [MARTIFACT-75] Don't print stack trace from correctly functioning code [maven-artifact-plugin]
elharo commented on code in PR #66:
URL: https://github.com/apache/maven-artifact-plugin/pull/66#discussion_r2390949336
##########
src/main/java/org/apache/maven/plugins/artifact/buildinfo/ReferenceBuildinfoUtil.java:
##########
@@ -213,8 +214,10 @@ 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" + e.getMessage());
Review Comment:
added exception class name
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org