Last active
March 15, 2016 17:12
-
-
Save bepcyc/d77368fbc2664bc13e3d to your computer and use it in GitHub Desktop.
Clean all mvn and sbt projects
This file contains hidden or 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
| # 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