Skip to content

Commit

Permalink
[SHRINKWRAP-297] Correct the m2e config so that Eclipse does not thro…
Browse files Browse the repository at this point in the history
…w errors when encountering Checkstyle
  • Loading branch information
ALRubinger committed Oct 31, 2011
1 parent d042f57 commit 680a1a3
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions pom.xml
Expand Up @@ -104,6 +104,33 @@
<version>${version.org.apache.maven.plugins_maven-site-plugin}</version>
</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>check</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>

</plugins>
</pluginManagement>

Expand Down Expand Up @@ -191,33 +218,6 @@
</configuration>
</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>check</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down

0 comments on commit 680a1a3

Please sign in to comment.