GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: name plugin report pages after goals by efegokdemir · Pull Request #1217 · apache/maven-plugin-tools

Conversation

@efegokdemir

@efegokdemir efegokdemir commented Sep 25, 2026

Copy link
Copy Markdown

Summary

Update per-goal plugin report pages to use the {goal}-goal.html naming convention requested in #949 while preserving compatibility for existing links.

Changes

  • Generate goal reports as {goal}-goal.html.
  • Keep {goal}-mojo.html compatibility pages as redirects by default.
  • Add maven.plugin.report.generateLegacyMojoReports to disable compatibility pages when desired.
  • Update report links, documentation, annotations, and integration assertions.

Testing

  • mvn -pl maven-plugin-report-plugin -am -DskipITs -Drat.skip -Dspotless.skip=true verify — passed.
  • Targeted plugin-report integration build generated both *-goal.html pages and legacy redirect pages. Its Groovy verification hook is blocked on this machine by the installed Java 27 runtime (Unsupported class file major version 71).
  • git diff --check — passed.

Notes

  • The complete diff was reviewed by the submitter; AI assistance was used during implementation.
  • No overlapping open PR was found for rename {goalname}-mojo.html to {goalname}-goal.html #949 or the goal.html change.

Fixes #949

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@efegokdemir
fix: name plugin report pages after goals
a7d71d5
Signed-off-by: Efe Gökdemir <[email protected]>
gnodet-bot
gnodet-bot reviewed Oct 16, 2026
View reviewed changes

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

One low-severity observation on test coverage consistency:

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread maven-plugin-report-plugin/src/it/plugin-report-400/verify.groovy Resolved

Uh oh!

There was an error while loading. Please reload this page.

@efegokdemir
Add legacy redirect assertions to plugin report IT
6d32509
@slachiewicz slachiewicz added the bug Something isn't working label Oct 29, 2026
gnodet-bot
gnodet-bot reviewed Nov 8, 2026
View reviewed changes

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Following up on my earlier review — the previous finding is now addressed, with one new gap noted below.

Previous finding:

  • 💡 Missing redirect assertions in plugin-report-400/verify.groovy → ✅ Fixed: redirect assertions added to both plugin-report-400 and plugin-report ITs.

New finding:

No integration test covers the generateLegacyMojoReports=false path. The flag guards the entire writeLegacyMojoRedirect call; without an IT that sets it to false, the branch that suppresses redirect generation is untested — if it's broken (e.g. the guard is inverted or the parameter injection fails), no IT catches it.

Add an IT that sets maven.plugin.report.generateLegacyMojoReports=false in invoker.properties (or the plugin configuration) and asserts that:

  1. {goal}-goal.html files are generated correctly.
  2. No {goal}-mojo.html redirect files are present.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...n-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/PluginReport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@efegokdemir
test: cover disabling legacy mojo report redirects
3b58ee2
gnodet-bot
gnodet-bot approved these changes Nov 8, 2026
View reviewed changes

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Following up on my earlier review — both previous findings have been fully addressed.

Previous findings:

  • ⚠️ Missing IT for generateLegacyMojoReports=false → ✅ Fixed: plugin-report-no-compat IT added, asserting both that noop-goal.html exists and that noop-mojo.html does not exist. The plugin-info.html assertions are also correct (noop-goal.html present, noop-mojo.html absent).
  • 💡 Missing redirect assertions in plugin-report-400 and plugin-report ITs → ✅ Fixed: both ITs now assert the redirect content (.text.contains('noop-goal.html')).

LGTM. The implementation is clean: writeLegacyMojoRedirect correctly propagates the filename parameter, Files.write defaults are safe for incremental builds, and the coverage gap in the plugin-report-no-compat path is fully closed.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@gnodet-bot gnodet-bot gnodet-bot approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

rename {goalname}-mojo.html to {goalname}-goal.html

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@efegokdemir @gnodet-bot @slachiewicz
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.