gnodet opened a new pull request, #12338: URL: https://github.com/apache/maven/pull/12338
## Summary - The JDK HTTP transport (backed by methanol) has proven flaky on Windows CI with race conditions in the gzip/inflater code path (`NullPointerException: Inflater has been closed`) - Switch the default resolver transport to Apache HttpClient for better stability - JDK/methanol transport remains shipped and available via `-Dmaven.resolver.transport=jdk` - The `auto` mode still selects JDK transport (highest built-in priority) for users who want the old behavior ## Changes - `DefaultRepositorySystemSessionFactory`: the `"default"` transport mode now explicitly selects Apache instead of falling through to auto (which picks JDK) - `AbstractUpgradeStrategy` (mvnup): switched from `JdkTransporterFactory` to `ApacheTransporterFactory` - `impl/maven-cli/pom.xml`: dependency changed from `transport-jdk` to `transport-apache` - `apache-maven/pom.xml`: updated comments to reflect new default - Updated unit and integration tests ## Test plan - [x] `DefaultRepositorySystemSessionFactoryTest` passes — verifies default selects Apache - [ ] `MavenITmng7470ResolverTransportTest` — integration test verifies default transport logs `ApacheTransporter` - [ ] Full CI run on all platforms 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
