Commit f8ed84c
authored
* Remove unused --force and --yes options from mvnup tool
Fixes #11001
The mvnup tool displayed --force and --yes options in its help output,
but these options were never actually used by the tool. The 'apply' goal
always saves modifications without prompting, making these options
misleading to users.
Changes:
- Removed force() and yes() methods from UpgradeOptions API interface
- Removed CLI option parsing for --force/-f and --yes/-y in CommonsCliUpgradeOptions
- Removed help text for these options from both CommonsCliUpgradeOptions.displayHelp() and Help goal
- Removed test that verified these options were included in help output
The mvnenc (encryption) tool continues to use its own force() and yes()
methods as those are actually functional in that context.
(cherry picked from commit 4b686c5)
1 parent fcb8f35 commit f8ed84c
4 files changed
Lines changed: 0 additions & 57 deletions
File tree
- api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnup
- impl/maven-cli/src
- main/java/org/apache/maven/cling/invoker/mvnup
- goals
- test/java/org/apache/maven/cling/invoker/mvnup/goals
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 36 | | |
51 | 37 | | |
52 | 38 | | |
| |||
Lines changed: 0 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 47 | | |
66 | 48 | | |
67 | 49 | | |
| |||
143 | 125 | | |
144 | 126 | | |
145 | 127 | | |
146 | | - | |
147 | | - | |
148 | 128 | | |
149 | 129 | | |
150 | 130 | | |
| |||
157 | 137 | | |
158 | 138 | | |
159 | 139 | | |
160 | | - | |
161 | | - | |
162 | 140 | | |
163 | 141 | | |
164 | 142 | | |
| |||
169 | 147 | | |
170 | 148 | | |
171 | 149 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 150 | | |
181 | 151 | | |
182 | 152 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 106 | | |
0 commit comments