blob: 36692943508412b739eee0ec15bd26117907e723 [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>
Brian O'Connor354cab92015-08-27 11:55:27 -0700333 <artifactId>onlab-osgi</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 <classifier>tests</classifier>
341 <scope>test</scope>
342 </dependency>
343 <dependency>
344 <groupId>org.onosproject</groupId>
345 <artifactId>onlab-junit</artifactId>
346 <version>${project.version}</version>
347 <scope>test</scope>
348 </dependency>
349
350 <dependency>
351 <groupId>org.onosproject</groupId>
352 <artifactId>onos-api</artifactId>
353 <version>${project.version}</version>
354 </dependency>
355 <dependency>
356 <groupId>org.onosproject</groupId>
357 <artifactId>onos-api</artifactId>
358 <version>${project.version}</version>
359 <classifier>tests</classifier>
360 <scope>test</scope>
361 </dependency>
362
363 <dependency>
364 <groupId>org.onosproject</groupId>
365 <artifactId>onos-incubator-api</artifactId>
366 <version>${project.version}</version>
367 </dependency>
368
369 <dependency>
370 <groupId>org.onosproject</groupId>
371 <artifactId>onos-core-common</artifactId>
372 <version>${project.version}</version>
373 </dependency>
374 <dependency>
375 <groupId>org.onosproject</groupId>
376 <artifactId>onos-core-common</artifactId>
377 <version>${project.version}</version>
378 <classifier>tests</classifier>
379 <scope>test</scope>
380 </dependency>
381
382 <dependency>
383 <groupId>org.onosproject</groupId>
384 <artifactId>onos-of-api</artifactId>
385 <version>${project.version}</version>
386 </dependency>
387 <dependency>
388 <groupId>org.onosproject</groupId>
389 <artifactId>onos-ovsdb-rfc</artifactId>
390 <version>${project.version}</version>
391 </dependency>
392 <dependency>
393 <groupId>org.onosproject</groupId>
394 <artifactId>onos-ovsdb-api</artifactId>
395 <version>${project.version}</version>
396 </dependency>
397 <dependency>
398 <groupId>org.onosproject</groupId>
Phanendra Manda5e895872015-08-26 20:11:58 +0530399 <artifactId>onos-app-pcep-api</artifactId>
400 <version>${project.version}</version>
401 </dependency>
402 <dependency>
403 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700404 <artifactId>onos-pcepio</artifactId>
405 <version>${project.version}</version>
406 </dependency>
407
408 <dependency>
409 <groupId>org.onosproject</groupId>
410 <artifactId>onos-pcep-controller-api</artifactId>
411 <version>${project.version}</version>
412 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700413 <dependency>
414 <groupId>org.onosproject</groupId>
415 <artifactId>onlab-thirdparty</artifactId>
416 <version>${project.version}</version>
417 </dependency>
418
419 <dependency>
420 <groupId>org.onosproject</groupId>
421 <artifactId>onos-of-api</artifactId>
422 <version>${project.version}</version>
423 <classifier>tests</classifier>
424 <scope>test</scope>
425 </dependency>
426 <dependency>
Phanendra Manda5e895872015-08-26 20:11:58 +0530427 <groupId>org.onosproject</groupId>
428 <artifactId>onos-pcep-controller-api</artifactId>
429 <version>${project.version}</version>
430 <classifier>tests</classifier>
431 <scope>test</scope>
432 </dependency>
433 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530434 <groupId>org.onosproject</groupId>
435 <artifactId>onos-bgpio</artifactId>
436 <version>${project.version}</version>
437 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800438
Brian O'Connor354cab92015-08-27 11:55:27 -0700439 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530440 <groupId>org.onosproject</groupId>
441 <artifactId>onos-bgp-api</artifactId>
442 <version>${project.version}</version>
443 </dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530444 <dependency>
445 <groupId>org.onosproject</groupId>
446 <artifactId>onos-app-bgp-api</artifactId>
447 <version>${project.version}</version>
448 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800449
450
451 <!-- Netty related; for now we require both 3.9 and 4 -->
452 <dependency>
453 <groupId>io.netty</groupId>
454 <artifactId>netty</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800455 <version>3.10.5.Final</version>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800456 </dependency>
457
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530458 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700459 <groupId>io.netty</groupId>
460 <artifactId>netty-common</artifactId>
461 <version>${netty4.version}</version>
462 </dependency>
463 <dependency>
464 <groupId>io.netty</groupId>
465 <artifactId>netty-buffer</artifactId>
466 <version>${netty4.version}</version>
467 </dependency>
468 <dependency>
469 <groupId>io.netty</groupId>
470 <artifactId>netty-transport</artifactId>
471 <version>${netty4.version}</version>
472 </dependency>
473 <dependency>
474 <groupId>io.netty</groupId>
475 <artifactId>netty-handler</artifactId>
476 <version>${netty4.version}</version>
477 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800478
Brian O'Connor354cab92015-08-27 11:55:27 -0700479 <dependency>
480 <groupId>io.netty</groupId>
481 <artifactId>netty-codec</artifactId>
482 <version>${netty4.version}</version>
483 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800484
Brian O'Connor354cab92015-08-27 11:55:27 -0700485 <dependency>
486 <groupId>io.netty</groupId>
487 <artifactId>netty-transport-native-epoll</artifactId>
488 <version>${netty4.version}</version>
489 <classifier>${os.detected.classifier}</classifier>
490 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800491
Brian O'Connor354cab92015-08-27 11:55:27 -0700492 <dependency>
493 <groupId>joda-time</groupId>
494 <artifactId>joda-time</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800495 <version>2.9</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700496 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800497
498 <dependency>
499 <groupId>com.google.code.findbugs</groupId>
500 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800501 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800502 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700503 </dependencies>
504 </dependencyManagement>
505
506 <dependencies>
507 <dependency>
508 <groupId>junit</groupId>
509 <artifactId>junit</artifactId>
510 </dependency>
511 <dependency>
512 <groupId>org.hamcrest</groupId>
513 <artifactId>hamcrest-core</artifactId>
514 </dependency>
515 <dependency>
516 <groupId>org.hamcrest</groupId>
517 <artifactId>hamcrest-library</artifactId>
518 </dependency>
519 <dependency>
520 <groupId>org.slf4j</groupId>
521 <artifactId>slf4j-api</artifactId>
522 </dependency>
523 <dependency>
524 <groupId>org.slf4j</groupId>
525 <artifactId>slf4j-jdk14</artifactId>
526 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800527 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
528 Class not found: javax.annotation.Nullable
529 The following dependency alleviates this problem, but perhaps
530 it can be better located in the future. -->
531 <dependency>
532 <groupId>com.google.code.findbugs</groupId>
533 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800534 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800535 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700536 </dependencies>
537
538 <build>
539 <pluginManagement>
540 <plugins>
541 <plugin>
542 <groupId>org.apache.maven.plugins</groupId>
543 <artifactId>maven-compiler-plugin</artifactId>
544 <!-- TODO: update once following issue is fixed. -->
545 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
546 <version>2.5.1</version>
547 <configuration>
548 <source>1.8</source>
549 <target>1.8</target>
550 </configuration>
551 </plugin>
552
553 <plugin>
554 <groupId>org.apache.maven.plugins</groupId>
555 <artifactId>maven-surefire-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800556 <version>2.19.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700557 <configuration>
Brian O'Connor89957a32015-12-08 18:37:04 -0800558 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Brian O'Connor354cab92015-08-27 11:55:27 -0700559 <printSummary>true</printSummary>
560 <excludedGroups>org.onlab.junit.IntegrationTest
561 </excludedGroups>
562 <rerunFailingTestsCount>1</rerunFailingTestsCount>
563 </configuration>
564 </plugin>
andreafaa2c4b2015-11-16 13:48:39 -0800565 <plugin>
566 <groupId>org.apache.maven.plugins</groupId>
567 <artifactId>maven-javadoc-plugin</artifactId>
568 <version>2.10.3</version>
569 <configuration>
570 <tags>
571 <tag>
Andrea Campanella10c4adc2015-12-03 15:27:54 -0800572 <name>onos.rsModel</name>
andreafaa2c4b2015-11-16 13:48:39 -0800573 <placement>m</placement>
574 <head>Json model for REST api:</head>
575 </tag>
576 </tags>
577 </configuration>
578 </plugin>
Brian O'Connor354cab92015-08-27 11:55:27 -0700579 <plugin>
580 <groupId>org.apache.maven.plugins</groupId>
581 <artifactId>maven-jar-plugin</artifactId>
Brian O'Connor89957a32015-12-08 18:37:04 -0800582 <version>2.6</version>
583 <configuration>
584 <skipIfEmpty>true</skipIfEmpty>
585 </configuration>
Brian O'Connor354cab92015-08-27 11:55:27 -0700586 <executions>
587 <execution>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800588 <id>default</id>
Brian O'Connor354cab92015-08-27 11:55:27 -0700589 <goals>
590 <goal>test-jar</goal>
591 </goals>
592 </execution>
593 </executions>
594 </plugin>
595
596 <plugin>
597 <groupId>org.apache.maven.plugins</groupId>
598 <artifactId>maven-resources-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800599 <version>2.7</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700600 </plugin>
601
602 <plugin>
603 <groupId>org.apache.felix</groupId>
604 <artifactId>maven-bundle-plugin</artifactId>
Brian O'Connor0c548212015-12-08 15:30:49 -0800605 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700606 <extensions>true</extensions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700607 </plugin>
608
609 <plugin>
610 <groupId>org.apache.maven.plugins</groupId>
611 <artifactId>maven-shade-plugin</artifactId>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800612 <version>2.4.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700613 </plugin>
614
615 <plugin>
616 <groupId>org.apache.felix</groupId>
617 <artifactId>maven-scr-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800618 <version>1.21.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700619 <executions>
620 <execution>
621 <id>generate-scr-srcdescriptor</id>
622 <goals>
623 <goal>scr</goal>
624 </goals>
625 </execution>
626 </executions>
627 <configuration>
628 <supportedProjectTypes>
629 <supportedProjectType>bundle</supportedProjectType>
630 <supportedProjectType>war</supportedProjectType>
631 </supportedProjectTypes>
632 </configuration>
633 </plugin>
634 <plugin>
635 <groupId>org.codehaus.mojo</groupId>
636 <artifactId>findbugs-maven-plugin</artifactId>
HIGUCHI Yuta8aa86112015-09-22 15:05:35 -0700637 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700638 <dependencies>
639 <dependency>
640 <groupId>org.onosproject</groupId>
641 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700642 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700643 </dependency>
644 </dependencies>
645 <configuration>
646 <effort>Max</effort>
647 <excludeFilterFile>onos/findbugs-suppressions.xml
648 </excludeFilterFile>
649 </configuration>
650 </plugin>
651
652 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
653 <plugin>
654 <groupId>org.onosproject</groupId>
655 <artifactId>onos-maven-plugin</artifactId>
Andrea Campanella260645b2015-12-06 10:24:18 -0800656 <version>${onos-maven-plugin.version}</version>
andreafaa2c4b2015-11-16 13:48:39 -0800657 <executions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700658 <execution>
659 <id>cfg</id>
660 <phase>generate-resources</phase>
661 <goals>
662 <goal>cfg</goal>
663 </goals>
664 </execution>
665 <execution>
666 <id>swagger</id>
667 <phase>generate-sources</phase>
668 <goals>
669 <goal>swagger</goal>
670 </goals>
671 </execution>
672 <execution>
673 <id>app</id>
674 <phase>package</phase>
675 <goals>
676 <goal>app</goal>
677 </goals>
678 </execution>
679 </executions>
680 </plugin>
681 </plugins>
682 </pluginManagement>
683
684 <plugins>
685 <plugin>
686 <groupId>org.apache.maven.plugins</groupId>
687 <artifactId>maven-jar-plugin</artifactId>
688 </plugin>
689
690 <plugin>
691 <groupId>org.apache.maven.plugins</groupId>
692 <artifactId>maven-checkstyle-plugin</artifactId>
Jian Li68c4fc42016-01-11 16:07:03 -0800693 <version>2.17</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700694 <dependencies>
695 <dependency>
696 <groupId>org.onosproject</groupId>
697 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700698 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700699 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700700 </dependencies>
701 <configuration>
702 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
703 <sourceDirectory>${project.build.sourceDirectory}
704 </sourceDirectory>
705 <testSourceDirectory>${project.build.testSourceDirectory}
706 </testSourceDirectory>
707 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
708 <configLocation>onos/checkstyle.xml</configLocation>
709 <suppressionsLocation>onos/suppressions.xml
710 </suppressionsLocation>
711 <failsOnError>false</failsOnError>
712 <logViolationsToConsole>true</logViolationsToConsole>
713 <includeTestSourceDirectory>true
714 </includeTestSourceDirectory>
715 </configuration>
716 <executions>
717 <execution>
718 <id>validate-checkstyle</id>
719 <phase>verify</phase>
720 <goals>
721 <goal>check</goal>
722 </goals>
723 </execution>
724 </executions>
725 </plugin>
726
727 <plugin>
728 <groupId>org.apache.maven.plugins</groupId>
729 <artifactId>maven-pmd-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800730 <version>3.6</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700731 <configuration>
732 <excludes>
733 </excludes>
734 <rulesets>
735 <ruleset>onos/pmd.xml</ruleset>
736 </rulesets>
737 </configuration>
738 <executions>
739 <execution>
740 <id>validate-pmd</id>
741 <phase>verify</phase>
742 <goals>
743 <!-- Uncomment this goal to make the build fail on pmd errors -->
744 <!--<goal>check</goal>-->
745 </goals>
746 </execution>
747 </executions>
748 </plugin>
749
750 <plugin>
751 <groupId>org.jacoco</groupId>
752 <artifactId>jacoco-maven-plugin</artifactId>
HIGUCHI Yuta4303ac22015-11-23 11:29:21 -0800753 <version>0.7.5.201505241946</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700754 <executions>
755 <execution>
756 <id>default-prepare-agent</id>
757 <goals>
758 <goal>prepare-agent</goal>
759 </goals>
760 </execution>
761 <execution>
762 <id>default-report</id>
763 <phase>prepare-package</phase>
764 <goals>
765 <goal>report</goal>
766 </goals>
767 </execution>
768 </executions>
769 </plugin>
770 </plugins>
771 </build>
772
773 <reporting>
774 <plugins>
775 <plugin>
776 <groupId>org.apache.maven.plugins</groupId>
777 <artifactId>maven-checkstyle-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700778 <configuration>
779 <configLocation>onos/checkstyle.xml</configLocation>
780 </configuration>
781 </plugin>
782
783 <plugin>
784 <groupId>org.apache.maven.plugins</groupId>
785 <artifactId>maven-pmd-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700786 <configuration>
787 <excludes>
788 </excludes>
789 <rulesets>
790 <ruleset>onos/pmd.xml</ruleset>
791 </rulesets>
792 </configuration>
793 </plugin>
794 </plugins>
795 </reporting>
Madan Jampani3289fbf2016-01-13 14:14:27 -0800796</project>