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

Konrad Windszus commented on MRELEASE-1072:
-------------------------------------------

This only happens with SubversionScmTranslater as that always returns {{null}} 
for {{resolveTag}}  
(https://github.com/apache/maven-release/blob/a9e30c63ea8071234e9a7bb1f433178963ecf93c/maven-release-manager/src/main/java/org/apache/maven/shared/release/scm/SubversionScmTranslator.java#L61)
 which is called from 
https://github.com/apache/maven-release/blob/a9e30c63ea8071234e9a7bb1f433178963ecf93c/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/RewritePomsForDevelopmentPhase.java#L68.
 

IMHO in case the {{ScmTranslator}} does return {{null}} rather the original tag 
should be reused in {{RewritePomsForReleasePhase}} as very often the tag is 
used as property in the URLs (like in 
https://github.com/apache/maven-javadoc-plugin/blob/e4438401582c1e1e19cdd4f6c21f05f443e7f56e/pom.xml#L50).

> scm.tag removed for next snapshot during prepare
> ------------------------------------------------
>
>                 Key: MRELEASE-1072
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-1072
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>            Reporter: Konrad Windszus
>            Priority: Major
>
> In case the original {{project.scm}} section contains a tag element (e.g. 
> with value "trunk") this is removed during prepare for the next snapshot 
> version. The tagged/release version contains the properly adjusted tag 
> element.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to