How to list active sub-modules in a Maven project?
This is quite simple but it only gets the artifactId, from the root (or parent) module: mvn –also-make dependency:tree | grep maven-dependency-plugin | awk ‘{ print $(NF-1) }’ If you want the directories mvn -q –also-make exec:exec -Dexec.executable=”pwd”