added reporting plugins
[svjatoslav_commons.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 15e407d..9946b47 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -1,8 +1,9 @@
-<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/xsd/maven-4.0.0.xsd">
+<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/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>eu.svjatoslav</groupId>
        <artifactId>svjatoslavcommons</artifactId>
-       <version>1.3</version>
+       <version>1.4-SNAPSHOT</version>
        <packaging>jar</packaging>
        <name>Svjatoslav commonly used resources library</name>
        <description>Svjatoslav commonly used resources library</description>
        </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>
@@ -27,7 +52,6 @@
                                <configuration>
                                        <source>1.6</source>
                                        <target>1.6</target>
-                                       <optimize>true</optimize>
                                        <encoding>UTF-8</encoding>
                                </configuration>
                        </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>
                        <extension>
                                <groupId>org.apache.maven.wagon</groupId>
-                               <artifactId>wagon-ssh</artifactId>
-                               <version>2.4</version>
+                               <artifactId>wagon-ssh-external</artifactId>
+                               <version>2.6</version>
                        </extension>
                </extensions>
        </build>
                <snapshotRepository>
                        <id>svjatoslav.eu</id>
                        <name>svjatoslav.eu</name>
-                       <url>scp://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
+                       <url>scpexe://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
                </snapshotRepository>
                <repository>
                        <id>svjatoslav.eu</id>
                        <name>svjatoslav.eu</name>
-                       <url>scp://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
+                       <url>scpexe://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
                </repository>
        </distributionManagement>