Add the moment we need to add some parameters when performing a release. We should add the following configuration properties in the pom file instead : {code:xml} <releaseProfiles>distro</releaseProfiles> {code} Select the right profile for the release
{code:xml} <arguments>-DskipTests</arguments> {code} Skip the tests (the builg should have benn already tested)
{code:xml} <pushChanges>false</pushChanges> {code} The maven lugin won't push changes on the remote repository
{code:xml} <localCheckout>true</localCheckout> {code} Use the local tag to perform the release
{code:xml} <allowTimestampedSnapshots>true</allowTimestampedSnapshots> {code}
{code:xml} <tagNameFormat>@{project.version}</tagNameFormat> {code} The name of the branch containing the new tag
We aslo have to remove the following from the pom: {code:xml} <configuration> <goals>assembly:assembly</goals> </configuration> {code} This causes an error performing the release since the assembly ditribution file has been moved under the distribution folder
|