Is it possible to build only one of six? without commenting on others?
I understand that you want to start maven from an aggregation project (i.e. build a reactor), but only build one module. This is possible using the list option -pl , --projects (see advanced reactor parameters ):
mvn --projects my-submodule install
This is a very powerful option, especially in combination with --aslo-make (also for creating projects on which the listed modules depend) or --also-make-dependents (also for creating projects that depend on the listed modules). Based on your update, you might want this actually:
mvn --projects my-submodule --also-make install
Running Maven from the directory of the module you want to build is, of course, an option, but it will not allow you to do the things described above and not build a subset of all the modules. For such use cases, extended reactor options are the way to go.
Pascal thivent
source share