Remove eclipse checkstyle warnings 69/7469/1
authorPamela Dragosh <pdragosh@research.att.com>
Mon, 14 Aug 2017 17:53:06 +0000 (13:53 -0400)
committerPamela Dragosh <pdragosh@research.att.com>
Mon, 14 Aug 2017 17:53:46 +0000 (13:53 -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: I1b17afda88777bbc61afca53c1f1fe9732808e87
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 17faafc..7d7f979 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                          </dependencies>
                        </plugin>
                </plugins>
+        <pluginManagement>
+            <plugins>
+                <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>
 </project>