As Yogesh_D wrote, this can be done with the -pl argument with maven 3.2.1 +
Here is an example:
> mvn clean install -amd -pl !module,!module/submodule
You need to list each submodule (and sub-module, etc.) manually, it does not exclude them recursively. Use a slash to separate packages. This is the path to the folder, not the identifier of the group or artifact.
Gonfi den Tschal Dec 14 '14 at 10:06 2014-12-14 10:06
source share