Saturday, November 17, 2007

From Ant To Maven

At work we have decided to move from Ant base builds to Maven2. We are at the beginning of whole transformation and it is interesting to see how it is complicated. Maven has different philosophy of building, testing and creating new distribution from our previous Ant base build system.
For our previous projects we use system, when first we checkout all sources from CVS repository, then make source distribution and from it we make product distribution. Tests are run over this installed distribution.
Maven is using principle when source codes are compiled, then maven run junit tests and finally it make new version of component or whole distribution.
What I am writing it isn't nothing new, but I has big influence on our build system which was built for old Ant approach.
For building infrastructure we are trying to use Continuum from Apache and TeamCity from IntelliJ. Both of them are prepared for running maven build.