Skip to content

fix: Use DomTrip for POM parsing#2526

Open
cstamas wants to merge 1 commit into
jbangdev:mainfrom
cstamas:use-domptrip
Open

fix: Use DomTrip for POM parsing#2526
cstamas wants to merge 1 commit into
jbangdev:mainfrom
cstamas:use-domptrip

Conversation

@cstamas

@cstamas cstamas commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Use DomTrip, a modern (round-trip capable) XML library instead of legacy Maven model. Latter drags in a lot of legacy, and is not future proof, while DomTrip is (unless structure of POM changes so much that tags are not in place). This also shaves off 500 KB of dependencies, as domptrip two modules are circa 500 KB less than maven-model + deps. Just stay away from legacy.

Also, fix the logic, as if POM has parent, G and V may come from it.

DomTrip is nice to have anyway, as it is not Maven specific (but has Maven supporting module) in a "swiss army knife" like project as JBang is.

Use DomTrip, a modern (round-trip capable) library instead of
legacy Maven model. Latter drags in a lot of legacy, and is not
future proof, while DomTrip is (unless structure of POM changes
so much that tags are not in place).

Also, fix the logic, as if POM has parent, G and V may come
from it.

DomTrip is nice to have anyway, as it is not Maven specific
(but has Maven supporting module) in a "swiss army knife"
like project like JBang is.
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • ai-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 967a5512-242d-48b5-8957-f49ad54ce030

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cstamas cstamas marked this pull request as ready for review June 10, 2026 08:31
@cstamas cstamas mentioned this pull request Jun 10, 2026
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