You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christian Moser (JIRA)" <ji...@codehaus.org> on 2010/04/29 16:00:14 UTC
[jira] Created: (MRELEASE-550) Version incrementation in non
interactive release (batch-mode / -B)
Version incrementation in non interactive release (batch-mode / -B)
-------------------------------------------------------------------
Key: MRELEASE-550
URL: http://jira.codehaus.org/browse/MRELEASE-550
Project: Maven 2.x Release Plugin
Issue Type: Improvement
Affects Versions: 2.1
Environment: Windows 7, jdk1.6.0_17
Reporter: Christian Moser
Attachments: versionIncrementation.patch
This feature makes it possible to configure the incrementation process in batch-mode.
As default the release plugin increments the patch-level digit and adds -SNAPSHOT after a release has been executed. e,g
1.3.3-SNAPSHOT --> 1.3.3 --> *1.3.4-SNAPSHOT*
With the following feature, the user will be allowed by setting a property in the release:prepare goal to change this behavior
-DdevVersionIncrementation=2
1.3.3-SNAPSHOT --> 1.3.3 --> *1.4.0-SNAPSHOT*
or (-DdevVersionIncrementation=1)
1.3.3-SNAPSHOT --> 1.3.3 --> *2.0.0-SNAPSHOT*
the default value is -DdevVersionIncrementation=3 and will increment the patch-level digit as usual.
In the attachment you'll find a patch for the fully implemented feature, I'd very thankful if someone could insert it into the next version.
--
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
[jira] (MRELEASE-550) Version incrementation in non interactive
release (batch-mode / -B)
Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRELEASE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MRELEASE-550.
-----------------------------------
Resolution: Duplicate
> Version incrementation in non interactive release (batch-mode / -B)
> -------------------------------------------------------------------
>
> Key: MRELEASE-550
> URL: https://jira.codehaus.org/browse/MRELEASE-550
> Project: Maven 2.x Release Plugin
> Issue Type: Improvement
> Components: prepare
> Affects Versions: 2.1
> Environment: Windows 7, jdk1.6.0_17
> Reporter: Christian Moser
> Attachments: devVersionIncrementation_v2.patch, versionIncrementation.patch
>
>
> This feature makes it possible to configure the incrementation process in batch-mode.
> As default the release plugin increments the patch-level digit and adds -SNAPSHOT after a release has been executed. e,g
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.3.4-SNAPSHOT*
> With the following feature, the user will be allowed by setting a property in the release:prepare goal to change this behavior
> -DdevVersionIncrementation=2
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.4.0-SNAPSHOT*
> or (-DdevVersionIncrementation=1)
> 1.3.3-SNAPSHOT --> 1.3.3 --> *2.0.0-SNAPSHOT*
> the default value is -DdevVersionIncrementation=3 and will increment the patch-level digit as usual.
> In the attachment you'll find a patch for the fully implemented feature, I'd very thankful if someone could insert it into the next version.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-550) Version incrementation in non
interactive release (batch-mode / -B)
Posted by "Nicolas Grobisa (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=267440#action_267440 ]
Nicolas Grobisa commented on MRELEASE-550:
------------------------------------------
Hi Christian.
I'm leaving a few comments for when someone reads this issue, I'm not sure if this strategy would suffice.
DefaultVersionInfo handles more than the primary version parts (major, minor, incremental). If you look at the API (http://maven.apache.org/maven-release/maven-release-manager/apidocs/org/apache/maven/shared/release/versions/DefaultVersionInfo.html), you will find it also recognizes other components like "annotation revision".
Also, I'm not sure if "devVersionIncrementation" is the best choice for the parameter name. Maybe something like "increasedDevVersionIndex" would be more suitable. However, using an index of "4" for the annotation revision would be a bit confusing. Another possibility is defining the version index by name. Such as -Drelease.dev.increase.major=true"
Cheers.
> Version incrementation in non interactive release (batch-mode / -B)
> -------------------------------------------------------------------
>
> Key: MRELEASE-550
> URL: http://jira.codehaus.org/browse/MRELEASE-550
> Project: Maven 2.x Release Plugin
> Issue Type: Improvement
> Affects Versions: 2.1
> Environment: Windows 7, jdk1.6.0_17
> Reporter: Christian Moser
> Attachments: devVersionIncrementation_v2.patch, versionIncrementation.patch
>
>
> This feature makes it possible to configure the incrementation process in batch-mode.
> As default the release plugin increments the patch-level digit and adds -SNAPSHOT after a release has been executed. e,g
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.3.4-SNAPSHOT*
> With the following feature, the user will be allowed by setting a property in the release:prepare goal to change this behavior
> -DdevVersionIncrementation=2
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.4.0-SNAPSHOT*
> or (-DdevVersionIncrementation=1)
> 1.3.3-SNAPSHOT --> 1.3.3 --> *2.0.0-SNAPSHOT*
> the default value is -DdevVersionIncrementation=3 and will increment the patch-level digit as usual.
> In the attachment you'll find a patch for the fully implemented feature, I'd very thankful if someone could insert it into the next version.
--
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
[jira] (MRELEASE-550) Version incrementation in non interactive
release (batch-mode / -B)
Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRELEASE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MRELEASE-550:
------------------------------------
Component/s: prepare
> Version incrementation in non interactive release (batch-mode / -B)
> -------------------------------------------------------------------
>
> Key: MRELEASE-550
> URL: https://jira.codehaus.org/browse/MRELEASE-550
> Project: Maven 2.x Release Plugin
> Issue Type: Improvement
> Components: prepare
> Affects Versions: 2.1
> Environment: Windows 7, jdk1.6.0_17
> Reporter: Christian Moser
> Attachments: devVersionIncrementation_v2.patch, versionIncrementation.patch
>
>
> This feature makes it possible to configure the incrementation process in batch-mode.
> As default the release plugin increments the patch-level digit and adds -SNAPSHOT after a release has been executed. e,g
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.3.4-SNAPSHOT*
> With the following feature, the user will be allowed by setting a property in the release:prepare goal to change this behavior
> -DdevVersionIncrementation=2
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.4.0-SNAPSHOT*
> or (-DdevVersionIncrementation=1)
> 1.3.3-SNAPSHOT --> 1.3.3 --> *2.0.0-SNAPSHOT*
> the default value is -DdevVersionIncrementation=3 and will increment the patch-level digit as usual.
> In the attachment you'll find a patch for the fully implemented feature, I'd very thankful if someone could insert it into the next version.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MRELEASE-550) Version incrementation in non
interactive release (batch-mode / -B)
Posted by "Christian Moser (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Moser updated MRELEASE-550:
-------------------------------------
Attachment: devVersionIncrementation_v2.patch
complete fixed patch: It's not longer necessary to Release with -Dresume=false because of a bug in the previous patch
> Version incrementation in non interactive release (batch-mode / -B)
> -------------------------------------------------------------------
>
> Key: MRELEASE-550
> URL: http://jira.codehaus.org/browse/MRELEASE-550
> Project: Maven 2.x Release Plugin
> Issue Type: Improvement
> Affects Versions: 2.1
> Environment: Windows 7, jdk1.6.0_17
> Reporter: Christian Moser
> Attachments: devVersionIncrementation_v2.patch, versionIncrementation.patch
>
>
> This feature makes it possible to configure the incrementation process in batch-mode.
> As default the release plugin increments the patch-level digit and adds -SNAPSHOT after a release has been executed. e,g
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.3.4-SNAPSHOT*
> With the following feature, the user will be allowed by setting a property in the release:prepare goal to change this behavior
> -DdevVersionIncrementation=2
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.4.0-SNAPSHOT*
> or (-DdevVersionIncrementation=1)
> 1.3.3-SNAPSHOT --> 1.3.3 --> *2.0.0-SNAPSHOT*
> the default value is -DdevVersionIncrementation=3 and will increment the patch-level digit as usual.
> In the attachment you'll find a patch for the fully implemented feature, I'd very thankful if someone could insert it into the next version.
--
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
[jira] Issue Comment Edited: (MRELEASE-550) Version incrementation
in non interactive release (batch-mode / -B)
Posted by "Christian Moser (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219721#action_219721 ]
Christian Moser edited comment on MRELEASE-550 at 5/3/10 8:15 AM:
------------------------------------------------------------------
devVersionIncrementation_v2 --> complete fixed patch: It's not longer necessary to Release with -Dresume=false because of a bug in the previous patch
was (Author: onmomo):
complete fixed patch: It's not longer necessary to Release with -Dresume=false because of a bug in the previous patch
> Version incrementation in non interactive release (batch-mode / -B)
> -------------------------------------------------------------------
>
> Key: MRELEASE-550
> URL: http://jira.codehaus.org/browse/MRELEASE-550
> Project: Maven 2.x Release Plugin
> Issue Type: Improvement
> Affects Versions: 2.1
> Environment: Windows 7, jdk1.6.0_17
> Reporter: Christian Moser
> Attachments: devVersionIncrementation_v2.patch, versionIncrementation.patch
>
>
> This feature makes it possible to configure the incrementation process in batch-mode.
> As default the release plugin increments the patch-level digit and adds -SNAPSHOT after a release has been executed. e,g
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.3.4-SNAPSHOT*
> With the following feature, the user will be allowed by setting a property in the release:prepare goal to change this behavior
> -DdevVersionIncrementation=2
> 1.3.3-SNAPSHOT --> 1.3.3 --> *1.4.0-SNAPSHOT*
> or (-DdevVersionIncrementation=1)
> 1.3.3-SNAPSHOT --> 1.3.3 --> *2.0.0-SNAPSHOT*
> the default value is -DdevVersionIncrementation=3 and will increment the patch-level digit as usual.
> In the attachment you'll find a patch for the fully implemented feature, I'd very thankful if someone could insert it into the next version.
--
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