slachiewicz opened a new pull request, #1452: URL: https://github.com/apache/maven-javadoc-plugin/pull/1452
## What changed - Replaced `org.apache.httpcomponents:httpclient` 4.5.14 and `httpcore` 4.4.16 with `org.apache.httpcomponents.client5:httpclient5` 5.6.5 and `org.apache.httpcomponents.core5:httpcore5` 5.5. - Updated `JavadocUtil` to the HttpClient 5 classic API: package names, response status access, redirect locations, request timeouts, cookie policy, and proxy credentials. - Scoped proxy credentials to the configured proxy host instead of `AuthScope.ANY`. ## Why HttpComponents 4.x is end of life. The plugin uses it only when fetching remote `package-list` and `element-list` resources for the `links` parameter, so this change keeps that path on a supported stack. ## Verification - `mvn -q -B -N spotless:check` on JDK 17: passed. - `mvn -q -B test` on JDK 17: 83 tests run, 0 failures, 0 errors, 8 skipped. - `mvn -B -Prun-its verify -DskipTests -Dinvoker.test=MJAVADOC-427` on JDK 17: passed. This IT follows a 301 redirect against a localhost mock server and exercises the remote Javadoc fetch path. ## Risk The change is limited to dependency coordinates and one utility class. `httpclient5` 5.6.5 brings `httpcore5-h2` 5.4.4 transitively while the direct `httpcore5` dependency is 5.5. The covered HTTP/1.1 paths pass; the plugin does not use HTTP/2. -- 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]
