added reporting plugins
[svjatoslav_commons.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4         <groupId>eu.svjatoslav</groupId>
5         <artifactId>svjatoslavcommons</artifactId>
6         <version>1.4-SNAPSHOT</version>
7         <packaging>jar</packaging>
8         <name>Svjatoslav commonly used resources library</name>
9         <description>Svjatoslav commonly used resources library</description>
10
11         <organization>
12                 <name>svjatoslav.eu</name>
13                 <url>http://svjatoslav.eu</url>
14         </organization>
15
16         <properties>
17                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
19         </properties>
20
21
22         <reporting>
23                 <plugins>
24                         <plugin>
25                                 <!-- Compile JUnit test coverage report -->
26                                 <groupId>org.codehaus.mojo</groupId>
27                                 <artifactId>cobertura-maven-plugin</artifactId>
28                                 <version>2.6</version>
29                                 <configuration>
30                                         <formats>
31                                                 <format>html</format>
32                                                 <format>xml</format>
33                                         </formats>
34                                 </configuration>
35                         </plugin>
36                         <plugin>
37                                 <!-- Attempt to discover bugs by doing static code analysis -->
38                                 <groupId>org.codehaus.mojo</groupId>
39                                 <artifactId>findbugs-maven-plugin</artifactId>
40                                 <version>2.5.3</version>
41                         </plugin>
42                 </plugins>
43         </reporting>
44
45
46         <build>
47                 <plugins>
48                         <plugin>
49                                 <groupId>org.apache.maven.plugins</groupId>
50                                 <artifactId>maven-compiler-plugin</artifactId>
51                                 <version>2.3.2</version>
52                                 <configuration>
53                                         <source>1.6</source>
54                                         <target>1.6</target>
55                                         <encoding>UTF-8</encoding>
56                                 </configuration>
57                         </plugin>
58
59                         <plugin>
60                                 <groupId>org.apache.maven.plugins</groupId>
61                                 <artifactId>maven-source-plugin</artifactId>
62                                 <version>2.2.1</version>
63                                 <executions>
64                                         <execution>
65                                                 <id>attach-sources</id>
66                                                 <goals>
67                                                         <goal>jar</goal>
68                                                 </goals>
69                                         </execution>
70                                 </executions>
71                         </plugin>
72
73                         <plugin>
74                                 <groupId>org.apache.maven.plugins</groupId>
75                                 <artifactId>maven-javadoc-plugin</artifactId>
76                                 <version>2.9</version>
77                                 <executions>
78                                         <execution>
79                                                 <id>attach-javadocs</id>
80                                                 <goals>
81                                                         <goal>jar</goal>
82                                                 </goals>
83                                         </execution>
84                                 </executions>
85                         </plugin>
86
87                         <plugin>
88                                 <!-- Compile JUnit test coverage report -->
89                                 <groupId>org.codehaus.mojo</groupId>
90                                 <artifactId>cobertura-maven-plugin</artifactId>
91                                 <version>2.6</version>
92                                 <configuration>
93                                         <check>
94                                                 <branchRate>85</branchRate>
95                                                 <lineRate>85</lineRate>
96                                                 <haltOnFailure>false</haltOnFailure>
97                                                 <totalBranchRate>85</totalBranchRate>
98                                                 <totalLineRate>85</totalLineRate>
99                                                 <packageLineRate>85</packageLineRate>
100                                                 <packageBranchRate>85</packageBranchRate>
101                                         </check>
102                                 </configuration>
103                                 <executions>
104                                         <execution>
105                                                 <goals>
106                                                         <goal>clean</goal>
107                                                         <!-- <goal>check</goal> -->
108                                                 </goals>
109                                         </execution>
110                                 </executions>
111                         </plugin>
112
113
114                 </plugins>
115
116                 <extensions>
117                         <extension>
118                                 <groupId>org.apache.maven.wagon</groupId>
119                                 <artifactId>wagon-ssh-external</artifactId>
120                                 <version>2.6</version>
121                         </extension>
122                 </extensions>
123         </build>
124
125         <dependencies>
126                 <dependency>
127                         <groupId>junit</groupId>
128                         <artifactId>junit</artifactId>
129                         <version>4.8.1</version>
130                         <scope>test</scope>
131                 </dependency>
132
133                 <dependency>
134                         <groupId>javax.servlet</groupId>
135                         <artifactId>servlet-api</artifactId>
136                         <version>2.5</version>
137                         <scope>provided</scope>
138                 </dependency>
139         </dependencies>
140
141         <distributionManagement>
142                 <snapshotRepository>
143                         <id>svjatoslav.eu</id>
144                         <name>svjatoslav.eu</name>
145                         <url>scpexe://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
146                 </snapshotRepository>
147                 <repository>
148                         <id>svjatoslav.eu</id>
149                         <name>svjatoslav.eu</name>
150                         <url>scpexe://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
151                 </repository>
152         </distributionManagement>
153
154         <repositories>
155                 <repository>
156                         <id>svjatoslav.eu</id>
157                         <name>Svjatoslav repository</name>
158                         <url>http://www2.svjatoslav.eu/maven/</url>
159                 </repository>
160         </repositories>
161
162         <scm>
163                 <connection>scm:git:ssh://git@svjatoslav.eu/home/git/repositories/svjatoslav_commons.git</connection>
164                 <developerConnection>scm:git:ssh://git@svjatoslav.eu/home/git/repositories/svjatoslav_commons.git</developerConnection>
165         </scm>
166
167 </project>