Skip to content

docs: document plugin.xml V4 vs V3 - #13260

Merged
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:backport/13253-to-4.0.x
Sep 24, 2026
Merged

gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:backport/13253-to-4.0.x

Conversation

@gnodet

@gnodet gnodet commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Backport of #13253 (4398d65) to maven-4.0.x.

Cherry-pick applied cleanly with no conflicts.

- Add dedicated site documentation for the V3 plugin.mdo model in compat/maven-plugin-api, cross-linking to the V4 documentation
- Add dedicated site documentation for the V4 plugin.mdo model in api/maven-api-plugin, cross-linking to the V3 documentation
- Fill in missing descriptions for goalPrefix, isolatedRealm, inheritedByDefault, executeLifecycle, composer, parameters, configuration and roleHint fields in both V3 and V4 plugin.mdo
- Remove incorrect defaultValue 'runtime' from requiresDependencyResolution (MojoDescriptor initialises this field to null by default)
- Fix grammar: 'immutable models' -> 'immutable model' in index.md
- Fix typo: 'wrong this documentation' -> 'wrong with this documentation'
@gnodet gnodet added documentation Improvements or additions to documentation backport labels Sep 24, 2026
@gnodet gnodet added this to the 4.0.0 milestone Sep 24, 2026

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backport of #13253 reviewed and approved.

Docs and model (V3 + V4): All previously empty descriptions are now filled in — goalPrefix, isolatedRealm, inheritedByDefault, executeLifecycle, composer, parameters, resolutions, roleHint in the V4 mdo; full model with documented fields in the new V3 mdo. Zero empty descriptions remain in either file. {@code} usage consistent with the established V4 mdo convention.

compat/maven-plugin-api/pom.xml: Modello xdoc execution added at generate-sources phase — documentation generation only, no behaviour change, no new compat-layer logic. Version inherited from parent pluginManagement (2.8.1). No explicit pin needed.

site.xml: Dropping the lifecycle-mappings.html nav entry is correct — that file was never generated (no modello lifecycle execution was configured in this module before this PR, on either maven-4.0.x or master), so the entry was a dead link.

Links: Relative paths in .md files (./plugin.html, ../../api/maven-api-plugin/) are consistent with the site layout.

Note: This backport lands while the original PR #13253 is not yet merged to master — the commit 4398d6569d referenced in the PR body is a branch commit, not a master commit. The content is approved there, so no functional concern — but the ordering should be confirmed by the original author (@hboutemy) before merge.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet
gnodet merged commit 2de5077 into apache:maven-4.0.x Sep 24, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants