Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not set legacy proxy from maven or env (#7072) #7074

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

stklcode
Copy link
Contributor

Fixes Issue

#7072

Description of Change

The Apache HTTPClient based downloader supports http(s).proxy* properties, so we do not need to use legacy logic. In legeacy mode http.nonProxyHosts is not honored, so setting both leads to issues due to missing proxy selectors.

Omit populating legacy properties resolves this issue. In addition we have to move the password decryption from Maven settings up, so it actually works.

Have test cases been added to cover the new functionality?

no

@boring-cyborg boring-cyborg bot added the maven changes to the maven plugin label Oct 22, 2024
@stklcode stklcode marked this pull request as ready for review October 22, 2024 20:05
@aikebah aikebah self-assigned this Oct 23, 2024
…emylong#7074)

The Apache HTTPClient based downloader supports http(s).proxy*
properties, so we do not need to use legacy logic. In legacy mode
http.nonProxyHosts is not honored, so setting both leads to issues due
to missing proxy selectors.

Omit populating legacy properties resolves this issue. In addition, we
have to move the password decryption from Maven settings up, so it
actually works.

Signed-off-by: Stefan Kalscheuer <[email protected]>
@aikebah aikebah added this to the 11.0.1 milestone Oct 23, 2024
Copy link
Owner

@jeremylong jeremylong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aikebah aikebah merged commit e2009ca into jeremylong:main Oct 23, 2024
9 checks passed
@aikebah
Copy link
Collaborator

aikebah commented Oct 23, 2024

@stklcode Thanks for the PR

@stklcode stklcode deleted the fix/7072-proxy branch October 23, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maven changes to the maven plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants