Visualizing Your Build with the Maven Timeline Plugin - Dan Haywood

Опубликовано: 27 Март 2024
на канале: Microsoft for Java Developers
269
3

You're working on a big app, but the build takes too long. You've already split it into separate modules, and you're using mvn -T1C to build, which definitely speeds things up even if the log output is a mess; in fact you even discovered mvndaemon, so now the build looks rather pretty, and it goes a little bit faster too.

You realise also that with a maven multi-module buiild, module B will only start to compile once all the tests in module A have passed. So you could definitely make your overall build faster by moving A's tests to its own module which could then be executed in parallel with B's build. Is it worth the effort, though?

Using the maven timeline extension, you can run your maven build and end up with a browseable website that will show the timings of each phase of the build. So you can also see if running with more or fewer cores, you can see if it's worth pulling out module A's tests, you can see if it's there are any bottlenecks.

#java #jdconf #maven


Смотрите видео Visualizing Your Build with the Maven Timeline Plugin - Dan Haywood онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Microsoft for Java Developers 27 Март 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 269 раз и оно понравилось 3 людям.