Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-dev] Request to confirm my understanding of how plugin lifecycle mapping works ...

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>


Back to the top