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 assembly if we activate our custom “auto-deploy” profile, which is explicitly defined in each module, because how / what is deployed is slightly different for each of the modules.
When creating from the parent POM, although if I activate the "auto-deploy" profile, Maven will finish deploying all the modules, which almost never needs to be done (based on our dev process, etc.). But we want to build from the root, as there may be changes in several modules, and there are dependencies between some modules.
Is there a way, when you build from the parent POM, to activate our "automatic deployment" user profile for only one of the modules, but not for all?
thanks
source share