Skip to content

Fix and complete mvnup documentation - #1848

Open
gnodet wants to merge 1 commit into
apache:masterfrom
gnodet:mvnup-doc-fixes
Open

gnodet wants to merge 1 commit into
apache:masterfrom
gnodet:mvnup-doc-fixes

Conversation

@gnodet

@gnodet gnodet commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Accuracy fixes and missing features added to the Maven Upgrade Tool documentation, all verified against the source code in impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/.

Accuracy fixes

  • combine attributes: invalid values are removed (not converted). Correct the valid value sets: combine.children accepts append and merge; combine.self accepts override, merge, and remove
  • --all flag: fix -all (single dash) → --all (double dash)
  • --all semantics: clarify it implies --model-version 4.1.0 (not just 'all options at current model version')
  • Default behavior: --model + --plugins + --infer at model 4.0.0; previously described ambiguously as 'all available updates'
  • --infer description: it removes redundant info (inferred from parent), not duplicate info (that's --model)
  • Phase name upgrade: only applies when targeting model 4.1.0

Missing features added

  • .mvn/extensions.xml compatibility fixes (os-maven-plugin → Nisse extension)
  • HTTP→HTTPS repository URL upgrade (RepositoryHttpsUpgradeStrategy)
  • Automatic-Module-Name manifest fix (ModuleNameFixStrategy)
  • -i short form for --infer documented
  • --all listed as an explicit upgrade option with its full equivalent

Stale content removed

Wording

  • Intro note: drop spurious 'basic' before guide link
  • 'Build POM' jargon removed from usage description
  • Example descriptions corrected ('Upgrade all plugins and models' → accurate description)
  • 'Validates if' → 'Check what ... would change' (since check is dry-run, not validation)

Accuracy fixes (verified against source code):
- combine.children/combine.self: invalid values are REMOVED, not
  converted; correct the valid value sets (children: append+merge,
  self: override+merge+remove)
- --all flag: fix single-dash '-all' to '--all' (double dash)
- --all implies --model-version 4.1.0 (not just 'all options')
- Default behavior: --model + --plugins + --infer at model 4.0.0
  (not 'all updates' which was ambiguous)
- --infer description: redundant info removal, not duplicate removal
- Phase name upgrade only applies when targeting model 4.1.0

Missing features added:
- .mvn/extensions.xml compatibility fixes (os-maven-plugin → Nisse)
- HTTP→HTTPS repository URL upgrade (RepositoryHttpsUpgradeStrategy)
- Automatic-Module-Name manifest fix (ModuleNameFixStrategy)
- -i short form for --infer documented
- --all listed as an explicit upgrade option with its full equivalent

Stale content removed:
- TODO/editorial note referencing merged PR #10915
- Windows-specific prompt from output example (use $ prompt instead)

Wording improvements:
- Intro note: drop 'basic' before guide link
- 'Build POM' jargon removed from usage description
- 'Specific upgrades' example descriptions corrected
- 'Validates if' → 'Check what ... would change' (check is dry-run)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant