Skip to content

Fix default-bindings doc snippet to reference PluginVersions - #13140

Merged
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:fix/plugin-versions-snippet-40x
Sep 15, 2026
Merged

gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:fix/plugin-versions-snippet-40x

Conversation

@gnodet

@gnodet gnodet commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #13137.

The default-bindings.md.vm doc page uses a MACRO{snippet|id=versions|...} to render the plugin version constants. It was pointing at AbstractLifecycleMappingProvider.java, which no longer contains those constants after #13137 removed them.

Fix:

  • Add // START SNIPPET: versions / // END SNIPPET: versions markers to PluginVersions.java
  • Update default-bindings.md.vm to point to PluginVersions.java

The same fix is included in #13138 for master.

…AbstractLifecycleMappingProvider

The 'versions' snippet in default-bindings.md.vm was referencing
AbstractLifecycleMappingProvider.java, which no longer contains the
version constants after the backport of apache#13080. Point it to
PluginVersions.java and add the required START/END SNIPPET markers.
@gnodet gnodet added this to the 4.0.0-rc-7 milestone Sep 15, 2026
@gnodet gnodet added the enhancement New feature or request label Sep 15, 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.

Minimal, correct fix. AbstractLifecycleMappingProvider on maven-4.0.x no longer carries the version constants after #13137, so the snippet macro was broken. Adding // START SNIPPET: versions / // END SNIPPET: versions markers to PluginVersions.java and redirecting the macro reference is the right approach, consistent with how the master branch (#13138) handles it.

No logic change — just comment markers and a path update.

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

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants