There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-a85ebf38-4586-454e-96b5-dcd266a73add XWIKI-20971 Open

Distracting "Checksum failed" (ChecksumFailureException) stack trace when installing an extension from the local repository

 
View issue   ·   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-a930a2d1-140d-4e41-b1af-73f7c001e5ff Thomas Mortagne on 18/Nov/24 14:52
 
bq. Maybe the best is to understand why this error happens

This warning is expected (Maven does not generate/download checksum files in the local repository), what is less expected is the fact that they
moved decided to error. print the stack trace…
 
cid:jira-generated-image-avatar-a930a2d1-140d-4e41-b1af-73f7c001e5ff Thomas Mortagne on 18/Nov/24 14:53
 
Unfortunately, that's not something we have much control over, as it's directly logged by Maven Resolver.

That being said it used to not log the entire stack trace in [Maven Resolve 1.3.1|https://github.com/apache/maven-resolver/blame/maven-resolver-1.3.1/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/WarnChecksumPolicy.java#L36] (used [before XWiki 15.2|https://jira.xwiki.org/browse/XWIKI-20666]) unless you enable debug log for it, but it seems to be different in [current version|https://github.com/apache/maven-resolver/blame/
master bba44d9552f232c52d5addcce69b08e6e52993b6 /maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/WarnChecksumPolicy.java# L35 L39 ].