[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-dev] Request to confirm my understanding of how plugin lifecycle mapping works ...
|
Yes, this looks good. Does it actually work?
One clarification, lifecycle mapping only affects workspace project
configuration and workspace builds, it has no effect on RunAs->Maven
actions.
Also, if you are interested, we can add checkstyle and pmd integration
to m2e marketplace. This will allow m2e automatically discover and offer
installation of checkstyle and pmd integration for any project that uses
corresponding maven plugins. After you get this working properly and
testing, of course ;-)
--
Regards,
Igor
On 11-05-15 09:11 PM, Benson Margulies wrote:
My goal is this: if the POM configures checkstyle, then (a) configure
the Checkstyle plugin for eclipse, and (b) don't execute the execution
from the POM when running Maven from Eclipse. I have the following by
cargo-cult copying from antlr. Have I got it right-ish?
<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<versionRange>[2.6,)</versionRange>
<goals>
<goal>checkstyle</goal>
</goals>
</pluginExecutionFilter>
<action>
<configurator>
<id>com.basistech.m2e.code.quality.checkstyleConfigurator</id>
</configurator>
</action>
</pluginExecution>
<!-- add in the other checkstyle plugin goal? -->
</pluginExecutions>
</lifecycleMappingMetadata>