Author: [log in to unmask] Date: Tue May 17 18:19:39 2016 New Revision: 4363 Log: Fix warning about duplicate plugin config. Modified: java/trunk/parent/pom.xml Modified: java/trunk/parent/pom.xml ============================================================================= --- java/trunk/parent/pom.xml (original) +++ java/trunk/parent/pom.xml Tue May 17 18:19:39 2016 @@ -376,8 +376,6 @@ <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> </plugin> - <!-- This fixes the lifecycle not covered by plugin execution - error in Eclipse. --> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> @@ -385,6 +383,21 @@ <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> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> @@ -486,6 +499,7 @@ <consoleOutput>true</consoleOutput> <includeResources>true</includeResources> <includeTestResources>true</includeTestResources> + <failOnViolation>true</failOnViolation> <checkstyleRules> <module name="Checker"> <module name="FileTabCharacter"> @@ -506,7 +520,7 @@ </configuration> <executions> <execution> - <phase>compile</phase> + <phase>validate</phase> <goals> <goal>check</goal> </goals>