Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The WSO2 Release Helper plug-in was introduced to help the Apache Maven Release plug-in to prepare releases of WSO2 specific Maven projects (ESB and Registry). These projects contain artifact.xml files consisting of meta-data (including versions) of the project artifacts, which need to be updated with both release version (tag) and the next development version (trunk) during the release preparation. The WSO2 Release Helper plug-in addresses this requirement. 

...

Info

Since the Maven Release plug-in only commits changed pom.xml files, each of the above two goals will do their own commits in order to commit the changed artifact.xml files to the SCM repository, with the following commit messages.

prepare-release commit message: [wso2-release-plugin] rollback the release of ${ReleaseTag}

prepare-snapshot commit message: [wso2-release-plugin] prepare for next development iteration

A sample configuration for the Maven Release plug-in with the WSO2 Release Helper plug-in is shown below:

Code Block
languagexml
<plugin>
    <artifactId>maven-release-plugin</artifactId>
    <version>2.5</version>
    <configuration>
	 <preparationGoals>               
          org.wso2.maven:wso2-release-helper-plugin:1.0.0-SNAPSHOT:prepare-release
       </preparationGoals>
       <completionGoals>
          org.wso2.maven:wso2-release-helper-plugin:1.0.0-SNAPSHOT:prepare-snapshots
       </completionGoals>
    </configuration>
</plugin>

...

org.wso2.maven:wso2-release-helper-plugin:1.0.0-SNAPSHOT:rollback

commit message: [wso2-release-plugin] rollback the release of ${ReleaseTag}

...