Run checkstyle plugin before compilation

This commit is contained in:
mkpaz 2023-02-10 15:41:32 +04:00
parent c3863e7eea
commit deae198ae0
3 changed files with 32 additions and 0 deletions

@ -43,6 +43,22 @@
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<!-- check code style before compilation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -196,6 +196,8 @@
<configuration>
<configLocation>checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failsOnError>false</failsOnError>
<linkXRef>false</linkXRef>
</configuration>
<dependencies>
<dependency>

@ -155,6 +155,20 @@
</execution>
</executions>
</plugin>
<!-- check code style before compilation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>