Created
April 18, 2018 08:45
-
-
Save mkutz/7a64dac0c34b4286eb29acf73ec96b43 to your computer and use it in GitHub Desktop.
Bash script to execute mvn clean for all sub directories containing a pom.xml
This file contains 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
#!/usr/bin/env bash | |
# | |
# executes mvn clean for all sub directories containing a pom.xml | |
# | |
find . -name "pom.xml" -exec mvn clean -f '{}' \; |
Thanks.
Both good ideas.
Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice command. But also it would be great to perform cleaning in parallel. Multimodule projects could be excluded from further cleaning.