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