blob: 4280443b9a23462df138db6fa6d594c2dabd862b [file] [log] [blame]
Brian O'Connor354cab92015-08-27 11:55:27 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Thejaswi N K6a4cd002015-09-21 17:19:55 +05303 ~ Copyright 2015 Open Networking Laboratory
Brian O'Connor354cab92015-08-27 11:55:27 -07004 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17<project xmlns="http://maven.apache.org/POM/4.0.0"
18 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20 <modelVersion>4.0.0</modelVersion>
21
22 <prerequisites>
23 <maven>3.0.1</maven>
24 </prerequisites>
25
26 <parent>
27 <groupId>org.onosproject</groupId>
28 <artifactId>onos-base</artifactId>
29 <version>1</version>
30 <relativePath>tools/build/pom.xml</relativePath>
31 </parent>
32
Brian O'Connor1cda9312015-09-04 20:19:16 -070033 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -070034 <artifactId>onos</artifactId>
35 <packaging>pom</packaging>
Brian O'Connor880dc20d2015-12-16 22:53:14 -080036 <version>1.5.0-SNAPSHOT</version>
Brian O'Connor354cab92015-08-27 11:55:27 -070037
38 <name>${project.artifactId}</name>
39 <description>Open Network Operating System root project</description>
40
41 <modules>
42 <module>utils</module>
43 <module>core</module>
44 <module>web</module>
45 <module>cli</module>
46
Thomas Vachuskadc240022015-11-19 14:45:03 -080047 <module>protocols</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070048 <module>providers</module>
49 <module>drivers</module>
50
51 <module>apps</module>
52 <module>incubator</module>
53 <module>features</module>
54
Jonathan Hart51539b82015-10-29 09:53:04 -070055 <module>tools/build/conf</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070056 <module>tools/package/archetypes</module>
57 <module>tools/package/branding</module>
Andrea Campanella82baf6b2015-12-14 10:23:37 -080058 <module>tools/package/maven-plugin</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070059 </modules>
60
61 <url>http://onosproject.org/</url>
62
63 <scm>
64 <connection>scm:git:https://gerrit.onosproject.org/onos</connection>
65 <developerConnection>scm:git:https://gerrit.onosproject.org/onos
66 </developerConnection>
67 <url>http://gerrit.onosproject.org/</url>
68 </scm>
69
70 <licenses>
71 <license>
72 <name>Apache License, Version 2.0</name>
73 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
74 </license>
75 </licenses>
76
77 <properties>
78 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Jonathan Hart51539b82015-10-29 09:53:04 -070079 <onos-build-conf.version>1.2-SNAPSHOT</onos-build-conf.version>
Jian Lic0c36a42016-01-08 13:41:27 -080080 <netty4.version>4.0.33.Final</netty4.version>
Madan Jampani3289fbf2016-01-13 14:14:27 -080081 <!-- TODO: replace with final release version when it is out -->
Madan Jampani86cb2432016-02-17 11:07:56 -080082 <atomix.version>1.0.0-rc1</atomix.version>
Brian O'Connor47196c52015-12-15 14:21:47 -080083 <copycat.version>0.5.1.onos</copycat.version>
Brian O'Connor3f4ed6b2015-12-15 14:40:02 -080084 <openflowj.version>0.9.1.onos</openflowj.version>
Andrea Campanella82baf6b2015-12-14 10:23:37 -080085 <onos-maven-plugin.version>1.8-SNAPSHOT</onos-maven-plugin.version>
Jian Lic0c36a42016-01-08 13:41:27 -080086 <osgi.version>4.3.1</osgi.version>
Jian Li11599162016-01-15 15:46:16 -080087 <karaf.version>3.0.5</karaf.version>
Brian O'Connor354cab92015-08-27 11:55:27 -070088 <jersey.version>1.19</jersey.version>
Jian Lia9a1bbd2016-01-22 00:34:49 -080089 <jackson.version>2.7.0</jackson.version>
Jian Lie4583fd2016-01-22 10:02:43 -080090 <slf4j.version>1.7.13</slf4j.version>
Jian Lic0c36a42016-01-08 13:41:27 -080091 <guava.version>19.0</guava.version>
Madan Jampani3289fbf2016-01-13 14:14:27 -080092 <commons.io.version>2.4</commons.io.version>
Brian O'Connor89957a32015-12-08 18:37:04 -080093 <!-- TODO argLine was originally added maven-surfire-plugin configuration
94 to fix locale errors for non-US developers. However, it breaks
95 SonarQube's test coverage, so moving here for now. -->
96 <argLine>-Duser.language=en -Duser.region=US</argLine>
Brian O'Connor354cab92015-08-27 11:55:27 -070097 </properties>
98
99 <distributionManagement>
100 <snapshotRepository>
101 <id>ossrh</id>
102 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
103 </snapshotRepository>
104 </distributionManagement>
Brian O'Connor372658e2015-12-04 23:17:41 -0800105
Brian O'Connor354cab92015-08-27 11:55:27 -0700106 <dependencyManagement>
107 <dependencies>
108 <dependency>
109 <groupId>junit</groupId>
110 <artifactId>junit</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800111 <version>4.12</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700112 <scope>test</scope>
113 </dependency>
114
115 <dependency>
116 <groupId>org.hamcrest</groupId>
117 <artifactId>hamcrest-core</artifactId>
118 <version>1.3</version>
119 <scope>test</scope>
120 </dependency>
121 <dependency>
122 <groupId>org.hamcrest</groupId>
123 <artifactId>hamcrest-library</artifactId>
124 <version>1.3</version>
125 <scope>test</scope>
126 </dependency>
127
128 <dependency>
129 <groupId>org.slf4j</groupId>
130 <artifactId>slf4j-api</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800131 <version>${slf4j.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700132 <scope>provided</scope>
133 </dependency>
134
135 <dependency>
136 <groupId>org.slf4j</groupId>
137 <artifactId>slf4j-core</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800138 <version>${slf4j.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700139 <scope>test</scope>
140 </dependency>
141
142 <dependency>
143 <groupId>org.slf4j</groupId>
144 <artifactId>slf4j-jdk14</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800145 <version>${slf4j.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700146 <scope>test</scope>
147 </dependency>
148
149 <dependency>
150 <groupId>com.google.guava</groupId>
151 <artifactId>guava</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800152 <version>${guava.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700153 </dependency>
154
155 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700156 <groupId>com.google.guava</groupId>
157 <artifactId>guava-testlib</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800158 <version>${guava.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700159 <scope>test</scope>
160 </dependency>
161
162 <dependency>
163 <groupId>com.googlecode.concurrent-trees</groupId>
164 <artifactId>concurrent-trees</artifactId>
165 <version>2.4.0</version>
166 </dependency>
167
168 <dependency>
169 <groupId>commons-lang</groupId>
170 <artifactId>commons-lang</artifactId>
171 <version>2.6</version>
172 </dependency>
173
174 <dependency>
175 <groupId>org.apache.commons</groupId>
176 <artifactId>commons-lang3</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800177 <version>3.4</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700178 </dependency>
179
180 <dependency>
181 <groupId>commons-configuration</groupId>
182 <artifactId>commons-configuration</artifactId>
183 <version>1.10</version>
184 </dependency>
185
186 <dependency>
187 <groupId>commons-collections</groupId>
188 <artifactId>commons-collections</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800189 <version>3.2.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700190 </dependency>
191
192 <dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800193 <groupId>commons-pool</groupId>
194 <artifactId>commons-pool</artifactId>
195 <version>1.6</version>
196 </dependency>
197
198 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700199 <groupId>org.easymock</groupId>
200 <artifactId>easymock</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800201 <version>3.4</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700202 <scope>test</scope>
203 </dependency>
204
205 <!-- Web related -->
206 <dependency>
207 <groupId>com.sun.jersey</groupId>
208 <artifactId>jersey-servlet</artifactId>
209 <version>${jersey.version}</version>
210 <scope>provided</scope>
211 </dependency>
212 <dependency>
213 <groupId>com.sun.jersey.contribs</groupId>
214 <artifactId>jersey-multipart</artifactId>
215 <version>${jersey.version}</version>
216 <scope>provided</scope>
217 </dependency>
218 <dependency>
219 <groupId>com.sun.jersey.jersey-test-framework</groupId>
220 <artifactId>jersey-test-framework-core</artifactId>
221 <version>${jersey.version}</version>
222 <scope>test</scope>
223 </dependency>
224 <dependency>
225 <groupId>com.sun.jersey.jersey-test-framework</groupId>
226 <artifactId>jersey-test-framework-grizzly2</artifactId>
227 <version>${jersey.version}</version>
228 <scope>test</scope>
229 </dependency>
230 <dependency>
Andrea Campanella945ded22016-01-07 13:17:43 -0800231 <groupId>com.sun.jersey</groupId>
232 <artifactId>jersey-client</artifactId>
233 <version>${jersey.version}</version>
234 </dependency>
235 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700236 <groupId>com.fasterxml.jackson.core</groupId>
237 <artifactId>jackson-databind</artifactId>
Jian Lia5a312b2016-01-15 17:59:12 -0800238 <version>${jackson.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700239 <scope>provided</scope>
240 </dependency>
241 <dependency>
242 <groupId>com.fasterxml.jackson.core</groupId>
243 <artifactId>jackson-annotations</artifactId>
Jian Lia5a312b2016-01-15 17:59:12 -0800244 <version>${jackson.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700245 <scope>provided</scope>
246 </dependency>
247
248 <!-- OSGi related -->
249 <dependency>
250 <groupId>org.osgi</groupId>
251 <artifactId>org.osgi.core</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800252 <version>${osgi.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700253 <scope>provided</scope>
254 </dependency>
255 <dependency>
256 <groupId>org.osgi</groupId>
257 <artifactId>org.osgi.compendium</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800258 <version>${osgi.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700259 <scope>provided</scope>
260 </dependency>
261 <dependency>
262 <groupId>org.apache.felix</groupId>
263 <artifactId>org.apache.felix.scr.annotations</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800264 <version>1.9.12</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700265 <scope>provided</scope>
266 </dependency>
267
268 <dependency>
269 <groupId>org.apache.karaf.features</groupId>
270 <artifactId>org.apache.karaf.features.core</artifactId>
271 <version>${karaf.version}</version>
272 <scope>provided</scope>
273 </dependency>
274 <dependency>
275 <groupId>org.apache.karaf.system</groupId>
276 <artifactId>org.apache.karaf.system.core</artifactId>
277 <version>${karaf.version}</version>
278 <scope>provided</scope>
279 </dependency>
280 <dependency>
281 <groupId>org.apache.karaf.shell</groupId>
282 <artifactId>org.apache.karaf.shell.console</artifactId>
283 <version>${karaf.version}</version>
284 <scope>provided</scope>
285 </dependency>
286
287 <dependency>
288 <groupId>org.livetribe.slp</groupId>
289 <artifactId>livetribe-slp</artifactId>
290 <version>2.2.1</version>
291 </dependency>
292
293 <dependency>
294 <groupId>com.eclipsesource.minimal-json</groupId>
295 <artifactId>minimal-json</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800296 <version>0.9.4</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700297 </dependency>
298 <dependency>
299 <groupId>com.esotericsoftware</groupId>
300 <artifactId>kryo</artifactId>
301 <version>3.0.0</version>
302 </dependency>
303 <dependency>
304 <groupId>com.esotericsoftware</groupId>
305 <artifactId>reflectasm</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800306 <version>1.11.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700307 <type>bundle</type>
308 </dependency>
309 <dependency>
310 <groupId>org.ow2.asm</groupId>
311 <artifactId>asm</artifactId>
312 <version>4.2</version>
313 </dependency>
314 <dependency>
315 <groupId>com.esotericsoftware</groupId>
316 <artifactId>minlog</artifactId>
317 <version>1.3.0</version>
318 </dependency>
319 <dependency>
320 <groupId>org.objenesis</groupId>
321 <artifactId>objenesis</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800322 <version>2.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700323 </dependency>
324
325 <!-- ONOS related -->
326 <dependency>
327 <groupId>org.onosproject</groupId>
328 <artifactId>onlab-misc</artifactId>
329 <version>${project.version}</version>
330 </dependency>
331 <dependency>
332 <groupId>org.onosproject</groupId>
333 <artifactId>onlab-nio</artifactId>
334 <version>${project.version}</version>
335 </dependency>
336 <dependency>
337 <groupId>org.onosproject</groupId>
338 <artifactId>onlab-osgi</artifactId>
339 <version>${project.version}</version>
340 </dependency>
341 <dependency>
342 <groupId>org.onosproject</groupId>
343 <artifactId>onlab-osgi</artifactId>
344 <version>${project.version}</version>
345 <classifier>tests</classifier>
346 <scope>test</scope>
347 </dependency>
348 <dependency>
349 <groupId>org.onosproject</groupId>
350 <artifactId>onlab-junit</artifactId>
351 <version>${project.version}</version>
352 <scope>test</scope>
353 </dependency>
354
355 <dependency>
356 <groupId>org.onosproject</groupId>
357 <artifactId>onos-api</artifactId>
358 <version>${project.version}</version>
359 </dependency>
360 <dependency>
361 <groupId>org.onosproject</groupId>
362 <artifactId>onos-api</artifactId>
363 <version>${project.version}</version>
364 <classifier>tests</classifier>
365 <scope>test</scope>
366 </dependency>
367
368 <dependency>
369 <groupId>org.onosproject</groupId>
370 <artifactId>onos-incubator-api</artifactId>
371 <version>${project.version}</version>
372 </dependency>
373
374 <dependency>
375 <groupId>org.onosproject</groupId>
376 <artifactId>onos-core-common</artifactId>
377 <version>${project.version}</version>
378 </dependency>
379 <dependency>
380 <groupId>org.onosproject</groupId>
381 <artifactId>onos-core-common</artifactId>
382 <version>${project.version}</version>
383 <classifier>tests</classifier>
384 <scope>test</scope>
385 </dependency>
386
387 <dependency>
388 <groupId>org.onosproject</groupId>
389 <artifactId>onos-of-api</artifactId>
390 <version>${project.version}</version>
391 </dependency>
392 <dependency>
393 <groupId>org.onosproject</groupId>
394 <artifactId>onos-ovsdb-rfc</artifactId>
395 <version>${project.version}</version>
396 </dependency>
397 <dependency>
398 <groupId>org.onosproject</groupId>
399 <artifactId>onos-ovsdb-api</artifactId>
400 <version>${project.version}</version>
401 </dependency>
402 <dependency>
403 <groupId>org.onosproject</groupId>
Phanendra Manda5e895872015-08-26 20:11:58 +0530404 <artifactId>onos-app-pcep-api</artifactId>
405 <version>${project.version}</version>
406 </dependency>
407 <dependency>
408 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700409 <artifactId>onos-pcepio</artifactId>
410 <version>${project.version}</version>
411 </dependency>
412
413 <dependency>
414 <groupId>org.onosproject</groupId>
415 <artifactId>onos-pcep-controller-api</artifactId>
416 <version>${project.version}</version>
417 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700418 <dependency>
419 <groupId>org.onosproject</groupId>
420 <artifactId>onlab-thirdparty</artifactId>
421 <version>${project.version}</version>
422 </dependency>
423
424 <dependency>
425 <groupId>org.onosproject</groupId>
426 <artifactId>onos-of-api</artifactId>
427 <version>${project.version}</version>
428 <classifier>tests</classifier>
429 <scope>test</scope>
430 </dependency>
431 <dependency>
Phanendra Manda5e895872015-08-26 20:11:58 +0530432 <groupId>org.onosproject</groupId>
433 <artifactId>onos-pcep-controller-api</artifactId>
434 <version>${project.version}</version>
435 <classifier>tests</classifier>
436 <scope>test</scope>
437 </dependency>
438 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530439 <groupId>org.onosproject</groupId>
440 <artifactId>onos-bgpio</artifactId>
441 <version>${project.version}</version>
442 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800443
Brian O'Connor354cab92015-08-27 11:55:27 -0700444 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530445 <groupId>org.onosproject</groupId>
446 <artifactId>onos-bgp-api</artifactId>
447 <version>${project.version}</version>
448 </dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530449 <dependency>
450 <groupId>org.onosproject</groupId>
451 <artifactId>onos-app-bgp-api</artifactId>
452 <version>${project.version}</version>
453 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800454
455
456 <!-- Netty related; for now we require both 3.9 and 4 -->
457 <dependency>
458 <groupId>io.netty</groupId>
459 <artifactId>netty</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800460 <version>3.10.5.Final</version>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800461 </dependency>
462
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530463 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700464 <groupId>io.netty</groupId>
465 <artifactId>netty-common</artifactId>
466 <version>${netty4.version}</version>
467 </dependency>
468 <dependency>
469 <groupId>io.netty</groupId>
470 <artifactId>netty-buffer</artifactId>
471 <version>${netty4.version}</version>
472 </dependency>
473 <dependency>
474 <groupId>io.netty</groupId>
475 <artifactId>netty-transport</artifactId>
476 <version>${netty4.version}</version>
477 </dependency>
478 <dependency>
479 <groupId>io.netty</groupId>
480 <artifactId>netty-handler</artifactId>
481 <version>${netty4.version}</version>
482 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800483
Brian O'Connor354cab92015-08-27 11:55:27 -0700484 <dependency>
485 <groupId>io.netty</groupId>
486 <artifactId>netty-codec</artifactId>
487 <version>${netty4.version}</version>
488 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800489
Brian O'Connor354cab92015-08-27 11:55:27 -0700490 <dependency>
491 <groupId>io.netty</groupId>
492 <artifactId>netty-transport-native-epoll</artifactId>
493 <version>${netty4.version}</version>
494 <classifier>${os.detected.classifier}</classifier>
495 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800496
Brian O'Connor354cab92015-08-27 11:55:27 -0700497 <dependency>
498 <groupId>joda-time</groupId>
499 <artifactId>joda-time</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800500 <version>2.9</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700501 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800502
503 <dependency>
504 <groupId>com.google.code.findbugs</groupId>
505 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800506 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800507 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700508 </dependencies>
509 </dependencyManagement>
510
511 <dependencies>
512 <dependency>
513 <groupId>junit</groupId>
514 <artifactId>junit</artifactId>
515 </dependency>
516 <dependency>
517 <groupId>org.hamcrest</groupId>
518 <artifactId>hamcrest-core</artifactId>
519 </dependency>
520 <dependency>
521 <groupId>org.hamcrest</groupId>
522 <artifactId>hamcrest-library</artifactId>
523 </dependency>
524 <dependency>
525 <groupId>org.slf4j</groupId>
526 <artifactId>slf4j-api</artifactId>
527 </dependency>
528 <dependency>
529 <groupId>org.slf4j</groupId>
530 <artifactId>slf4j-jdk14</artifactId>
531 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800532 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
533 Class not found: javax.annotation.Nullable
534 The following dependency alleviates this problem, but perhaps
535 it can be better located in the future. -->
536 <dependency>
537 <groupId>com.google.code.findbugs</groupId>
538 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800539 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800540 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700541 </dependencies>
542
543 <build>
544 <pluginManagement>
545 <plugins>
546 <plugin>
547 <groupId>org.apache.maven.plugins</groupId>
548 <artifactId>maven-compiler-plugin</artifactId>
549 <!-- TODO: update once following issue is fixed. -->
550 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
551 <version>2.5.1</version>
552 <configuration>
553 <source>1.8</source>
554 <target>1.8</target>
555 </configuration>
556 </plugin>
557
558 <plugin>
559 <groupId>org.apache.maven.plugins</groupId>
560 <artifactId>maven-surefire-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800561 <version>2.19.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700562 <configuration>
Brian O'Connor89957a32015-12-08 18:37:04 -0800563 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Brian O'Connor354cab92015-08-27 11:55:27 -0700564 <printSummary>true</printSummary>
565 <excludedGroups>org.onlab.junit.IntegrationTest
566 </excludedGroups>
567 <rerunFailingTestsCount>1</rerunFailingTestsCount>
568 </configuration>
569 </plugin>
andreafaa2c4b2015-11-16 13:48:39 -0800570 <plugin>
571 <groupId>org.apache.maven.plugins</groupId>
572 <artifactId>maven-javadoc-plugin</artifactId>
573 <version>2.10.3</version>
574 <configuration>
575 <tags>
576 <tag>
Andrea Campanella10c4adc2015-12-03 15:27:54 -0800577 <name>onos.rsModel</name>
andreafaa2c4b2015-11-16 13:48:39 -0800578 <placement>m</placement>
579 <head>Json model for REST api:</head>
580 </tag>
581 </tags>
582 </configuration>
583 </plugin>
Brian O'Connor354cab92015-08-27 11:55:27 -0700584 <plugin>
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-jar-plugin</artifactId>
Brian O'Connor89957a32015-12-08 18:37:04 -0800587 <version>2.6</version>
588 <configuration>
589 <skipIfEmpty>true</skipIfEmpty>
590 </configuration>
Brian O'Connor354cab92015-08-27 11:55:27 -0700591 <executions>
592 <execution>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800593 <id>default</id>
Brian O'Connor354cab92015-08-27 11:55:27 -0700594 <goals>
595 <goal>test-jar</goal>
596 </goals>
597 </execution>
598 </executions>
599 </plugin>
600
601 <plugin>
602 <groupId>org.apache.maven.plugins</groupId>
603 <artifactId>maven-resources-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800604 <version>2.7</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700605 </plugin>
606
607 <plugin>
608 <groupId>org.apache.felix</groupId>
609 <artifactId>maven-bundle-plugin</artifactId>
Brian O'Connor0c548212015-12-08 15:30:49 -0800610 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700611 <extensions>true</extensions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700612 </plugin>
613
614 <plugin>
615 <groupId>org.apache.maven.plugins</groupId>
616 <artifactId>maven-shade-plugin</artifactId>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800617 <version>2.4.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700618 </plugin>
619
620 <plugin>
621 <groupId>org.apache.felix</groupId>
622 <artifactId>maven-scr-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800623 <version>1.21.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700624 <executions>
625 <execution>
626 <id>generate-scr-srcdescriptor</id>
627 <goals>
628 <goal>scr</goal>
629 </goals>
630 </execution>
631 </executions>
632 <configuration>
633 <supportedProjectTypes>
634 <supportedProjectType>bundle</supportedProjectType>
635 <supportedProjectType>war</supportedProjectType>
636 </supportedProjectTypes>
637 </configuration>
638 </plugin>
639 <plugin>
640 <groupId>org.codehaus.mojo</groupId>
641 <artifactId>findbugs-maven-plugin</artifactId>
HIGUCHI Yuta8aa86112015-09-22 15:05:35 -0700642 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700643 <dependencies>
644 <dependency>
645 <groupId>org.onosproject</groupId>
646 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700647 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700648 </dependency>
649 </dependencies>
650 <configuration>
651 <effort>Max</effort>
652 <excludeFilterFile>onos/findbugs-suppressions.xml
653 </excludeFilterFile>
654 </configuration>
655 </plugin>
656
657 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
658 <plugin>
659 <groupId>org.onosproject</groupId>
660 <artifactId>onos-maven-plugin</artifactId>
Andrea Campanella260645b2015-12-06 10:24:18 -0800661 <version>${onos-maven-plugin.version}</version>
andreafaa2c4b2015-11-16 13:48:39 -0800662 <executions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700663 <execution>
664 <id>cfg</id>
665 <phase>generate-resources</phase>
666 <goals>
667 <goal>cfg</goal>
668 </goals>
669 </execution>
670 <execution>
671 <id>swagger</id>
672 <phase>generate-sources</phase>
673 <goals>
674 <goal>swagger</goal>
675 </goals>
676 </execution>
677 <execution>
678 <id>app</id>
679 <phase>package</phase>
680 <goals>
681 <goal>app</goal>
682 </goals>
683 </execution>
684 </executions>
685 </plugin>
686 </plugins>
687 </pluginManagement>
688
689 <plugins>
690 <plugin>
691 <groupId>org.apache.maven.plugins</groupId>
692 <artifactId>maven-jar-plugin</artifactId>
693 </plugin>
694
695 <plugin>
696 <groupId>org.apache.maven.plugins</groupId>
697 <artifactId>maven-checkstyle-plugin</artifactId>
Jian Li68c4fc42016-01-11 16:07:03 -0800698 <version>2.17</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700699 <dependencies>
700 <dependency>
701 <groupId>org.onosproject</groupId>
702 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700703 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700704 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700705 </dependencies>
706 <configuration>
707 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
708 <sourceDirectory>${project.build.sourceDirectory}
709 </sourceDirectory>
710 <testSourceDirectory>${project.build.testSourceDirectory}
711 </testSourceDirectory>
712 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
713 <configLocation>onos/checkstyle.xml</configLocation>
714 <suppressionsLocation>onos/suppressions.xml
715 </suppressionsLocation>
716 <failsOnError>false</failsOnError>
717 <logViolationsToConsole>true</logViolationsToConsole>
718 <includeTestSourceDirectory>true
719 </includeTestSourceDirectory>
720 </configuration>
721 <executions>
722 <execution>
723 <id>validate-checkstyle</id>
724 <phase>verify</phase>
725 <goals>
726 <goal>check</goal>
727 </goals>
728 </execution>
729 </executions>
730 </plugin>
731
732 <plugin>
733 <groupId>org.apache.maven.plugins</groupId>
734 <artifactId>maven-pmd-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800735 <version>3.6</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700736 <configuration>
737 <excludes>
738 </excludes>
739 <rulesets>
740 <ruleset>onos/pmd.xml</ruleset>
741 </rulesets>
742 </configuration>
743 <executions>
744 <execution>
745 <id>validate-pmd</id>
746 <phase>verify</phase>
747 <goals>
748 <!-- Uncomment this goal to make the build fail on pmd errors -->
749 <!--<goal>check</goal>-->
750 </goals>
751 </execution>
752 </executions>
753 </plugin>
754
755 <plugin>
756 <groupId>org.jacoco</groupId>
757 <artifactId>jacoco-maven-plugin</artifactId>
HIGUCHI Yuta4303ac22015-11-23 11:29:21 -0800758 <version>0.7.5.201505241946</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700759 <executions>
760 <execution>
761 <id>default-prepare-agent</id>
762 <goals>
763 <goal>prepare-agent</goal>
764 </goals>
765 </execution>
766 <execution>
767 <id>default-report</id>
768 <phase>prepare-package</phase>
769 <goals>
770 <goal>report</goal>
771 </goals>
772 </execution>
773 </executions>
774 </plugin>
775 </plugins>
776 </build>
777
778 <reporting>
779 <plugins>
780 <plugin>
781 <groupId>org.apache.maven.plugins</groupId>
782 <artifactId>maven-checkstyle-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700783 <configuration>
784 <configLocation>onos/checkstyle.xml</configLocation>
785 </configuration>
786 </plugin>
787
788 <plugin>
789 <groupId>org.apache.maven.plugins</groupId>
790 <artifactId>maven-pmd-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700791 <configuration>
792 <excludes>
793 </excludes>
794 <rulesets>
795 <ruleset>onos/pmd.xml</ruleset>
796 </rulesets>
797 </configuration>
798 </plugin>
799 </plugins>
800 </reporting>
Madan Jampani3289fbf2016-01-13 14:14:27 -0800801</project>