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>
|
||||
</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>
|
||||
|
|
Loading…
Reference in a new issue