pom.xml: use same configuration for checkstyle check and reports
* move checkstyle configuration to pluginManagement
This commit is contained in:
parent
bed65bfbcb
commit
a0ca04b3dc
1 changed files with 9 additions and 8 deletions
17
pom.xml
17
pom.xml
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue