The global build of our application (30 Maven modules) is taking too much time (15 minutes). This includes units and integration tests. The majority of the time is consumed by the integrations tests (60%).
Our tech stack comprises of Spring, Spring MVC, Spring Batch etc. and Maven. Our developers are not motivated to keep this practice (Build All before commit)
Since I want to improve the build time I am suggesting these scenarios:
- Parallel build :
mvn -T 1C
is not going to work as this consumes all resources of developer machine which prevents the developer from doing other things. - Organize module by profile (
front, batch, connector, commons
) is not going to work either as our modules are inter-dependent and we must do the build all.
Do you have some suggestions to improve the build time of large projects?
Thanks in advance.