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

Support project local maven settings #1673

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Feb 13, 2024

Currently m2e has one global way to specify the global/user settings file, but one can also configure this through .mvn/maven.config files and while m2e already supports specification of properties and profiles there this does not work for (global)settings. This leads to the situation that user probably getting different results when running a mojo as part of eclipse or on the commandline.

This now adds the infrastructure and support for projects having a local configuration as well by augmenting the maven.config if available.

Copy link

github-actions bot commented Feb 13, 2024

Test Results

  214 files  ±0    214 suites  ±0   23m 4s ⏱️ + 2m 2s
  664 tests ±0    654 ✅ ±0  10 💤 ±0  0 ❌ ±0 
1 328 runs  ±0  1 306 ✅ ±0  22 💤 ±0  0 ❌ ±0 

Results for commit 7500652. ± Comparison against base commit c5fb2d2.

♻️ This comment has been updated with latest results.

@laeubi
Copy link
Member Author

laeubi commented Feb 14, 2024

So now after some preliminary work this is finally ready and works to discover a changed local repository in the user and/or global settings!

Another issue might be toolchain files, this seems only partly supported but is out of scope of this issue.

@laeubi laeubi force-pushed the support_project_local_settings branch 2 times, most recently from d9f13ef to f3f8e8c Compare February 14, 2024 15:02
@laeubi laeubi force-pushed the support_project_local_settings branch from f3f8e8c to c0a2496 Compare February 14, 2024 18:06
Currently m2e has one global way to specify the global/user settings
file, but one can also configure this through .mvn/maven.config files
and while m2e already supports specification of properties and profiles
there this does not work for (global)settings. This leads to the
situation that user probably getting different results when running a
mojo as part of eclipse or on the commandline.

This now adds the infrastructure and support for projects having a local
configuration as well by augmenting the maven.config if available.
@laeubi laeubi force-pushed the support_project_local_settings branch from c0a2496 to 7500652 Compare February 14, 2024 18:37
@laeubi laeubi merged commit aa33441 into eclipse-m2e:master Feb 15, 2024
7 checks passed
@laeubi
Copy link
Member Author

laeubi commented Feb 15, 2024

This improvement was gently sponsored by Sigasi.

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

Successfully merging this pull request may close these issues.

None yet

3 participants