[ 
https://jira.codehaus.org/browse/SCM-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=344085#comment-344085
 ] 

Daniel Soria commented on SCM-729:
----------------------------------

When running Bamboo with several user agent in the cloud, to rely on 
release.properties 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
{{code}

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: https://jira.codehaus.org/browse/SCM-729
>             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.
> http://maven.apache.org/maven-release/maven-release-plugin/examples/perform-release.html
>  indicates that we should be able to release:perform from a tag without the 
> use of release.properties but there is no way to specify a tag for the HG scm 
> provider.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to