Skip to content

Add test for prefixed Maven elements#10971

Open
elharo wants to merge 3 commits into
masterfrom
prefix
Open

Add test for prefixed Maven elements#10971
elharo wants to merge 3 commits into
masterfrom
prefix

Conversation

@elharo

@elharo elharo commented Jul 21, 2025

Copy link
Copy Markdown
Contributor

I was pleasantly surprised that this test passed.

@gnodet

gnodet commented Jul 21, 2025

Copy link
Copy Markdown
Contributor

I was pleasantly surprised that this test passed.

Things have been improved a lot in Maven 4...

@elharo
elharo marked this pull request as ready for review March 16, 2026 12:29
@gnodet gnodet added the mvn4 label Jun 22, 2026

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review: Add test for prefixed Maven elements

Good regression test — XML namespace prefixes (e.g., <mvn:project> instead of <project>) are a valid but rarely used XML feature that could easily break in POM parsers. This covers a genuine edge case.

The test follows the established pattern in DefaultMavenTest exactly: getProject(name) → create execution request with validate goal → execute → check result. The companion prefix/pom.xml correctly uses the mvn: prefix on all elements.

The drive-by fix of "Error" → "Errors" in testThatErrorsDuringProjectDependencyGraphCreationAreStored is a welcome typo correction.

LGTM — no issues found.


This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of Guillaume Nodet

gnodet added a commit to gnodet/maven that referenced this pull request Jul 10, 2026
Reviewed 3 PRs: apache#2333 (server aliases, clean), apache#10971 (test, LGTM),
apache#11186 (namespace validation, needs rework). 18 reviews total.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@elharo

elharo commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

Can someone press the approve button?

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants