Skip to content

Instantly share code, notes, and snippets.

@alexott
Last active March 13, 2018 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexott/affbf25b69a142cc3f71af278509e31e to your computer and use it in GitHub Desktop.
Save alexott/affbf25b69a142cc3f71af278509e31e to your computer and use it in GitHub Desktop.
Snippet to find corrupted JAR in Maven repository
for i in `find ~/.m2/repository/ -name \*.jar`; do unzip -l $i 2> /dev/null > /dev/null ; RES=$?; if [ $RES -ne 0 ]; then echo "$i: $RES" ; fi ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment