<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>

   <groupId>ch.ethz.globis.demo</groupId>
   <artifactId>maven-checkstyle-plugin</artifactId>
   <packaging>jar</packaging>
   <version>1.0-SNAPSHOT</version>
   <name>maven-checkstyle-plugin</name>
   <url>http://www.globis.ethz.ch</url>

   <reporting>
      <plugins>
         <plugin>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <configuration>
               <enableRSS>true</enableRSS>
               <enableRulesSummary>false</enableRulesSummary>
               <enableFilesSummary>false</enableFilesSummary>
               <enableSeveritySummary>true</enableSeveritySummary>
               <includeTestSourceDirectory> true</includeTestSourceDirectory>
               <configLocation>http://maven.globis.ethz.ch/checkstyle-config.xml</configLocation>
            </configuration>
         </plugin>
      </plugins>
   </reporting>

   <profiles>
      <profile>
         <id>pedantic</id>
         <build>
            <plugins>
               <plugin>
                  <artifactId>maven-checkstyle-plugin</artifactId>
                  <configuration>
                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
                     <configLocation>http://maven.globis.ethz.ch/checkstyle-config.xml</configLocation>
                     <failOnViolation>true</failOnViolation>
                  </configuration>
                  <executions>
                     <execution>
                        <phase>process-sources</phase>
                        <goals>
                           <goal>checkstyle</goal>
                           <goal>check</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>
   </profiles>

   <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   </properties>

</project>

