maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Soria (JIRA)" <>
Subject [jira] (SCM-729) Ability to specify tag for release:perform
Date Thu, 03 Apr 2014 10:47:00 GMT


Daniel Soria commented on SCM-729:

When running Bamboo with several user agent in the cloud, to rely on is
not an option.

The problem is in maven-release-plugin. The class org.apache.maven.plugins.release.PerformReleaseMojo
extends AbstractReleaseMojo, just extending AbstractScmReleaseMojo instead of AbstractReleaseMojo
solves the problem (1 line of code)
{code}@Mojo( name = "perform", aggregator = true, requiresProject = false )
public class PerformReleaseMojo
    extends AbstractScmReleaseMojo

Now I can run my modified release plugin:
{noformat}mvn org.apache.maven.plugins:maven-release-git-patched-plugin:2.4.2:perform --batch-mode
-DconnectionUrl=scm:git:ssh://username@server/repo.git -Dtag=4.1.0-TB01 {noformat}

The git clone command generated is
{noformat}[INFO] Executing: /bin/sh -c cd /project_path/target && git clone --branch
4.1.0-TB01 ssh://username@server/repo.git /project_path/target/checkout{noformat}

As you can see to implement the improvement is quite trivial.

> Ability to specify tag for release:perform
> ------------------------------------------
>                 Key: SCM-729
>                 URL:
>             Project: Maven SCM
>          Issue Type: Improvement
>          Components: maven-scm-provider-mercurial (hg)
>    Affects Versions: 1.8.1
>            Reporter: Gili
> We need a way to specify a tag either to release:perform or the HG scm provider.
indicates that we should be able to release:perform from a tag without the use of
but there is no way to specify a tag for the HG scm provider.

This message was sent by Atlassian JIRA

View raw message