We have a multi-module Maven project consisting of a parent POM and 5 or more modules.
Each module can be deployed to a running server as part of the build if we act
If each of your modules will have it's own "auto-deploy" profile, and profile activation will be triggered by variables passed to mvn
command, you will be able to run single mvn command on parent module and decide which modules should be deployed simply by declaring activation variables
profileId
profileIdEnabled
true
and then
mvn -DprofileIdEnabled=true