I use maven 3.2.3.
I have a multi-module project with three levels of nested modules. I want to build all first-level modules(with their submodules) except one. For this task I tried to use -pl option and specifying the module I want to exclude from the build using !moduleName.
What I have in result is that the specified module is excluded from the build, BUT submodules of that module are not.
Is it an expected behaviour and I should explicitly exclude all the nested submodules as well?