[ 
http://jira.codehaus.org/browse/MRELEASE-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195310#action_195310
 ] 

Mike Dillon commented on MRELEASE-477:
--------------------------------------

The release plugin checks out the "tag" that was created and builds it. From 
the perspective of the build, the code that is seen and the fact that it is 
unmodified from the repository is 100% equivalent. It seems like your objection 
is that the "tag" differs from the revision that it was tagged off of in the 
source code line. I can't see how this is an issue for a pre-tagging workflow 
like maven-release-plugin supports.

> Add a commitBeforeTag option for release:prepare to allow skipping 
> scm-commit-release
> -------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-477
>                 URL: http://jira.codehaus.org/browse/MRELEASE-477
>             Project: Maven 2.x Release Plugin
>          Issue Type: Improvement
>          Components: prepare
>            Reporter: Mike Dillon
>
> As detailed in this thread, there can be reproducibility problems with 
> committing to the source branch (e.g. trunk) before tagging:
>     http://www.nabble.com/Limitation-of-the-release-plugin--to20822478.html
> In the now default case where remoteTagging is true, the commit to the source 
> branch is necessary to get the source into the right state before doing the 
> remote copy. However, when remoteTagging is false, the extra commit means 
> that between the user's initial checkout and the automatic commit to the 
> source branch, other changes could have been committed which will mean that 
> the new tag will not have been created from a single, consistent revision of 
> the source branch.
> My proposed fix for this is to add a commitBeforeTag option that would cause 
> scm-commit-release to be skipped during release:prepare. It would be an error 
> to have commitBeforeTag=false when remoteTagging=true since the commit before 
> tag must be done in the remote tagging scenario.
> I can provide a patch if this approach is acceptable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to