-
Notifications
You must be signed in to change notification settings - Fork 442
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
Provide fix suggestions for not covered Maven plugin execution in project build lifecycle #1949
Provide fix suggestions for not covered Maven plugin execution in project build lifecycle #1949
Conversation
See a sample project https://github.com/antlr/stringtemplate4 to try this PR. notCoveredExecution.movA follow-up improvement is to "discover new m2e connectors". Eclipse provides such a quick fix when reporting "not covered execution" error in Maven project. Looks like it's based on the catalog https://repo1.maven.org/maven2/.m2e/discovery-catalog/connectors.xml for discovery. Need more evaluation on the cost to support discovering and installing m2e connector in VS Code, will take it as a future improvement. // @fbricon Could you help review the solution? thanks. |
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.
I guess it will help in some cases, but I'm afraid we're opening a can of worms with the whole m2e connector thing (especially the discovery mechanism).
The best thing is still for maven plugins authors to provide native support for m2e. The doc should probably encourage users to request such integration directly from these projects.
b325d59
to
31a2adc
Compare
Yes, the m2e connectors are a bit too complex and not planned to add them to VS Code. We are currently just providing some suggestions for common workarounds, and also stating in the doc that the best approach would be to make the Maven plugin directly compatible with m2e. |
Update:
|
I will look at this today. |
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.
Seems to be working well. Just a few corner cases to consider.
…ject build lifecycle Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
…he Maven plugins Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
482a512
to
c1130d1
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.
LGTM. Feel free to merge when ready. I would probably squash the commits first.
Signed-off-by: Jinbo Wang jinbwan@microsoft.com
This PR requires the side PR at eclipse-jdtls/eclipse.jdt.ls#1770. It's used to mitigate the issues at #177, #566, #935 and #1910.
Here are the main things this PR added.