-
Notifications
You must be signed in to change notification settings - Fork 446
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 support for externally provided "lifecycle-mapping-metadata.xml" file #3393
Add support for externally provided "lifecycle-mapping-metadata.xml" file #3393
Comments
Can someone clarify the current behavior? Finding this ticket, I'm assuming that including build plugins in the IDE issued build would either not happen at all, or the build would trigger all build plugins, not matter what. Currently I am inclined to assume the latter as I have projects with the ByteBuddy plugin performing some (required) enhancements and they seem to actually be applied OOTB in VSCode? 🤔 |
Hi @odrotbohm , |
That's weird, as I see my sample project still running fine after a full rebuild in VSCode, which, in case the Maven Plugin does not run, it definitely shouldn't. |
It depends on the Maven Plugin and how build process is executed. Several core Maven plugins, such as compilation, execution, don't have an issue because they are known to be covered. The impact is more on 3rd party plugins such as OpenAPI Swagger code generation as well as on some Maven core's such as "maven dependency". Not all plugins adopted recommended way of configuration provided by M2e, therefore the problem exists. |
Orginally created by @vitalyla on microsoft/vscode-maven#998
Suggestion
Add support for external provided file "lifecycle-mapping-metadata.xml" per M2E recommendations that allows configuration of lifecycle of Maven's plugins outside of any certain project and have it at system/user/workspace level.
Use Cases
While working on Maven projects it is common that not all plugins undergo changes related to their lifecycle configuration per M2E recommendations, which prohibits execution of those plugins by IDE and as a result required artifacts are not get generated (e.g., generated code) causing compilation and build problems.
Current way to overcome the problem is to manually add relevant m2e annotation (m2e execute onConfiguration) in each "pom.xml" file directly, which is very cumbersome, error prone and problematic approach when working on multiple projects. The impact is bigger when certain files cannot be submitted back to source control system that leads to keeping copies locally creating maintenance overhead.
The text was updated successfully, but these errors were encountered: