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

remove specific IDE m2e files #192

Merged
merged 1 commit into from
Dec 15, 2022
Merged

remove specific IDE m2e files #192

merged 1 commit into from
Dec 15, 2022

Conversation

olamy
Copy link
Member

@olamy olamy commented Nov 22, 2022

those files are specific to m2e they shouldn;t be stored in the Apache Maven sources!

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Make sure there is a JIRA issue filed
    for the change (usually before you start working on it). Trivial changes like typos do not
    require a JIRA issue. Your pull request should address just this issue, without
    pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MENFORCER-XXX] - Fixes bug in ApproximateQuantiles,
    where you replace MENFORCER-XXX with the appropriate JIRA issue. Best practice
    is to use the JIRA issue title in the pull request title and in the first line of the
    commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean verify).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

those files are specific to m2e they shouldn;t be stored in the Apache Maven sources!
@olamy olamy added the removed label Nov 22, 2022
@olamy
Copy link
Member Author

olamy commented Nov 22, 2022

cc @HannesWell @kwin

Copy link

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be safe as well, since this is also handled by M2E's default lifecycle-mappings.

https://github.com/eclipse-m2e/m2e-core/blob/master/org.eclipse.m2e.core/lifecycle-mapping-metadata.xml#L51-L65

@khmarbaise khmarbaise self-requested a review November 26, 2022 11:22
@olamy olamy merged commit 317c106 into master Dec 15, 2022
@olamy olamy deleted the remove-m2e-files branch December 15, 2022 00:43
@vtintillier
Copy link

Hello @olamy

I think this is a regression for all users of Eclipse and maven-enforcer-plugin. We now have a warning in all our pom files because of this change:

image

It means this change forces all those projects to each find a way to ignore this warning. And for now I have not found a way to do it on my side.

The goal of this META-INF/m2e/lifecycle-mapping-metadata.xml file is just to declare whether it makes sense to run this plugin in Eclipse or not, so that not all projects have to declare it on their side.

Would you consider reverting this change to help all those projects? Especially given there was no maintenance on this file for 8 years in this project, so not really costing this project anything.

Thanks a lot

@kwin
Copy link
Member

kwin commented Feb 2, 2023

@vtintillier The enforce goal has always been ignored (even in the deleted m2e lifecycle mapping and now via https://github.com/eclipse-m2e/m2e-core/blob/master/org.eclipse.m2e.core/lifecycle-mapping-metadata.xml#L130) so I don't see how the behaviour differs through this change.

@vtintillier
Copy link

Hi @kwin

looks like the ignore in the file you linked to has a different behavior than what we had with the META-INF/m2e/lifecycle-mapping-metadata.xml hosted in maven-enforcer-plugin itself. Before this file was removed, there would be no warning at all in Eclipse, and enforcer would not run as part of the Eclipse build.

Now enforcer still don't run, but we have this warning.

I asked about this in m2e too: eclipse-m2e/m2e-core#1229
But I think the easiest way forward is to add this file again.

Thanks

@olamy
Copy link
Member Author

olamy commented Feb 3, 2023

Sorry for the disagreement but this file should have never been added..
But your problem should be solved by m2e plugin.
Imagine if every single IDE asks to host their configuration file.

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