If I have 6 modules in my project is it possible to build only one out of six ? without commenting out others ?
EDIT
Submodule will not work itselft because or parent tags. I need to install the parent first to make it build. how can I do it without installing parent
My understanding is that you want to launch maven from the aggregating project (i.e. a reactor build) but only build one module. This is possible using the
-pl,--projectsproject list option (see advanced reactor options):This is a very powerful option, especially when combined with
--aslo-make(to also build the projects on which the listed modules depend) or the--also-make-dependents(to also build the projects that depends on the listed modules). On the basis of your update, you might want this actually:Launching Maven from the directory of the module you want to build is of course an option but this won’t allow you to do the things mentioned above nor to build a subset of all modules. For such use cases, the advanced reactor options are the way to go.