Skip to content

Instantly share code, notes, and snippets.

@sanlinnaing
Forked from gsitgithub/find-currupt-jars.txt
Created October 14, 2017 03:58
Show Gist options
  • Save sanlinnaing/fba990966261703c26630d2e54ec77a5 to your computer and use it in GitHub Desktop.
Save sanlinnaing/fba990966261703c26630d2e54ec77a5 to your computer and use it in GitHub Desktop.
maven: Find corrupted jar files
run this in .m2 files
it lists all the corrupted jar files in the repository
find /home/me/.m2/repository/ -name "*jar" | xargs -L 1 zip -T | grep error | grep invalid
To resolve them , delete them first and re run the build or run
mvn -Dmaven.wagon.provider.http=httpclient clean install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment