Add update-interactive goal
---------------------------
Key: MVERSIONS-126
URL: http://jira.codehaus.org/browse/MVERSIONS-126
Project: Maven 2.x Versions Plugin
Issue Type: New Feature
Reporter: Stefan Seelmann
Attachments: update-interactive.patch
I wrote a new goal that allows interactive update of parent, properties, and
dependency versions.
When invoked the user is prompted to select a version for each artifact. The
available updates are grouped into incremental, minor, and major updates. In
each group the latest version number is on top. The version can be selected via
a number. Additionally the user can select some characters with special meaning.
If a incremental update is available the 'i' (=latest incremental version) is
the default of the promt, otherwise the 'n' (=skip update) is the default. This
way the user can always press 'Enter' and gets all incremental updates.
For 'i' and 'n' the upper-cased counterparts are used to define that the latest
incremental version for all artifacts should be used ('I') or that all
remaining artifact updates should be skipped ('N').
The output looks as follows (invoked against the versions plugin itself):
Available version updates for parent org.codehaus.mojo:mojo-parent:pom:24
n: Skip version update
N: Skip version update for all remaining artifacts
o: Other version (manual input)
I: Latest incremental version for all remaining artifacts
-- Major Updates --
1: 25
Choose version update for parent org.codehaus.mojo:mojo-parent:pom:24
(n/N/o/I/1) n: :
-> Update of the parent, here only a major update is available, so the prompt's
default is 'n' which skips the update
...
Available version updates for property ${mavenVersion}=2.0.6
n: Skip version update
N: Skip version update for all remaining artifacts
o: Other version (manual input)
I: Latest incremental version for all remaining artifacts
-- Incremental Updates --
i: Latest incremental version
1: 2.0.11
2: 2.0.10
3: 2.0.9
4: 2.0.8
5: 2.0.7
-- Minor Updates --
6: 2.2.1
7: 2.2.0
8: 2.1.0
9: 2.1.0-M1
Choose version update for property ${mavenVersion}=2.0.6
(n/N/o/I/i/1/2/3/4/5/6/7/8/9) i: :
-> Update of a property, here incremental updates are available, so the
prompt's default is 'i', that would choose 2.0.11
...
Available version updates for dependency
org.codehaus.woodstox:wstx-asl:jar:3.2.7
n: Skip version update
N: Skip version update for all remaining artifacts
o: Other version (manual input)
I: Latest incremental version for all remaining artifacts
-- Incremental Updates --
i: Latest incremental version
1: 3.2.9
2: 3.2.8
Choose version update for dependency org.codehaus.woodstox:wstx-asl:jar:3.2.7
(n/N/o/I/i/1/2) i: :
-> Update of a dependency, here incremental updates are available, so the
prompt's default is 'i', that would choose 3.2.9
...
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email