blob: b43e24613e99b4523649b33845a350f47b290552 [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
55 <module>tools/package/archetypes</module>
56 <module>tools/package/branding</module>
Andrea Campanella82baf6b2015-12-14 10:23:37 -080057 <module>tools/package/maven-plugin</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070058 </modules>
59
60 <url>http://onosproject.org/</url>
61
62 <scm>
63 <connection>scm:git:https://gerrit.onosproject.org/onos</connection>
64 <developerConnection>scm:git:https://gerrit.onosproject.org/onos
65 </developerConnection>
66 <url>http://gerrit.onosproject.org/</url>
67 </scm>
68
69 <licenses>
70 <license>
71 <name>Apache License, Version 2.0</name>
72 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
73 </license>
74 </licenses>
75
76 <properties>
77 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Brian O'Connore261ab22015-12-04 22:42:06 -080078 <onos-build-conf.version>1.1</onos-build-conf.version>
Jian Lic0c36a42016-01-08 13:41:27 -080079 <netty4.version>4.0.33.Final</netty4.version>
Madan Jampani3289fbf2016-01-13 14:14:27 -080080 <!-- TODO: replace with final release version when it is out -->
81 <atomix.version>0.1.0-beta4</atomix.version>
Brian O'Connor47196c52015-12-15 14:21:47 -080082 <copycat.version>0.5.1.onos</copycat.version>
Brian O'Connor3f4ed6b2015-12-15 14:40:02 -080083 <openflowj.version>0.9.1.onos</openflowj.version>
Andrea Campanella82baf6b2015-12-14 10:23:37 -080084 <onos-maven-plugin.version>1.8-SNAPSHOT</onos-maven-plugin.version>
Jian Lic0c36a42016-01-08 13:41:27 -080085 <osgi.version>4.3.1</osgi.version>
Brian O'Connor354cab92015-08-27 11:55:27 -070086 <karaf.version>3.0.3</karaf.version>
87 <jersey.version>1.19</jersey.version>
Jian Lic0c36a42016-01-08 13:41:27 -080088 <fasterxml.jackson.version>2.6.4</fasterxml.jackson.version>
89 <codehaus.jackson.version>1.9.13</codehaus.jackson.version>
90 <slf4j.version>1.7.6</slf4j.version>
91 <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.codehaus.jackson</groupId>
200 <artifactId>jackson-core-asl</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800201 <version>${codehaus.jackson.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700202 </dependency>
203 <dependency>
204 <groupId>org.codehaus.jackson</groupId>
205 <artifactId>jackson-mapper-asl</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800206 <version>${codehaus.jackson.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700207 </dependency>
208
209 <dependency>
210 <groupId>org.easymock</groupId>
211 <artifactId>easymock</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800212 <version>3.4</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700213 <scope>test</scope>
214 </dependency>
215
216 <!-- Web related -->
217 <dependency>
218 <groupId>com.sun.jersey</groupId>
219 <artifactId>jersey-servlet</artifactId>
220 <version>${jersey.version}</version>
221 <scope>provided</scope>
222 </dependency>
223 <dependency>
224 <groupId>com.sun.jersey.contribs</groupId>
225 <artifactId>jersey-multipart</artifactId>
226 <version>${jersey.version}</version>
227 <scope>provided</scope>
228 </dependency>
229 <dependency>
230 <groupId>com.sun.jersey.jersey-test-framework</groupId>
231 <artifactId>jersey-test-framework-core</artifactId>
232 <version>${jersey.version}</version>
233 <scope>test</scope>
234 </dependency>
235 <dependency>
236 <groupId>com.sun.jersey.jersey-test-framework</groupId>
237 <artifactId>jersey-test-framework-grizzly2</artifactId>
238 <version>${jersey.version}</version>
239 <scope>test</scope>
240 </dependency>
241 <dependency>
242 <groupId>com.fasterxml.jackson.core</groupId>
243 <artifactId>jackson-databind</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800244 <version>${fasterxml.jackson.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700245 <scope>provided</scope>
246 </dependency>
247 <dependency>
248 <groupId>com.fasterxml.jackson.core</groupId>
249 <artifactId>jackson-annotations</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800250 <version>${fasterxml.jackson.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700251 <scope>provided</scope>
252 </dependency>
253
254 <!-- OSGi related -->
255 <dependency>
256 <groupId>org.osgi</groupId>
257 <artifactId>org.osgi.core</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.osgi</groupId>
263 <artifactId>org.osgi.compendium</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800264 <version>${osgi.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700265 <scope>provided</scope>
266 </dependency>
267 <dependency>
268 <groupId>org.apache.felix</groupId>
269 <artifactId>org.apache.felix.scr.annotations</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800270 <version>1.9.12</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700271 <scope>provided</scope>
272 </dependency>
273
274 <dependency>
275 <groupId>org.apache.karaf.features</groupId>
276 <artifactId>org.apache.karaf.features.core</artifactId>
277 <version>${karaf.version}</version>
278 <scope>provided</scope>
279 </dependency>
280 <dependency>
281 <groupId>org.apache.karaf.system</groupId>
282 <artifactId>org.apache.karaf.system.core</artifactId>
283 <version>${karaf.version}</version>
284 <scope>provided</scope>
285 </dependency>
286 <dependency>
287 <groupId>org.apache.karaf.shell</groupId>
288 <artifactId>org.apache.karaf.shell.console</artifactId>
289 <version>${karaf.version}</version>
290 <scope>provided</scope>
291 </dependency>
292
293 <dependency>
294 <groupId>org.livetribe.slp</groupId>
295 <artifactId>livetribe-slp</artifactId>
296 <version>2.2.1</version>
297 </dependency>
298
299 <dependency>
300 <groupId>com.eclipsesource.minimal-json</groupId>
301 <artifactId>minimal-json</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800302 <version>0.9.4</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700303 </dependency>
304 <dependency>
305 <groupId>com.esotericsoftware</groupId>
306 <artifactId>kryo</artifactId>
307 <version>3.0.0</version>
308 </dependency>
309 <dependency>
310 <groupId>com.esotericsoftware</groupId>
311 <artifactId>reflectasm</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800312 <version>1.11.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700313 <type>bundle</type>
314 </dependency>
315 <dependency>
316 <groupId>org.ow2.asm</groupId>
317 <artifactId>asm</artifactId>
318 <version>4.2</version>
319 </dependency>
320 <dependency>
321 <groupId>com.esotericsoftware</groupId>
322 <artifactId>minlog</artifactId>
323 <version>1.3.0</version>
324 </dependency>
325 <dependency>
326 <groupId>org.objenesis</groupId>
327 <artifactId>objenesis</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800328 <version>2.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700329 </dependency>
330
331 <!-- ONOS related -->
332 <dependency>
333 <groupId>org.onosproject</groupId>
334 <artifactId>onlab-misc</artifactId>
335 <version>${project.version}</version>
336 </dependency>
337 <dependency>
338 <groupId>org.onosproject</groupId>
339 <artifactId>onlab-nio</artifactId>
340 <version>${project.version}</version>
341 </dependency>
342 <dependency>
343 <groupId>org.onosproject</groupId>
344 <artifactId>onlab-osgi</artifactId>
345 <version>${project.version}</version>
346 </dependency>
347 <dependency>
348 <groupId>org.onosproject</groupId>
349 <artifactId>onlab-osgi</artifactId>
350 <version>${project.version}</version>
351 <classifier>tests</classifier>
352 <scope>test</scope>
353 </dependency>
354 <dependency>
355 <groupId>org.onosproject</groupId>
356 <artifactId>onlab-junit</artifactId>
357 <version>${project.version}</version>
358 <scope>test</scope>
359 </dependency>
360
361 <dependency>
362 <groupId>org.onosproject</groupId>
363 <artifactId>onos-api</artifactId>
364 <version>${project.version}</version>
365 </dependency>
366 <dependency>
367 <groupId>org.onosproject</groupId>
368 <artifactId>onos-api</artifactId>
369 <version>${project.version}</version>
370 <classifier>tests</classifier>
371 <scope>test</scope>
372 </dependency>
373
374 <dependency>
375 <groupId>org.onosproject</groupId>
376 <artifactId>onos-incubator-api</artifactId>
377 <version>${project.version}</version>
378 </dependency>
379
380 <dependency>
381 <groupId>org.onosproject</groupId>
382 <artifactId>onos-core-common</artifactId>
383 <version>${project.version}</version>
384 </dependency>
385 <dependency>
386 <groupId>org.onosproject</groupId>
387 <artifactId>onos-core-common</artifactId>
388 <version>${project.version}</version>
389 <classifier>tests</classifier>
390 <scope>test</scope>
391 </dependency>
392
393 <dependency>
394 <groupId>org.onosproject</groupId>
395 <artifactId>onos-of-api</artifactId>
396 <version>${project.version}</version>
397 </dependency>
398 <dependency>
399 <groupId>org.onosproject</groupId>
400 <artifactId>onos-ovsdb-rfc</artifactId>
401 <version>${project.version}</version>
402 </dependency>
403 <dependency>
404 <groupId>org.onosproject</groupId>
405 <artifactId>onos-ovsdb-api</artifactId>
406 <version>${project.version}</version>
407 </dependency>
408 <dependency>
409 <groupId>org.onosproject</groupId>
Phanendra Manda5e895872015-08-26 20:11:58 +0530410 <artifactId>onos-app-pcep-api</artifactId>
411 <version>${project.version}</version>
412 </dependency>
413 <dependency>
414 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700415 <artifactId>onos-pcepio</artifactId>
416 <version>${project.version}</version>
417 </dependency>
418
419 <dependency>
420 <groupId>org.onosproject</groupId>
421 <artifactId>onos-pcep-controller-api</artifactId>
422 <version>${project.version}</version>
423 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700424 <dependency>
425 <groupId>org.onosproject</groupId>
426 <artifactId>onlab-thirdparty</artifactId>
427 <version>${project.version}</version>
428 </dependency>
429
430 <dependency>
431 <groupId>org.onosproject</groupId>
432 <artifactId>onos-of-api</artifactId>
433 <version>${project.version}</version>
434 <classifier>tests</classifier>
435 <scope>test</scope>
436 </dependency>
437 <dependency>
Phanendra Manda5e895872015-08-26 20:11:58 +0530438 <groupId>org.onosproject</groupId>
439 <artifactId>onos-pcep-controller-api</artifactId>
440 <version>${project.version}</version>
441 <classifier>tests</classifier>
442 <scope>test</scope>
443 </dependency>
444 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530445 <groupId>org.onosproject</groupId>
446 <artifactId>onos-bgpio</artifactId>
447 <version>${project.version}</version>
448 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800449
Brian O'Connor354cab92015-08-27 11:55:27 -0700450 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530451 <groupId>org.onosproject</groupId>
452 <artifactId>onos-bgp-api</artifactId>
453 <version>${project.version}</version>
454 </dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530455 <dependency>
456 <groupId>org.onosproject</groupId>
457 <artifactId>onos-app-bgp-api</artifactId>
458 <version>${project.version}</version>
459 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800460
461
462 <!-- Netty related; for now we require both 3.9 and 4 -->
463 <dependency>
464 <groupId>io.netty</groupId>
465 <artifactId>netty</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800466 <version>3.10.5.Final</version>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800467 </dependency>
468
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530469 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700470 <groupId>io.netty</groupId>
471 <artifactId>netty-common</artifactId>
472 <version>${netty4.version}</version>
473 </dependency>
474 <dependency>
475 <groupId>io.netty</groupId>
476 <artifactId>netty-buffer</artifactId>
477 <version>${netty4.version}</version>
478 </dependency>
479 <dependency>
480 <groupId>io.netty</groupId>
481 <artifactId>netty-transport</artifactId>
482 <version>${netty4.version}</version>
483 </dependency>
484 <dependency>
485 <groupId>io.netty</groupId>
486 <artifactId>netty-handler</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-codec</artifactId>
493 <version>${netty4.version}</version>
494 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800495
Brian O'Connor354cab92015-08-27 11:55:27 -0700496 <dependency>
497 <groupId>io.netty</groupId>
498 <artifactId>netty-transport-native-epoll</artifactId>
499 <version>${netty4.version}</version>
500 <classifier>${os.detected.classifier}</classifier>
501 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800502
Brian O'Connor354cab92015-08-27 11:55:27 -0700503 <dependency>
504 <groupId>joda-time</groupId>
505 <artifactId>joda-time</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800506 <version>2.9</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700507 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800508
509 <dependency>
510 <groupId>com.google.code.findbugs</groupId>
511 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800512 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800513 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700514 </dependencies>
515 </dependencyManagement>
516
517 <dependencies>
518 <dependency>
519 <groupId>junit</groupId>
520 <artifactId>junit</artifactId>
521 </dependency>
522 <dependency>
523 <groupId>org.hamcrest</groupId>
524 <artifactId>hamcrest-core</artifactId>
525 </dependency>
526 <dependency>
527 <groupId>org.hamcrest</groupId>
528 <artifactId>hamcrest-library</artifactId>
529 </dependency>
530 <dependency>
531 <groupId>org.slf4j</groupId>
532 <artifactId>slf4j-api</artifactId>
533 </dependency>
534 <dependency>
535 <groupId>org.slf4j</groupId>
536 <artifactId>slf4j-jdk14</artifactId>
537 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800538 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
539 Class not found: javax.annotation.Nullable
540 The following dependency alleviates this problem, but perhaps
541 it can be better located in the future. -->
542 <dependency>
543 <groupId>com.google.code.findbugs</groupId>
544 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800545 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800546 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700547 </dependencies>
548
549 <build>
550 <pluginManagement>
551 <plugins>
552 <plugin>
553 <groupId>org.apache.maven.plugins</groupId>
554 <artifactId>maven-compiler-plugin</artifactId>
555 <!-- TODO: update once following issue is fixed. -->
556 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
557 <version>2.5.1</version>
558 <configuration>
559 <source>1.8</source>
560 <target>1.8</target>
561 </configuration>
562 </plugin>
563
564 <plugin>
565 <groupId>org.apache.maven.plugins</groupId>
566 <artifactId>maven-surefire-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800567 <version>2.19.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700568 <configuration>
Brian O'Connor89957a32015-12-08 18:37:04 -0800569 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Brian O'Connor354cab92015-08-27 11:55:27 -0700570 <printSummary>true</printSummary>
571 <excludedGroups>org.onlab.junit.IntegrationTest
572 </excludedGroups>
573 <rerunFailingTestsCount>1</rerunFailingTestsCount>
574 </configuration>
575 </plugin>
andreafaa2c4b2015-11-16 13:48:39 -0800576 <plugin>
577 <groupId>org.apache.maven.plugins</groupId>
578 <artifactId>maven-javadoc-plugin</artifactId>
579 <version>2.10.3</version>
580 <configuration>
581 <tags>
582 <tag>
Andrea Campanella10c4adc2015-12-03 15:27:54 -0800583 <name>onos.rsModel</name>
andreafaa2c4b2015-11-16 13:48:39 -0800584 <placement>m</placement>
585 <head>Json model for REST api:</head>
586 </tag>
587 </tags>
588 </configuration>
589 </plugin>
Brian O'Connor354cab92015-08-27 11:55:27 -0700590 <plugin>
591 <groupId>org.apache.maven.plugins</groupId>
592 <artifactId>maven-jar-plugin</artifactId>
Brian O'Connor89957a32015-12-08 18:37:04 -0800593 <version>2.6</version>
594 <configuration>
595 <skipIfEmpty>true</skipIfEmpty>
596 </configuration>
Brian O'Connor354cab92015-08-27 11:55:27 -0700597 <executions>
598 <execution>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800599 <id>default</id>
Brian O'Connor354cab92015-08-27 11:55:27 -0700600 <goals>
601 <goal>test-jar</goal>
602 </goals>
603 </execution>
604 </executions>
605 </plugin>
606
607 <plugin>
608 <groupId>org.apache.maven.plugins</groupId>
609 <artifactId>maven-resources-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800610 <version>2.7</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700611 </plugin>
612
613 <plugin>
614 <groupId>org.apache.felix</groupId>
615 <artifactId>maven-bundle-plugin</artifactId>
Brian O'Connor0c548212015-12-08 15:30:49 -0800616 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700617 <extensions>true</extensions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700618 </plugin>
619
620 <plugin>
621 <groupId>org.apache.maven.plugins</groupId>
622 <artifactId>maven-shade-plugin</artifactId>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800623 <version>2.4.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700624 </plugin>
625
626 <plugin>
627 <groupId>org.apache.felix</groupId>
628 <artifactId>maven-scr-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800629 <version>1.21.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700630 <executions>
631 <execution>
632 <id>generate-scr-srcdescriptor</id>
633 <goals>
634 <goal>scr</goal>
635 </goals>
636 </execution>
637 </executions>
638 <configuration>
639 <supportedProjectTypes>
640 <supportedProjectType>bundle</supportedProjectType>
641 <supportedProjectType>war</supportedProjectType>
642 </supportedProjectTypes>
643 </configuration>
644 </plugin>
645 <plugin>
646 <groupId>org.codehaus.mojo</groupId>
647 <artifactId>findbugs-maven-plugin</artifactId>
HIGUCHI Yuta8aa86112015-09-22 15:05:35 -0700648 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700649 <dependencies>
650 <dependency>
651 <groupId>org.onosproject</groupId>
652 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700653 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700654 </dependency>
655 </dependencies>
656 <configuration>
657 <effort>Max</effort>
658 <excludeFilterFile>onos/findbugs-suppressions.xml
659 </excludeFilterFile>
660 </configuration>
661 </plugin>
662
663 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
664 <plugin>
665 <groupId>org.onosproject</groupId>
666 <artifactId>onos-maven-plugin</artifactId>
Andrea Campanella260645b2015-12-06 10:24:18 -0800667 <version>${onos-maven-plugin.version}</version>
andreafaa2c4b2015-11-16 13:48:39 -0800668 <executions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700669 <execution>
670 <id>cfg</id>
671 <phase>generate-resources</phase>
672 <goals>
673 <goal>cfg</goal>
674 </goals>
675 </execution>
676 <execution>
677 <id>swagger</id>
678 <phase>generate-sources</phase>
679 <goals>
680 <goal>swagger</goal>
681 </goals>
682 </execution>
683 <execution>
684 <id>app</id>
685 <phase>package</phase>
686 <goals>
687 <goal>app</goal>
688 </goals>
689 </execution>
690 </executions>
691 </plugin>
692 </plugins>
693 </pluginManagement>
694
695 <plugins>
696 <plugin>
697 <groupId>org.apache.maven.plugins</groupId>
698 <artifactId>maven-jar-plugin</artifactId>
699 </plugin>
700
701 <plugin>
702 <groupId>org.apache.maven.plugins</groupId>
703 <artifactId>maven-checkstyle-plugin</artifactId>
Jian Li68c4fc42016-01-11 16:07:03 -0800704 <version>2.17</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700705 <dependencies>
706 <dependency>
707 <groupId>org.onosproject</groupId>
708 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700709 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700710 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700711 </dependencies>
712 <configuration>
713 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
714 <sourceDirectory>${project.build.sourceDirectory}
715 </sourceDirectory>
716 <testSourceDirectory>${project.build.testSourceDirectory}
717 </testSourceDirectory>
718 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
719 <configLocation>onos/checkstyle.xml</configLocation>
720 <suppressionsLocation>onos/suppressions.xml
721 </suppressionsLocation>
722 <failsOnError>false</failsOnError>
723 <logViolationsToConsole>true</logViolationsToConsole>
724 <includeTestSourceDirectory>true
725 </includeTestSourceDirectory>
726 </configuration>
727 <executions>
728 <execution>
729 <id>validate-checkstyle</id>
730 <phase>verify</phase>
731 <goals>
732 <goal>check</goal>
733 </goals>
734 </execution>
735 </executions>
736 </plugin>
737
738 <plugin>
739 <groupId>org.apache.maven.plugins</groupId>
740 <artifactId>maven-pmd-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800741 <version>3.6</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700742 <configuration>
743 <excludes>
744 </excludes>
745 <rulesets>
746 <ruleset>onos/pmd.xml</ruleset>
747 </rulesets>
748 </configuration>
749 <executions>
750 <execution>
751 <id>validate-pmd</id>
752 <phase>verify</phase>
753 <goals>
754 <!-- Uncomment this goal to make the build fail on pmd errors -->
755 <!--<goal>check</goal>-->
756 </goals>
757 </execution>
758 </executions>
759 </plugin>
760
761 <plugin>
762 <groupId>org.jacoco</groupId>
763 <artifactId>jacoco-maven-plugin</artifactId>
HIGUCHI Yuta4303ac22015-11-23 11:29:21 -0800764 <version>0.7.5.201505241946</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700765 <executions>
766 <execution>
767 <id>default-prepare-agent</id>
768 <goals>
769 <goal>prepare-agent</goal>
770 </goals>
771 </execution>
772 <execution>
773 <id>default-report</id>
774 <phase>prepare-package</phase>
775 <goals>
776 <goal>report</goal>
777 </goals>
778 </execution>
779 </executions>
780 </plugin>
781 </plugins>
782 </build>
783
784 <reporting>
785 <plugins>
786 <plugin>
787 <groupId>org.apache.maven.plugins</groupId>
788 <artifactId>maven-checkstyle-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700789 <configuration>
790 <configLocation>onos/checkstyle.xml</configLocation>
791 </configuration>
792 </plugin>
793
794 <plugin>
795 <groupId>org.apache.maven.plugins</groupId>
796 <artifactId>maven-pmd-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700797 <configuration>
798 <excludes>
799 </excludes>
800 <rulesets>
801 <ruleset>onos/pmd.xml</ruleset>
802 </rulesets>
803 </configuration>
804 </plugin>
805 </plugins>
806 </reporting>
Madan Jampani3289fbf2016-01-13 14:14:27 -0800807</project>