How do I exclude certain modules from a Maven build using the commandline

Maven 3.2.1 has added this feature, you can use to specify the exact projects you want (or to exclude the projects you don’t want) -pl or –projects Here’s how to exclude two: -pl “!<modulename>,!<modulename2>” for exclude certain modules. This can be comma separated list of values that you want to include/exclude. Update For windows user … Read more