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 — Explain why src/test/verifiers is not a source root by slachiewicz · Pull Request #586 · codehaus-plexus/modello

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Aug 9, 2026

Copy link
Copy Markdown
Member

Independent of #584 and #585 — documentation only, no code touched, merges in any order.

modello-plugins/*/src/test/verifiers is compiled at test runtime, together with whatever the generator just produced, because a verifier asserts against classes that do not exist before then. Nothing in the tree records that, so both reasonable assumptions about it — that it is a fixture directory, or that someone forgot to add build-helper — look correct and are wrong.

The part worth writing down is the consequence, which cost real time to discover:

Tooling that works from Maven source roots does not see this tree, and does not see it silently.

A JUnit 4 to JUnit 5 migration recipe reported success here having rewritten none of the 29 verifiers. Formatters, static analysis, IDE indexing and automated refactoring all behave the same way.

The note also covers two things that are easy to get wrong when editing a verifier: the directory name is the verifierId with no compile-time link to the test that uses it, and mvn install/mvn verify is the command to run rather than mvn test — under mvn test this repo reports 5 NullPointerExceptions on any branch including master, because getModelloVersion() reads a pom.properties that maven-archiver only writes at package time.

Happy to trim it if it reads as too much for a README; I erred toward writing down what I had to work out by reading the harness.

Generated-by: Claude Opus 5 (1M context)

Sorry, something went wrong.

Uh oh!

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

All reactions
@slachiewicz
Explain why src/test/verifiers is not a source root
218a92a
The tree is compiled at test runtime, together with whatever the generator
just produced, because a verifier asserts against classes that do not exist
before then. Nothing records that, so the reasonable assumptions - that it
is a fixture, or that build-helper simply forgot it - both look right.

The part worth writing down is the consequence: tooling that works from
Maven source roots skips this tree, and skips it silently. A JUnit 4 to
JUnit 5 migration reported success here having rewritten none of the 29
verifiers.

Generated-by: Claude Opus 5 (1M context)
@slachiewicz slachiewicz added the documentation Improvements or additions to documentation label Aug 9, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review August 9, 2026 22:26
@slachiewicz
slachiewicz merged commit 5cf7757 into master Aug 9, 2026
12 checks passed

Uh oh!

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

@slachiewicz
slachiewicz deleted the agent/document-verifier-tree branch August 9, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

documentation Improvements or additions to documentation

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@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.