Skip to content

Use the resolver's own HTTP transport in the report plugin tests - #3414

Merged
slachiewicz merged 1 commit into
apache:masterfrom
slachiewicz:test-native-resolver-transport
Aug 8, 2026
Merged

slachiewicz merged 1 commit into
apache:masterfrom
slachiewicz:test-native-resolver-transport

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

maven-surefire-report-plugin's test classpath carried two artifacts to give Resolver a way of speaking HTTP:

<artifactId>maven-resolver-transport-wagon</artifactId>
<artifactId>wagon-http-lightweight</artifactId>

Resolver has had its own HTTP transport since 1.0, so maven-resolver-transport-http at the same ${resolverVersion} (1.9.27 here) does the same job on its own. maven-resolver-connector-basic is untouched β€” that is the connector, not the transport.

wagon-http-lightweight is additionally marked for removal in Wagon 4.0.0, and nothing in these tests needs a Wagon provider in particular; it was only ever the thing on the other side of the wagon transport.

Verified: mvn -pl maven-surefire-report-plugin test gives 13 tests, 0 failures, both before and after.

This came out of a survey of how Maven projects actually depend on Wagon. The identical pattern is being changed in apache/maven-project-info-reports-plugin#648 and apache/maven-checkstyle-plugin#681. It deliberately is not being changed in maven-doap-plugin: its tests resolve through the legacy maven-compat WagonManager, which looks up a Wagon by protocol, so a resolver transport cannot stand in β€” swapping it there fails with Cannot find wagon which supports the requested protocol: https.

The test classpath carried maven-resolver-transport-wagon together with
wagon-http-lightweight purely so that Resolver had some way of speaking
HTTP. Resolver has shipped its own HTTP transport for years, so one
dependency does what two did.

wagon-http-lightweight is also marked for removal in Wagon 4.0.0, and
nothing here needs a Wagon provider specifically.
@slachiewicz slachiewicz added dependencies Pull requests that update a dependency file maintenance labels Aug 8, 2026
@slachiewicz
slachiewicz merged commit be93038 into apache:master Aug 8, 2026
27 of 28 checks passed
@github-actions github-actions Bot added this to the 3.6.0-M2 milestone Aug 8, 2026
@slachiewicz
slachiewicz deleted the test-native-resolver-transport branch August 8, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant