<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>test.parent</groupId>
    <artifactId>parent</artifactId>
    <version>1</version>
  </parent>
  <artifactId>checkstyle-test</artifactId>
  <name>Checkstyle Test</name>
  <build>

    <extensions>
      <extension>
        <groupId>checkstyle</groupId>
        <artifactId>checkstyle-assembly</artifactId>
        <version>1.0</version>
      </extension>
    </extensions>


    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.1</version>
        <inherited>true</inherited>
        <executions>
          <execution>
            <id>STC Checks</id>
            <phase>verify</phase>
            <goals>
              <goal>checkstyle</goal>
            </goals>
            <configuration>
              <configLocation>stc_checks.xml</configLocation>
              <failsOnError>true</failsOnError>
              <cacheFile>${project.build.directory}/checkstyle-cachefile</cacheFile>
              <consoleOutput>true</consoleOutput>
            </configuration>
          </execution>
        </executions>
      </plugin>

    </plugins>
  </build>
</project>

