Spring Web module's Maven POM is missing an (optional) dependency to Apache HttpComponents HTTPClient library (Gradle one does have it) #30943
Labels
status: duplicate
A duplicate of another issue
Affects: 6.0.11
Hello Folks,
In the Spring (Spring Web) documentation for HttpComponentsClientHttpRequestFactory it states the below,
When I look at the code for HttpComponentsClientHttpRequestFactory.java I can also clearly see corresponding imports & references to Apache HttpComponents HTTPClient.
However when I look at Spring Web's (maven) dependency declaration (or its POM) I don't see Apache HttpComponents HTTPClient declared as a dependency.
Shouldn't Apache HttpComponents HTTPClient library be declared at least as an optional dependency (
<optional>true</optional>
) of Spring Web?Note that I do see that it is declared as an optional dependency in the gradle build which may explain how the build works fine.
Could the org.springframework.build.optional-dependencies plugin have a play in this? Or am I missing something?
Note: Here is the stack overflow question that I had asked earlier with more details if needed.
Thanks
Muthu
The text was updated successfully, but these errors were encountered: