Maven checkstyle not running as part of build -
Maven checkstyle not running as part of build -
i'm totally lost why not. construction this:
using mvn checkstyle:check creates reports (i have identical settings in reporting section) build treats plugin doesn't exist. if alter checkstyle version, doesn't download it, etc. treats config invisible.
<build> <pluginmanagement> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-checkstyle-plugin</artifactid> <version>2.13</version> <configuration> <configlocation>checkstyle.xml</configlocation> <suppressionslocation>checkstyle-suppressions.xml</suppressionslocation> <maxallowedviolations>2500</maxallowedviolations> <consoleoutput>true</consoleoutput> <failsonerror>true</failsonerror> <failonviolation>true</failonviolation> </configuration> <executions> <execution> <id>checkstyle</id> <goals> <goal>check</goal> </goals> <configuration> <encoding>utf-8</encoding> <consoleoutput>true</consoleoutput> <failsonerror>true</failsonerror> <failonviolation>true</failonviolation> </configuration> </execution> </executions> </plugin> ..... </plugins> </pluginmanagement> </build>
maven checkstyle
Comments
Post a Comment