FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[maven-plugin-tools-3.x] Stop depending on Wagon for nonProxyHosts matching by slachiewicz · Pull Request #1152 · apache/maven-plugin-tools · GitHub

[maven-plugin-tools-3.x] Stop depending on Wagon for nonProxyHosts matching - #1152

Merged
slachiewicz merged 1 commit into
apache:maven-plugin-tools-3.xfrom
slachiewicz:drop-wagon-provider-api-3.x
Aug 8, 2026
Merged

slachiewicz merged 1 commit into
apache:maven-plugin-tools-3.xfrom
slachiewicz:drop-wagon-provider-api-3.x

Conversation

Copy link
Copy Markdown
Member

Backport of #1151 to maven-plugin-tools-3.x. The cherry-pick was clean — JavadocSite.java is identical on the two branches.

maven-plugin-tools-api carries a compile dependency on wagon-provider-api for two classes, as its own comment says (<!-- wagon for proxy related classes -->). The whole use is building a ProxyInfo as a carrier for one string and passing it to ProxyUtils.validateNonProxyHosts. That matching is a handful of lines with nothing Maven-specific in it, so it is done in place and the dependency goes.

Verified on this branch: mvn -pl maven-plugin-tools-api test gives 48 tests, 0 failures — the 44 that were there plus the 4 new ones covering the wildcard, the escaped dot, the pipe separator and the null cases.

Why on a maintenance branch at all

3.x is the line that ships, and it is still active — this branch had a commit yesterday. Removing a compile dependency does change the published POM of a future 3.x release, so this is a judgement call rather than an obvious bugfix, and I am happy for it to be declined if you would rather 3.x took fixes only. The equivalent change for master is #1151.

maven-plugin-tools-api carried a compile dependency on wagon-provider-api
for two classes, as its own comment said: "wagon for proxy related
classes". The whole of that use was building a ProxyInfo as a carrier for
one string and handing it to ProxyUtils.validateNonProxyHosts.

The matching itself is a handful of lines with nothing Maven-specific in
it -- split on '|', treat '*' as a wildcard and '.' as a literal -- so it
is done here instead, and the dependency goes. Tests cover the wildcard,
the escaped dot, the pipe separator and the null cases.

Nothing else in plugin-tools touches Wagon.
slachiewicz added dependencies Pull requests that update a dependency file enhancement New feature or request 3.x labels Aug 8, 2026
slachiewicz merged commit 22fd241 into apache:maven-plugin-tools-3.x Aug 8, 2026
11 checks passed
github-actions Bot added this to the 3.16.0 milestone Aug 8, 2026
slachiewicz deleted the drop-wagon-provider-api-3.x branch August 8, 2026 14:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL