-
Notifications
You must be signed in to change notification settings - Fork 118
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
Add lifecycle mapping for maven-toolchains-plugin #1637 #1638
Add lifecycle mapping for maven-toolchains-plugin #1637 #1638
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR, the general intend looks good, but the lifecycle mappings should not be added to the m2e.apt.core
plugin (see the comments).
cdfe098
to
94367bb
Compare
94367bb
to
6e52c6f
Compare
6e52c6f
to
81728e8
Compare
81728e8
to
84fa618
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this contribution.
Looks good now. Lets wait for the result of the CI.
@G-Ork it looks like this causes new test-failures. Could you have a look at them? |
I will. Seemed to be code thats generated somehow. Can not find the test classes mentioned. |
5788ac0
to
3d9e308
Compare
3d9e308
to
141dd0d
Compare
These tests live in another repository, i.e. https://github.com/tesla/m2e-core-tests/, which is included as sub-module of this repository. Unfortunately, for legal reasons we are not allowed to add these tests to this repository. :/ The contribution guide explains how to do that manually: https://github.com/eclipse-m2e/m2e-core/blob/master/CONTRIBUTING.md#%EF%B8%8F-setting-up-the-development-environment-manually Anyway, it looks you already found a hot candidate for being the cause of the failures. 🚀 |
Is the check Build M2Eclipse / build (macos-latest) (pull_request) related to m2e-core-tests or is this another problem? Looks like it was executed before my last fixes and not again afterwards. |
This is unrelated, to your change. All tests look good now. 👍🏽 Could you please just revert the version bumps in |
141dd0d
to
4d52fd0
Compare
Thank you for the patience. I have removed the version bumps. |
4d52fd0
to
298b181
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the patience. I have removed the version bumps. I've read it but did not check it 🤦♂️
No problem, you are welcome.
Thanks again for this contribution.
@G-Ork now we have even UI for toolchans do you like to look into why In maven CLI this happens with |
Actually this was implement as part of the PR that added the UI: and is now performed at m2e-core/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenExecutionContext.java Lines 211 to 214 in 53c0eaf
So should we consider reverting this? @G-Ork what's your opinion about that? |
Hi, i am currently preparing a PR with unit tests as asked for the change of the UI. The tests are finished and where necessary because the settings where not applied to the maven launcher. My fault. My Plan was to create the PR for the UI and the unit tests. The PR Should be ready today or at least this weekend. After this i would dig into the open questions about the internal launch. This relate to the code you quoted. My opinion is that we should try to make it work. Or make it work somehow. I stumbled already over the code that configures different JVMs based on the enforcer plugin. That feature was added last year. I didn't test it yet but i guess i will help. In my opinion this is quite hacky as the enforcer plugin is a assertion plugin and not for configuration. I was surprised as another developer mention that. Also found inside the hidden releasenotes. I would prefer a toolchain approach. I also run into this requirement this week by trying to migrate a project to java 21. Eclipse used the start JRE and i wasn't able to build with the internal build. Workaround was to use the Maven launcher and configure a 21 JDK. |
For #1637