Commits

Sam Adams committed f6c16ba

Enforced checkstyle rules

Comments (0)

Files changed (1)

         </repository>
     </repositories>
 
+    <pluginRepositories>
+        <pluginRepository>
+            <id>ucc-repo</id>
+            <url>https://maven.ch.cam.ac.uk/m2repo</url>
+        </pluginRepository>
+    </pluginRepositories>
+
     <properties>
         <restlet.version>2.0.7</restlet.version>
         <guice.version>3.0</guice.version>
                     <target>1.6</target>
                 </configuration>
             </plugin>
+            <plugin>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+                <version>2.8</version>
+                <dependencies>
+                    <dependency>
+                        <groupId>net.bluefen</groupId>
+                        <artifactId>checkstyle-configuration</artifactId>
+                        <version>1-SNAPSHOT</version>
+                    </dependency>
+                </dependencies>
+                <executions>
+                    <execution>
+                        <phase>validate</phase>
+                        <goals>
+                            <goal>check</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <configLocation>/net/bluefen/checkstyle/checkstyle.xml</configLocation>
+                    <suppressionsLocation>${project.basedir}/src/checkstyle/suppressions.xml</suppressionsLocation>
+                    <logViolationsToConsole>true</logViolationsToConsole>
+                </configuration>
+            </plugin>
         </plugins>
     </build>