I am very new to Maven. Maybe this is the reason for this question :)
Today I tried to download a project called Sonar Runner and just see how it works. It was a rather strange experience for me, because this project has 4 submodules:
- Sonar Runner - API
- Sonar Runner - Package
- Sonar Runner - Distribution
- Sonar Runner - Deployment
They have respectively: 17, 2, 8 and 13 java files.
It makes me wonder why it is so beautiful. I know that you donโt know what their reasons are. But I'm curious what the reasons may be.
Until now, I thought that the size of the project is the reason or the individual teams working in different parts of the project.
But when the project has 40 java files, I think that size is not the reason.
What do I get when I use a multi-module project instead of one large project?
I tried to find the answer on Google, but no luck.
EDIT: I found this: Is there any use in using Maven Multimodule when working in a small application?
But still with a project having 40 java files. Dividing it into 4 submodules seems to me just ridiculous.
Are there any other benefits?
source share