Evaluate Changelogic without registration!
  

Using Changelogic with Maven


If you use Changelogic version 1.x, please follow the link: Using Changelogic V-1.x with Maven


If you are using Maven 2.x, you should look at this page: Maven 2 integration


What is Maven?
Maven is a free build tool that comes with many predefined goals commonly occurring in a wide variety of software projects. It has been found especially useful when a product has many dependencies of other products or libraries.
Read more: http://maven.apache.org/

There are many software projects that are built using Apache's Maven. These projects can be brought under Changelogic too, even though Changelogic uses Ant as its build engine. The simplest way to achieve that is to take the sample build.xml from “User menu -> Supporting Files” and place calls to Maven where needed; then, use Ant to execute Changelogic tasks, while using Maven for regular building of the product.


For example, a target for building the product during integration might look like something like the following:



Other integration acitivities or preconditions for ending development can be defined similarly.


In the beginning of integration, personal preferences stored in build.properties can be copied following the example:



The Changelogic script is also capable of keeping a property in Maven's project.properties up to date with the value of current version number, so your build script can upload packages into repository with correct version number. To activate such behaviour, define the name of the property in changelogic-project.properties, like in the following example:



The version number will be updated during starting development, performing base version update and in the start of integration.