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

ASF GitHub Bot commented on SCM-729:
------------------------------------

jira-importer commented on issue #936:
URL: https://github.com/apache/maven-scm/issues/936#issuecomment-2964634177

   **[Daniel 
Soria](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=soriad)** 
commented
   
   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)
   
   ```
   @Mojo( name = "perform", aggregator = true, requiresProject = false )
   public class PerformReleaseMojo
       extends AbstractScmReleaseMojo
   {
   ```
   
   Now I can run my modified release plugin:
   
   ```
   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 
   ```
   
   The git clone command generated is
   
   ```
   [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
   ```
   
   As you can see to implement the improvement is quite trivial.
   




> Ability to specify tag for release:perform
> ------------------------------------------
>
>                 Key: SCM-729
>                 URL: https://issues.apache.org/jira/browse/SCM-729
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Improvement
>          Components: maven-scm-provider-mercurial (hg)
>    Affects Versions: 1.8.1
>            Reporter: Gili
>            Priority: Major
>
> 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
(v8.20.10#820010)

Reply via email to