Improve your build system using Maven

Categories Development, Java

Really!

I’ve been a Maven user since 2005, but only as a “user”, never creating build files, never really understanding the full picture.

I used to be a skeptic, but now I am fully converted. For the past 3 days I’ve been migrating the build process for a 15 module project from ant to Maven 2 and I have to admin that once you get past the dependency configuration, everything else is a breeze.

The build file size, maintaining every functionality, has decreased by two thirds, and is now more readable.

Everything from JiBX binding to build versioning is almost out of the box by using the plugin system. Plus, the Surefire plugin just works, no hassle there, running all tests with testng, although it’s slower than the direct testing I used to do with ant.

Anyway, it’s worth loosing two or three days, the benefits are huge.

Leave a Reply

Your email address will not be published. Required fields are marked *