added reporting plugins
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 13 Jan 2015 06:38:39 +0000 (08:38 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 13 Jan 2015 06:38:39 +0000 (08:38 +0200)
pom.xml

diff --git a/pom.xml b/pom.xml
index b449b60..9946b47 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
        </properties>
 
 
+       <reporting>
+               <plugins>
+                       <plugin>
+                               <!-- Compile JUnit test coverage report -->
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>cobertura-maven-plugin</artifactId>
+                               <version>2.6</version>
+                               <configuration>
+                                       <formats>
+                                               <format>html</format>
+                                               <format>xml</format>
+                                       </formats>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <!-- Attempt to discover bugs by doing static code analysis -->
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>findbugs-maven-plugin</artifactId>
+                               <version>2.5.3</version>
+                       </plugin>
+               </plugins>
+       </reporting>
+
+
        <build>
                <plugins>
                        <plugin>
                                        </execution>
                                </executions>
                        </plugin>
+
+                       <plugin>
+                               <!-- Compile JUnit test coverage report -->
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>cobertura-maven-plugin</artifactId>
+                               <version>2.6</version>
+                               <configuration>
+                                       <check>
+                                               <branchRate>85</branchRate>
+                                               <lineRate>85</lineRate>
+                                               <haltOnFailure>false</haltOnFailure>
+                                               <totalBranchRate>85</totalBranchRate>
+                                               <totalLineRate>85</totalLineRate>
+                                               <packageLineRate>85</packageLineRate>
+                                               <packageBranchRate>85</packageBranchRate>
+                                       </check>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>clean</goal>
+                                                       <!-- <goal>check</goal> -->
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+
+
                </plugins>
 
                <extensions>