interesting new cli options in maven 2.1
Maven 2.1 introduced new options to the command line that allow faster builds in some cases
- -rf,--resume-from <arg>: Resume reactor from specified project. This means if the build fails at some project you can resume from that, instead of going through the build of the projects that precede it in the reactor
- -pl,--projects <arg>: Build specified reactor projects instead of all projects (comman separated list). This is useful if you changed only some projects and with to build only those.
- -amd,--also-make-dependents: When using the -pl option, also make the projects that the specified projects depend on. This is useful if the product has independent module sets and some common ones. You specify the projects in the module set and projects from the common code also gets build to make sure everything is up to date
- -am,--also-make: When using the -pl option, also make the projects that depend on the specified projects. This is useful when changing a common module to make sure all modules that depend on it are also up to date.
These features were already available in Maven 2.0 with the maven reactor plugin. You can read there how to use it. An additional feature not introduced to the core is reactor:make-scm-changes which will build all projects that were changed locally according to the scm and all the projects that depend on them