Use the following example to list all of the folders that contain a pom.xml file
Refer: https://www.computerhope.com/unix/tree.htm
tree --prune -P "pom\.xml"

Technical notes, and other ideas.
Use the following example to list all of the folders that contain a pom.xml file
Refer: https://www.computerhope.com/unix/tree.htm
tree --prune -P "pom\.xml"