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 — Depend on maven-api-xml at compile and maven-xml at runtime by slachiewicz · Pull Request #96 · codehaus-plexus/plexus-xml

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Aug 17, 2026

Copy link
Copy Markdown
Member

After #94 the main sources import three Maven types — XmlNode twice and XmlService once — and all of them
live in maven-api-xml. maven-xml is needed only at runtime, where XmlService loads its implementation through
ServiceLoader and Xpp3Dom.mergeXpp3Dom reaches it.

+- org.apache.maven:maven-api-xml:jar:4.0.0-rc-6:compile
|  \- org.apache.maven:maven-api-annotations:jar:4.0.0-rc-6:compile
+- org.apache.maven:maven-xml:jar:4.0.0-rc-6:runtime
|  +- com.fasterxml.woodstox:woodstox-core:jar:7.2.1:runtime
|  \- org.codehaus.woodstox:stax2-api:jar:4.3.0:runtime

Consumers keep maven-api-xml transitively at compile, which is what Xpp3Dom.getDom() and the XmlNode
constructors need. What they lose from their compile classpath is org.apache.maven.internal.* together with
maven-xml's own compile transitives, woodstox-core and stax2-api — worth a line in the 4.2.0 release notes,
since anything that was compiling against those was reaching past the API.

Inside Maven 4 nothing moves: plugin and extension resolution includes runtime-scoped transitives, and the api
classes come from core's exported maven-api-xml either way.

The org.eclipse.sisu.plexus exclusion goes with the old stanza. maven-xml declares that dependency at provided
scope, which never propagates; the dependency tree above is unchanged by its removal.

Verified: mvn verify → 217 tests, 0 failures.

This change was created with AI assistance.

Sorry, something went wrong.

Uh oh!

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

All reactions
@slachiewicz
Depend on maven-api-xml at compile and maven-xml at runtime
f5f5df7
Main sources import three Maven types and all live in maven-api-xml:
XmlNode and XmlService. maven-xml is needed only at runtime, where
XmlService loads its implementation through ServiceLoader and
Xpp3Dom.mergeXpp3Dom reaches it.

Consumers keep maven-api-xml transitively at compile, which is what
Xpp3Dom.getDom() and the XmlNode constructors need. What they lose is
org.apache.maven.internal.* and maven-xml's own compile transitives,
woodstox-core and stax2-api.

The sisu-plexus exclusion goes with it: maven-xml declares that
dependency at provided scope, which never propagates.
@slachiewicz slachiewicz added the dependencies Pull requests that update a dependency file label Aug 17, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review August 17, 2026 15:03
@slachiewicz
slachiewicz requested review from gnodet and a lite review from Copilot August 17, 2026 15:52
Copilot started reviewing on behalf of slachiewicz August 17, 2026 16:46
View session
Copilot AI reviewed Aug 17, 2026
View reviewed changes

Copilot AI 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.

Pull request overview

This PR adjusts dependency scopes so plexus-xml compiles against Maven’s public XML API (maven-api-xml) while keeping maven-xml only as a runtime dependency for XmlService’s ServiceLoader-provided implementation.

Changes:

  • Introduces a mavenXmlVersion property to centralize the Maven XML artifact version.
  • Adds org.apache.maven:maven-api-xml as a compile dependency.
  • Changes org.apache.maven:maven-xml to runtime scope and removes the now-unnecessary org.eclipse.sisu.plexus exclusion.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sorry, something went wrong.

Uh oh!

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

All reactions
@slachiewicz
slachiewicz merged commit 38c200b into master Aug 18, 2026
24 of 28 checks passed

Uh oh!

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

@slachiewicz
slachiewicz deleted the split-maven-xml-scopes branch August 18, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@gnodet gnodet Awaiting requested review from gnodet

Uh oh!

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

Assignees

No one assigned

Labels

dependencies Pull requests that update a dependency file

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.

2 participants

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