Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] eclipse-settings-maven-plugin future ?



On Fri, Jan 10, 2020 at 6:38 PM Hohwiller, Jörg <joerg@xxxxxxxxxxxxxx> wrote:
E.g. if you want your project to
use checkstyle, it would be nice if checkstyle would be activated by m2e
automatically when the project is imported.

What do you mean by "activated"? Do you mean executed? If so, that's totally doable if the Maven plugin uses the right APIs and declare capability to work as part of incremental build ( https://www.eclipse.org/m2e/documentation/m2e-making-maven-plugins-compat.html ), it can be configured to be executed during build: https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html
However, if you expect m2e to configure the Eclipse checkstyle plugin magically, then it's simply not doable as m2e cannot know of all Maven plugins so it cannot be the component responsible for specific integrations of Maven plugins (beyond orchestrating its execution as described above). Either the Eclipse Checkstyle plugins needs to take care of reading the Maven configuration, or a M2E connector plugin needs to be written for Checkstyle, to instruct m2e how to process CheckStyle settings in the IDE.


Back to the top