patrick-malloy opened a new issue, #83:
URL: https://github.com/apache/maven-jdeps-plugin/issues/83

   ### New feature, improvement proposal
   
   The Eclipse IDE (and IDE's based on Eclipse such as Spring Tool Suite (STS), 
IBM Rational Application Developer (RAD), and JBoss Developer Studio / Red Hat 
CodeReady Studio have a component called m2e which provides it's integration to 
Maven. The Eclipse IDE through m2e attempts to understand various Maven plugin 
goals used in pom.xmls where those plugin goals are bound to certain Maven 
phases.
   
   When Eclipse encounters projects using a plugin with goals mapped to Maven 
phases where it does not already know about that plugin, it flags those as Info 
items in the IDE's Problems view for each project that uses the plugin. That in 
turn makes things look like there is an issue even though there is not.
   
   Reference:
   
   * [Eclipse 
m2e](https://eclipse.dev/m2e/documentation/m2e-execution-not-covered.html)
   
   Developers can manually update the 
`<eclipse_workspace>/.metadata/.plugins/org.eclipse.m2e.core/lifecycle-mapping-metadata.xml`
 within their Eclipse instance to add a lifecycle mapping to tell Eclipse about 
those plugin goals. But this requires each person to do this for each instance 
of Eclipse manually.
   
   Eclipse provides a second option which can be provided with the plugin 
itself. This option is 100% safe as it just adds a new file 
`META-INF/m2e/lifecycle-mapping-metadata.xml` into the generated plugin Jar 
only Eclipse m2e references.
   
   Various common plugins provide this exact option:
   
   * [jacoco-maven-plugin 
META-INF/m2e/lifecycle-mapping-metadata.xml](https://github.com/jacoco/jacoco/blob/master/jacoco-maven-plugin/META-INF/m2e/lifecycle-mapping-metadata.xml)
   * [license-maven-plugin 
META-INF/m2e/lifecycle-mapping-metadata.xml](https://github.com/mojohaus/license-maven-plugin/blob/master/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml)
   * [spotbugs-maven-plugin 
META-INF/m2e/lifecycle-mapping-metadata.xml](https://github.com/spotbugs/spotbugs-maven-plugin/blob/master/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml)
   
   Providing a `lifecycle-mapping-metadata.xml` in the maven-jdeps-plugin would 
provide a nicer experience for developers using Eclipse based IDE's with no 
impact at all to plugin performance or behavior.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to