Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# iterate dir and perform mvn commands across all subdirs - in this example 'mvn clean'
for folder in */; do folder=${folder%*/}; cd $folder; if [[ -f "pom.xml" ]]; then mvn clean; else echo "not a maven project"; fi; cd ..; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment