gnodet opened a new pull request, #14154: URL: https://github.com/apache/maven/pull/14154
## Summary Forward-port of implementation simplifications from backport PR #14144 (maven-4.0.x) that were absent on master. ## Changes - **`DefaultVersionRangeResolver`** / **`DefaultVersionResolver`**: Move trace `enter`/`exit` from the outer `resolve()` method into `doResolve()`. The trace scope should be active during the actual resolution work, not around the session request cache wrapper. Use `trace.trace()` directly instead of `RequestTraceHelper.toResolver(trace)` (equivalent, simpler). - **`DefaultProjectBuilder`**: Same pattern — trace moved from `build()` into `doBuild()`. - **`DefaultTransportProvider`**: Remove the `TransportRequest`/`TransportResult` indirection. `transport()` does not go through the session request cache, so wrapping in a request object serves no purpose. Simplified to a direct call. ## Not ported The following changes from #14144 were examined and intentionally excluded: - `DefaultDependencyResolverResult.getDispatchedPaths()` simplification — master has tests requiring inner list immutability; the simplification is incorrect here. - `DefaultToolchainsBuilder` trace removal — `RequestExecutor.request()` provides bootstrap session support and caching; removing it breaks `OperationPipelineTest`. - `DefaultNode`, `AbstractSession`, `DefaultModelBuilder`, `DefaultSettingsBuilder` — too divergent or regressive on master. Relates to #14068, #14144. --- _Hermes Agent (Claude Sonnet) on behalf of Guillaume Nodet_ -- 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]
