Skip to content

fix(pacmak): dependency ranges make Maven download too many files#5006

Merged
mergify[bot] merged 2 commits intomainfrom
huijbers/pacmak-resolve
Dec 16, 2025
Merged

fix(pacmak): dependency ranges make Maven download too many files#5006
mergify[bot] merged 2 commits intomainfrom
huijbers/pacmak-resolve

Conversation

@rix0rrr
Copy link
Copy Markdown
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 13:53
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 16, 2025
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 16, 2025

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Dec 16, 2025
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 16, 2025

Merging (with squash)...

@mergify mergify bot added the queued label Dec 16, 2025
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 16, 2025

Merge Queue Status

✅ The pull request has been merged at 2b13eec

This pull request spent 34 minutes 38 seconds in the queue, including 34 minutes 26 seconds running CI.
The checks were run in-place.

Required conditions to merge
  • #approved-reviews-by >= 1 [🛡 GitHub branch protection]
  • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
  • status-success=Integration test (jsii-pacmak)
  • status-success=Unit Tests
  • any of [🛡 GitHub branch protection]:
    • check-success = Integration test (jsii-pacmak)
    • check-neutral = Integration test (jsii-pacmak)
    • check-skipped = Integration test (jsii-pacmak)
  • any of [🛡 GitHub branch protection]:
    • check-success = Build
    • check-neutral = Build
    • check-skipped = Build
  • any of [🛡 GitHub branch protection]:
    • check-success = Unit Tests
    • check-neutral = Unit Tests
    • check-skipped = Unit Tests

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 16, 2025

Merging (with squash)...

@mergify mergify bot merged commit 2198295 into main Dec 16, 2025
35 checks passed
@mergify mergify bot deleted the huijbers/pacmak-resolve branch December 16, 2025 15:04
@mergify mergify bot removed pr/ready-to-merge This PR is ready to be merged. queued labels Dec 16, 2025
rix0rrr added a commit that referenced this pull request Dec 30, 2025
In #5006 we added a command to make
Maven resolve all the wide open version ranges to the latest version,
under the motivation that Maven doesn't have a distinction between a
dependency declaration file and a lockfile, and ranges don't have the
effect that we want (but DO contribute to long build times).

In that PR we forgot to pass the settings file that has repository
configuration information.

Add that.
mergify bot pushed a commit that referenced this pull request Dec 30, 2025
…gs (#5015)

In #5006 we added a command to make Maven resolve all the wide open version ranges to the latest version, under the motivation that Maven doesn't have a distinction between a dependency declaration file and a lockfile, and ranges don't have the effect that we want (but DO contribute to long build times).

In that PR we forgot to pass the settings file that has repository configuration information.

Add that.

---

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

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
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