added reporting plugins
[svjatoslav_commons.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 127bbe7..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.1-SNAPSHOT</version>
+       <version>1.4-SNAPSHOT</version>
        <packaging>jar</packaging>
        <name>Svjatoslav commonly used resources library</name>
        <description>Svjatoslav commonly used resources library</description>
                <url>http://svjatoslav.eu</url>
        </organization>
 
+       <properties>
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+       </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>
@@ -22,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.2</version>
+                               <artifactId>wagon-ssh-external</artifactId>
+                               <version>2.6</version>
                        </extension>
                </extensions>
        </build>
                        <version>4.8.1</version>
                        <scope>test</scope>
                </dependency>
+
+               <dependency>
+                       <groupId>javax.servlet</groupId>
+                       <artifactId>servlet-api</artifactId>
+                       <version>2.5</version>
+                       <scope>provided</scope>
+               </dependency>
        </dependencies>
 
        <distributionManagement>
                <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>
 
+       <repositories>
+               <repository>
+                       <id>svjatoslav.eu</id>
+                       <name>Svjatoslav repository</name>
+                       <url>http://www2.svjatoslav.eu/maven/</url>
+               </repository>
+       </repositories>
+
        <scm>
                <connection>scm:git:ssh://git@svjatoslav.eu/home/git/repositories/svjatoslav_commons.git</connection>
                <developerConnection>scm:git:ssh://git@svjatoslav.eu/home/git/repositories/svjatoslav_commons.git</developerConnection>