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>
</dependency>
</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 -->
</plugins>
</pluginManagement>
@ -217,16 +225,9 @@
<execution>
<id>validate</id>
<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>
<goal>check</goal>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>