Remove eclipse checkstyle warnings 67/7467/1
authorPamela Dragosh <pdragosh@research.att.com>
Mon, 14 Aug 2017 17:42:40 +0000 (13:42 -0400)
committerPamela Dragosh <pdragosh@research.att.com>
Mon, 14 Aug 2017 17:42:48 +0000 (13:42 -0400)
Add this should remove Eclipse warnings:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (execution: check-style, phase: process-sources)

Issue-Id: POLICY-166
Change-Id: I609ebced831458e1fa56c57a30bceb3512c0dc7f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index f5a35c6..08c27c3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                        <artifactId>sonar-maven-plugin</artifactId>
                                        <version>${sonar.plugin.version}</version>
                                </plugin>
+               <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>2.17,)</versionRange>
+                                        <goals>
+                                            <goal>check</goal>
+                                        </goals>
+                                    </pluginExecutionFilter>
+                                    <action>
+                                        <ignore />
+                                    </action>
+                                </pluginExecution>
+                            </pluginExecutions>
+                        </lifecycleMappingMetadata>
+                    </configuration>
+                </plugin>
                        </plugins>
                </pluginManagement>
        </build>