Maven: One Phase per CI Stage
Have you ever tried running Maven phases in different stages/jobs of a CI pipeline? If so, you have probably run into an annoying issue where Maven re-runs the phases already executed in previous jobs, even though the files produced by the previous phase are present. Let’s see how to fix that!