You can simply build the module by going in this module directory and run the mvn clean install
.
However, note that with this method, the dependencies with the others modules will be taken from your local repository (or the entreprise repository).
Let's take a simple example:
project
+ commons
+ business
Now, imagine that you build, on the root directory the whole project, using the mvn clean install
command. Consider that all your modules are in version 1.0
.
Now, you move to version 1.1
. If you run the mvn clean install
on the business
project only, it will try to get the 1.1
of module commons
. You will then have an error, as Maven will not find any version 1.1
in your local repository.