Skip to content

Commit

Permalink
[WELD-1092] Configure m2e to ignore Checkstyle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ALRubinger authored and stuartwdouglas committed Apr 3, 2012
1 parent 3cdd9ef commit 524cf9c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,34 @@
</execution>
</executions>
</plugin>

<!-- So m2e doesn't throw errors for features it doesn't support in the
POM -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>checkstyle</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>

</plugins>

</pluginManagement>
Expand All @@ -545,6 +573,11 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<!-- m2e Config -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 524cf9c

Please sign in to comment.