Skip to content

Conversation

@rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented 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.


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

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.
@rix0rrr rix0rrr requested a review from a team December 30, 2025 08:29
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 30, 2025
@mergify
Copy link
Contributor

mergify bot commented Dec 30, 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 30, 2025
@mergify
Copy link
Contributor

mergify bot commented Dec 30, 2025

Merging (with squash)...

@mergify mergify bot added the queued label Dec 30, 2025
@mergify mergify bot merged commit ec8ecf9 into main Dec 30, 2025
39 checks passed
@mergify
Copy link
Contributor

mergify bot commented Dec 30, 2025

Merge Queue Status

✅ The pull request has been merged at 8ee34d8

This pull request spent 5 seconds in the queue, with no time running CI.
The checks were run in-place.

Required conditions to merge

@mergify mergify bot deleted the huijbers/maven-settings branch December 30, 2025 09:18
@mergify mergify bot removed pr/ready-to-merge This PR is ready to be merged. queued labels Dec 30, 2025
rix0rrr added a commit that referenced this pull request Jan 2, 2026
This PR is the correct fix for #5015.

`jsii-pacmak` has a feature where `--mvn-settings=X` is passed through
as `--settings=X` when calling `mvn`.

This was not being passed through in the call to the new
`resolve-ranges` step. This PR factors the entire Maven invocation into
a helper that contains that logic, and uses it from 2 call sites.

Not sure about the best way to automatically test this, so for now this
doesn't have a test.
mergify bot pushed a commit that referenced this pull request Jan 2, 2026
This PR is the correct fix for #5015.

`jsii-pacmak` has a feature where `--mvn-settings=X` is passed through as `--settings=X` when calling `mvn`.

This was not being passed through in the call to the new `resolve-ranges` step. This PR factors the entire Maven invocation into a helper that contains that logic, and uses it from 2 call sites.

Not sure about the best way to automatically test this, so for now this doesn't have a test.



---

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