GitHub user hyPiRion opened a pull request:
WAGON-449 Recreate http-wagon client when connection manager is changed
This is a fix for the bug report
WAGON-449(https://issues.apache.org/jira/browse/WAGON-449). It changes the CLIENT field to a nonfinal field so that it can be updated, and then recreates it whenever `setPoolingHttpClientConnectionManager` is set. This means that the new client will actually be generated from the newly set connection manager.
As this this includes setting CLIENT to a nonfinal field, its name is changed to httpClient to satisfy naming conventions.
I have tried to make this pull request as close to what seems to be the convention this project uses, but I may have missed things as I am not mainly a Java programmer nor uses Maven extensively. Please feel free to mention anything that I may have missed or would make it easier for you folks to apply this patch.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hyPiRion/maven-wagon
Alternatively you can review and apply these changes as the patch at:
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21
Author: Jean Niklas L'orange <firstname.lastname@example.org>
WAGON-449 Use new connection manager when set
Recreate the http-wagon CLIENT after calling
This also includes setting CLIENT to a nonfinal field, and as a result
its name is changed to httpClient to satisfy naming conventions.