Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong realm used when executing mojos #1161

Merged
merged 2 commits into from
Dec 31, 2022
Merged

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Dec 31, 2022

Currently the MojoSetup is cached what do not seem working fine with different containers. This now changes the way to fetch a fresh configuration that takes the current context into account.

Based on

@github-actions
Copy link

Test Results

611 tests  +1   604 ✔️ +1   9m 53s ⏱️ - 1m 42s
  98 suites ±0       7 💤 ±0 
  98 files   ±0       0 ±0 

Results for commit 82245eb. ± Comparison against base commit 7fca6de.

@laeubi
Copy link
Member Author

laeubi commented Dec 31, 2022

As this fixes the previous failures and did not show any ne ones I think this is good to be merged.

@laeubi laeubi merged commit 5640b34 into eclipse-m2e:master Dec 31, 2022
@HannesWell
Copy link
Contributor

HannesWell commented Dec 31, 2022

As this fixes the previous failures and did not show any ne ones I think this is good to be merged.

Sorry I didn't have the time yet to review/undestand this in detail. But yes since all tests pass it is probably not too bad.

Currently the MojoSetup is cached what do not seem working fine with different containers. This now changes the way to fetch a fresh configuration that takes the current context into account.

Can you explain where this is cached? In M2E or Maven itself?

Since this is a non obvious behavior, I think it would be good to have some comments in the code explaining why execution is cloned?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants