Skip to content

test: add failing test for Maven 4 built libraries (#793)#815

Draft
skhokhlov wants to merge 2 commits intomasterfrom
issue-793-test
Draft

test: add failing test for Maven 4 built libraries (#793)#815
skhokhlov wants to merge 2 commits intomasterfrom
issue-793-test

Conversation

@skhokhlov
Copy link
Copy Markdown
Member

Libraries built with Maven 4 (e.g. jline 4.0.0) bundle consumer POMs using the 4.1.0 XML namespace with empty elements. The MavenXpp3Reader creates Parent objects with null fields, causing a NullPointerException in MavenHelper.retrieveParentProject().

Libraries built with Maven 4 (e.g. jline 4.0.0) bundle consumer POMs using the 4.1.0 XML namespace with empty <parent/> elements. The MavenXpp3Reader creates Parent objects with null fields, causing a NullPointerException in MavenHelper.retrieveParentProject().

Signed-off-by: Sergey Khokhlov <me@skhlv.com>
@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 1, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 5 complexity . 1 duplication

Metric Results
Complexity 5
Duplication 1

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

Libraries built with Maven 4 bundle consumer POMs using the 4.1.0 XML namespace. MavenXpp3Reader parses the empty <parent/> element into a Parent object with all-null fields, causing a NullPointerException in retrieveParentProject(). Add null guards on parent group/artifact/version before attempting to construct the parent POM path.

Signed-off-by: Sergey Khokhlov <me@skhlv.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant