pom.xml: use same configuration for checkstyle check and reports

* move checkstyle configuration to pluginManagement
This commit is contained in:
Paul Campbell 2016-08-16 20:06:30 +01:00
parent bed65bfbcb
commit a0ca04b3dc

17
pom.xml
View file

@ -163,6 +163,14 @@
<version>${sevntu-checkstyle-maven-plugin.version}</version> <version>${sevntu-checkstyle-maven-plugin.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failOnViolation>true</failOnViolation>
<failsOnError>true</failsOnError>
<linkXRef>true</linkXRef>
</configuration>
</plugin><!-- maven-checkstyle-plugin --> </plugin><!-- maven-checkstyle-plugin -->
</plugins> </plugins>
</pluginManagement> </pluginManagement>
@ -217,16 +225,9 @@
<execution> <execution>
<id>validate</id> <id>validate</id>
<phase>validate</phase> <phase>validate</phase>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failOnViolation>true</failOnViolation>
<failsOnError>true</failsOnError>
<linkXRef>true</linkXRef>
</configuration>
<goals> <goals>
<goal>check</goal> <goal>check</goal>
<goal>checkstyle</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>