Maven Multimodule Project: A Detailed View

Anish Antony
Javarevisited
Published in
4 min readDec 21, 2020

--

Maven is a greater tool which makes build process easily. In Organizational projects, you can see there are different sub-modules. Each submodule has a separate pom.xml, and there is an aggregator pom.xml which will consolidate all the submodules. Here over this article lets explore the advantages of Multimodule Project.

Photo by Volodymyr Hryshchenko on Unsplash

This article lets discuss what a maven multi-module project is and how it makes your life better.

The large scale projects are not constant all the time. Every time there is a change appeared on the project. Sometimes it will be a new feature addition, and sometimes it is revoking the already added feature from the project.

If you are handling these in your single pom project, then when the project grows up, your pom also becomes very large also the pom becomes very sensitive. But by converting the project into a multi-module project, then it is so handy.

It is very easy to accommodate shared modules, external projects into to project. Also remember, the multi-module project is so helpful for the DevOps team to configure.

Why Multi-Module Project?

The major benefits of making multi-module projects are

  1. One single command is required to build all projects, including the submodules.

--

--

Anish Antony
Javarevisited

Fullstack Developer | Blogger | Experience on Java, Python, React, Angular, Golang | http://www.behindjava.com