Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Maven not to run tests if nothing changed

We have a large application consisting of many modules and full build (with integration tests) takes up to hour. Is there a way to configure maven in the way that it will skip tests on modules (or even classes), where nothing has been changed? Probably some plugin exists for that or this plugin can be written?

like image 525
Don_Quijote Avatar asked Dec 19 '25 08:12

Don_Quijote


1 Answers

What you are looking for can be achieved by using gitflow-incremental-builder plugin, although it has dependency on git.

A maven extension for incremental building of multi-module projects when using feature branches (Git Flow). Builds or tests only changed maven modules compared to reference branch in Git (e.g. origin/develop) and all their dependents.

Powered by JGit.

like image 108
Kobynet Avatar answered Dec 22 '25 00:12

Kobynet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!