Skip to main content

[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 ...

I'd be happy to get this into the marketplace, please send more info
in what I have to do.

Yes it seems to work, but I haven't exahustively tested it.

On Sun, May 15, 2011 at 11:09 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
> 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>
>
> _______________________________________________
> m2e-dev mailing list
> m2e-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-dev
>


Back to the top