Maven Upgrade Tool: remove unused --force and --yes options (Fixes #11001) #11066
+0
−57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR removes the unused
--forceand--yesoptions from the Maven Upgrade Tool (mvnup) per issue #11001.Background
--forceand--yes, but they were not used in the tool. Theapplygoal always saves changes, so showing these options was misleading.Changes
force()andyes()methods fromUpgradeOptionsAPI (mvnup package), as the API is not GA yet--force/-fand--yes/-yfromCommonsCliUpgradeOptionsandHelpNotes
force()andyes()options and behaviorI verified local compilation of touched files and checked that help text no longer includes the removed options. A full build could not be executed here due to transient network resolution to central; CI should validate end-to-end.
Please let me know if you would like me to open a matching PR targeting the
maven-4.0.xbranch as well.Pull Request opened by Augment Code with guidance from the PR author