Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2716477B4 for ; Wed, 3 Aug 2011 13:00:10 +0000 (UTC) Received: (qmail 20242 invoked by uid 500); 3 Aug 2011 13:00:09 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 19723 invoked by uid 500); 3 Aug 2011 13:00:08 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 19700 invoked by uid 99); 3 Aug 2011 13:00:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 13:00:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 13:00:03 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id ADFB4458030 for ; Wed, 3 Aug 2011 07:59:42 -0500 (CDT) Date: Wed, 3 Aug 2011 07:59:42 -0500 (CDT) From: "Geoffrey De Smet (JIRA)" To: issues@maven.apache.org Message-ID: <186872.29236.1312376382535.JavaMail.haus-jira@codehaus01.managed.contegix.com> In-Reply-To: <15702406.29218.1312373442503.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Commented: (MRELEASE-699) release:update-versions should support -DreleaseVersion too (not only -DdevelopmentVersion), so it also supports not suffixing the version with -SNAPSHOT MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 [ https://jira.codehaus.org/browse/MRELEASE-699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274900#comment-274900 ] Geoffrey De Smet commented on MRELEASE-699: ------------------------------------------- I patched this, please pull my changes: https://github.com/apache/maven-release/pull/2 This fix also fixes the fact that RewritePomVersionsPhase.getOriginalVersionMap() was inaccurate (although that did not seem to have any bad effect). > release:update-versions should support -DreleaseVersion too (not only -DdevelopmentVersion), so it also supports not suffixing the version with -SNAPSHOT > --------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: MRELEASE-699 > URL: https://jira.codehaus.org/browse/MRELEASE-699 > Project: Maven 2.x Release Plugin > Issue Type: Improvement > Reporter: Geoffrey De Smet > > The documentation > http://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html > states "The update-versions goal can use the same properties used by the prepare goal for specifying the versions to be used." > That's not true, as releaseVersion is not supported: > http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#releaseVersion > This means, that if you do this: > mvn --batch-mode release:update-versions -DdevelopmentVersion=1.2.0 > that the set version is not 1.2.0, but in fact 1.2.0-SNAPSHOT. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira