Programmer's dairy.
find . -name "pom.xml" -exec mvn clean -f '{}' \;
find . -name "pom.xml" -exec mvn clean install -f '{}' \;
adding "-depth 2" guarantees only the parent pom of direct subfolders are found