Created
November 7, 2016 05:07
-
-
Save gsitgithub/f673b719086ee87f223a49f3eaa36282 to your computer and use it in GitHub Desktop.
maven: Find corrupted jar files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Thanks ... here's a powershell version if anyone needs this on WIndows:
https://gist.github.com/mbcolbert/caf6f42eef5e66146bf8cec3285c5051
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maybe change
to
:-)