Skip to main content

Build

Use a unique property to set Maven version

·4 mins
When working with a Maven multi-module (dozens of them) project on multiple branches, I always end up with merge conflicts on my pom.xml <version> elements. Here is a solution I use to remove all the <version> element duplication.

Show Maven build plan

·3 mins
I often find myself in front of a POM scratching my head while trying to find what Maven will execute during my build. Since Maven 3 it is possible to calculate execution plan by simulating the build. Strangely there is not easy way do display it. Here is buildplan-maven-plugin.