slachiewicz opened a new pull request, #761:
URL: https://github.com/apache/maven-doxia-sitetools/pull/761

   Since #751, consumers of 2.2.0 resolve `plexus-utils` **3.6.1** instead of 
4.0.2.
   
   Inside this build nothing changed, because maven-parent manages 
`plexus-utils` to 4.1.0. Consumers don't inherit that `dependencyManagement`. 
Without the direct declaration, nearest-wins picks 3.6.1 through `sisu.plexus` 
1.1.0. That is below the 4.0.2 that maven-scm 2.2.1 asks for in six places, and 
it puts 22 duplicate `org.codehaus.plexus.util.xml` / `.xml.pull` classes next 
to `plexus-xml` 3.0.1. 2.1.0 had none.
   
   Excluding `plexus-utils` is not an option, because `sisu.plexus` uses 
`IOUtil`, `ReaderFactory` and `InterpolationFilterReader` at runtime. A 
consumer without scm-context (the converter, or a report plugin) would resolve 
no `plexus-utils` at all.
   
   What this changes:
   
   - **doxia-site-model:** drop `sisu.plexus`. The module only needs 
`javax.inject` (`@Named`/`@Singleton`) and `plexus-xml`. Its Sisu index is 
still generated, and its tests pass without it. The dependency is a leftover 
from the Plexus → JSR-330 migration.
   - **doxia-integration-tools:** `sisu.plexus` becomes test scope. Main code 
doesn't use it; only the tests do.
   - **doxia-site-renderer:** the one module that really uses it 
(`PlexusContainer`). It keeps `sisu.plexus` and declares `plexus-utils` again, 
runtime scope, with a comment so `dependency:analyze` doesn't talk the next 
cleanup into removing it.
   
   Compatibility note: a consumer that used doxia-site-model or 
doxia-integration-tools *without* the renderer, and relied on getting 
`sisu.plexus` transitively from them, now has to declare it. maven-site-plugin 
and maven-reporting-impl both use the renderer, so they are unaffected.
   
   Verified with a consumer project against the staged 2.2.0:
   
   | Consumer resolves | plexus-utils |
   |---|---|
   | 2.2.0 as staged | 3.6.1 + duplicates |
   | with an exclusion | none |
   | with this change | 4.1.0 through the renderer, no duplicates |
   
   `mvn -Prun-its verify` passes. #<PR2> adds a check that would have caught 
this.
   
   ---
   
   - [ ] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [ ] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01PVn49rfCaqZthUxQwG2Ry2
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to