In this blog, we will go over the configuration needed to Release cut an Adobe Experience Manager project using Maven and also how to increment major and minor version in the process.
The release cutting can be done using the maven-release plugin. This plugin provides a standard mechanism to release project artifacts outside the development team. The maven-release plugin provides basic functionality to create a release and to update the project’s SCM accordingly.
Following command will prepare the release for the Adobe Experience Manager project using maven-release plugin.
The default behavior of the maven-release plugin is to increment the minor versions of the archetype. At some point of project, the major version needs to be updated and this can be achieved by using the build-helper:parse-version.
The above example parses a version string and set properties containing the component parts of the version. This library sets the following properties
Where the propertyPrefix is the string set in the mojo parameter. The parsing of the above is based on the following format of the version:
The advantage of this plugin is the goal also sets the next version as properties.
Using the above properties from the build-helper:parse-version, we can set the next version of the archetype during the release cut without any issues.
Example:
The above example prepares the release and sets the development version to the set properties using the build-helper plugin
We at Initialyze are dedicated to improving your Adobe Experience Manager Platform experience and usability. We have implemented CI / CD pipelines, release cutting, release promotion automations via Jenkins for several large multi-module projects for some of the largest fortune 500 companies. Get in touch with us to know more about our services and Adobe Experience Manager expertise.