Setting up a multi-module build
It is rare for a project to contain just a single module. Even in a relatively simple application, having a monolithic source tree and build has quickly gone out of fashion, particularly for Java applications.
There are several reasons why having multiple modules is a good idea for a project whether it is using Maven or not:
- Reusability: Where appropriate, discrete libraries can be reused in different sections of the application or in other Maven projects as they are shared through the Maven repository.
- Readability: In many cases, it can be easier to navigate and understand an application that is broken up into self-contained modules.
- Development efficiency: By separating the build into logical subsystems, development ...