Skip to content

Instantly share code, notes, and snippets.

@bepcyc
Last active March 15, 2016 17:12
Show Gist options
  • Select an option

  • Save bepcyc/d77368fbc2664bc13e3d to your computer and use it in GitHub Desktop.

Select an option

Save bepcyc/d77368fbc2664bc13e3d to your computer and use it in GitHub Desktop.
Clean all mvn and sbt projects
# maven
find . -name pom.xml -type f | xargs -L1 sh -c 'dirname $0' | xargs -L1 sh -c 'cd $0 && mvn clean'
# sbt
find . -name build.sbt -type f | xargs -L1 sh -c 'dirname $0' | xargs -L1 sh -c 'cd $0 && sbt clean'
# Hint: put 'git pull' as a last command and you will get all your repos updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment