MVN Tips: building a part of a multi-module project
Build specific modules instead of building all modules in a multi-module projects
Use the Maven advanced reactor options:
-pl, –projects Build specified reactor projects instead of all projects -am, –also-make If project list is specified, also build projects required by the list
In the parent project’s directory, run
mvn install –projects projB
This will build projB and the modules required by projB.
More info: http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-advanced-reactor-options/