Skip to content

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Aug 29, 2025

Backport

This will backport the following commits from master to maven-4.0.x:

Questions ?

Please refer to the Backport tool documentation

…ache#11001) (apache#11066)

* Remove unused --force and --yes options from mvnup tool

Fixes apache#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)
@gnodet gnodet added bug Something isn't working backport mvn40 labels Aug 29, 2025
@gnodet gnodet merged commit f8ed84c into apache:maven-4.0.x Aug 29, 2025
19 checks passed
@github-actions github-actions bot added this to the 4.0.0 milestone Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working mvn40

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant