Skip to content

Instantly share code, notes, and snippets.

@gsitgithub
Created November 7, 2016 05:07
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save gsitgithub/f673b719086ee87f223a49f3eaa36282 to your computer and use it in GitHub Desktop.
Save gsitgithub/f673b719086ee87f223a49f3eaa36282 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
@NXSNXS
Copy link

NXSNXS commented May 10, 2018

maybe change

  • /home/me/

to

  • ~/

:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment