Skip to content

Conversation

@rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Dec 16, 2025

Given a dependency version range, Maven will download metadata for all possible versions before every (uncached) build. This takes a long time, before finally resolving to the latest version anyway.

Instead, we use the Maven 'versions' plugin to resolve our wide ranges to point versions. We want the "latest matching" version anyway, and if we don't the resolution now (which downloads the .poms of all possible versions) it will happen during every single build.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Given a dependency version range, Maven will download metadata for all
possible versions before every (uncached) build. This takes a long time,
before finally resolving to the latest version anyway.

Instead, we use the Maven 'versions' plugin to resolve our wide ranges
to point versions.  We want the "latest matching" version anyway,
and if we don't the resolution now (which downloads the .poms of all
possible versions) it will happen during every single build.
@rix0rrr rix0rrr requested a review from a team December 16, 2025 12:41
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 16, 2025
@rix0rrr rix0rrr merged commit ecdd223 into main Dec 22, 2025
35 checks passed
@rix0rrr rix0rrr deleted the huijbers/resolve-java-versions branch December 22, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants