blob: 8bae57b812c85525e27c8a0111d23c8413f3a178 [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>
57 </modules>
58
59 <url>http://onosproject.org/</url>
60
61 <scm>
62 <connection>scm:git:https://gerrit.onosproject.org/onos</connection>
63 <developerConnection>scm:git:https://gerrit.onosproject.org/onos
64 </developerConnection>
65 <url>http://gerrit.onosproject.org/</url>
66 </scm>
67
68 <licenses>
69 <license>
70 <name>Apache License, Version 2.0</name>
71 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
72 </license>
73 </licenses>
74
75 <properties>
76 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Brian O'Connore261ab22015-12-04 22:42:06 -080077 <onos-build-conf.version>1.1</onos-build-conf.version>
Brian O'Connor354cab92015-08-27 11:55:27 -070078 <netty4.version>4.0.23.Final</netty4.version>
Brian O'Connor47196c52015-12-15 14:21:47 -080079 <copycat.version>0.5.1.onos</copycat.version>
Brian O'Connor3f4ed6b2015-12-15 14:40:02 -080080 <openflowj.version>0.9.1.onos</openflowj.version>
Brian O'Connora7ee0582015-12-14 15:27:02 -080081 <onos-maven-plugin.version>1.7</onos-maven-plugin.version>
Brian O'Connor354cab92015-08-27 11:55:27 -070082 <karaf.version>3.0.3</karaf.version>
83 <jersey.version>1.19</jersey.version>
Brian O'Connor89957a32015-12-08 18:37:04 -080084 <!-- TODO argLine was originally added maven-surfire-plugin configuration
85 to fix locale errors for non-US developers. However, it breaks
86 SonarQube's test coverage, so moving here for now. -->
87 <argLine>-Duser.language=en -Duser.region=US</argLine>
Brian O'Connor354cab92015-08-27 11:55:27 -070088 </properties>
89
90 <distributionManagement>
91 <snapshotRepository>
92 <id>ossrh</id>
93 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
94 </snapshotRepository>
95 </distributionManagement>
Brian O'Connor372658e2015-12-04 23:17:41 -080096
Brian O'Connor354cab92015-08-27 11:55:27 -070097 <dependencyManagement>
98 <dependencies>
99 <dependency>
100 <groupId>junit</groupId>
101 <artifactId>junit</artifactId>
102 <version>4.11</version>
103 <scope>test</scope>
104 </dependency>
105
106 <dependency>
107 <groupId>org.hamcrest</groupId>
108 <artifactId>hamcrest-core</artifactId>
109 <version>1.3</version>
110 <scope>test</scope>
111 </dependency>
112 <dependency>
113 <groupId>org.hamcrest</groupId>
114 <artifactId>hamcrest-library</artifactId>
115 <version>1.3</version>
116 <scope>test</scope>
117 </dependency>
118
119 <dependency>
120 <groupId>org.slf4j</groupId>
121 <artifactId>slf4j-api</artifactId>
122 <version>1.7.6</version>
123 <scope>provided</scope>
124 </dependency>
125
126 <dependency>
127 <groupId>org.slf4j</groupId>
128 <artifactId>slf4j-core</artifactId>
129 <version>1.7.6</version>
130 <scope>test</scope>
131 </dependency>
132
133 <dependency>
134 <groupId>org.slf4j</groupId>
135 <artifactId>slf4j-jdk14</artifactId>
136 <version>1.7.6</version>
137 <scope>test</scope>
138 </dependency>
139
140 <dependency>
141 <groupId>com.google.guava</groupId>
142 <artifactId>guava</artifactId>
143 <version>18.0</version>
144 </dependency>
145
146 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700147 <groupId>com.google.guava</groupId>
148 <artifactId>guava-testlib</artifactId>
149 <version>18.0</version>
150 <scope>test</scope>
151 </dependency>
152
153 <dependency>
154 <groupId>com.googlecode.concurrent-trees</groupId>
155 <artifactId>concurrent-trees</artifactId>
156 <version>2.4.0</version>
157 </dependency>
158
159 <dependency>
160 <groupId>commons-lang</groupId>
161 <artifactId>commons-lang</artifactId>
162 <version>2.6</version>
163 </dependency>
164
165 <dependency>
166 <groupId>org.apache.commons</groupId>
167 <artifactId>commons-lang3</artifactId>
168 <version>3.3.2</version>
169 </dependency>
170
171 <dependency>
172 <groupId>commons-configuration</groupId>
173 <artifactId>commons-configuration</artifactId>
174 <version>1.10</version>
175 </dependency>
176
177 <dependency>
178 <groupId>commons-collections</groupId>
179 <artifactId>commons-collections</artifactId>
180 <version>3.2.1</version>
181 </dependency>
182
183 <dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800184 <groupId>commons-pool</groupId>
185 <artifactId>commons-pool</artifactId>
186 <version>1.6</version>
187 </dependency>
188
189 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700190 <groupId>org.codehaus.jackson</groupId>
191 <artifactId>jackson-core-asl</artifactId>
192 <version>1.9.13</version>
193 </dependency>
194 <dependency>
195 <groupId>org.codehaus.jackson</groupId>
196 <artifactId>jackson-mapper-asl</artifactId>
197 <version>1.9.13</version>
198 </dependency>
199
200 <dependency>
201 <groupId>org.easymock</groupId>
202 <artifactId>easymock</artifactId>
203 <version>3.2</version>
204 <scope>test</scope>
205 </dependency>
206
207 <!-- Web related -->
208 <dependency>
209 <groupId>com.sun.jersey</groupId>
210 <artifactId>jersey-servlet</artifactId>
211 <version>${jersey.version}</version>
212 <scope>provided</scope>
213 </dependency>
214 <dependency>
215 <groupId>com.sun.jersey.contribs</groupId>
216 <artifactId>jersey-multipart</artifactId>
217 <version>${jersey.version}</version>
218 <scope>provided</scope>
219 </dependency>
220 <dependency>
221 <groupId>com.sun.jersey.jersey-test-framework</groupId>
222 <artifactId>jersey-test-framework-core</artifactId>
223 <version>${jersey.version}</version>
224 <scope>test</scope>
225 </dependency>
226 <dependency>
227 <groupId>com.sun.jersey.jersey-test-framework</groupId>
228 <artifactId>jersey-test-framework-grizzly2</artifactId>
229 <version>${jersey.version}</version>
230 <scope>test</scope>
231 </dependency>
232 <dependency>
233 <groupId>com.fasterxml.jackson.core</groupId>
234 <artifactId>jackson-databind</artifactId>
235 <version>2.4.2</version>
236 <scope>provided</scope>
237 </dependency>
238 <dependency>
239 <groupId>com.fasterxml.jackson.core</groupId>
240 <artifactId>jackson-annotations</artifactId>
241 <version>2.4.2</version>
242 <scope>provided</scope>
243 </dependency>
244
245 <!-- OSGi related -->
246 <dependency>
247 <groupId>org.osgi</groupId>
248 <artifactId>org.osgi.core</artifactId>
249 <version>4.3.1</version>
250 <scope>provided</scope>
251 </dependency>
252 <dependency>
253 <groupId>org.osgi</groupId>
254 <artifactId>org.osgi.compendium</artifactId>
255 <version>4.3.1</version>
256 <scope>provided</scope>
257 </dependency>
258 <dependency>
259 <groupId>org.apache.felix</groupId>
260 <artifactId>org.apache.felix.scr.annotations</artifactId>
261 <version>1.9.8</version>
262 <scope>provided</scope>
263 </dependency>
264
265 <dependency>
266 <groupId>org.apache.karaf.features</groupId>
267 <artifactId>org.apache.karaf.features.core</artifactId>
268 <version>${karaf.version}</version>
269 <scope>provided</scope>
270 </dependency>
271 <dependency>
272 <groupId>org.apache.karaf.system</groupId>
273 <artifactId>org.apache.karaf.system.core</artifactId>
274 <version>${karaf.version}</version>
275 <scope>provided</scope>
276 </dependency>
277 <dependency>
278 <groupId>org.apache.karaf.shell</groupId>
279 <artifactId>org.apache.karaf.shell.console</artifactId>
280 <version>${karaf.version}</version>
281 <scope>provided</scope>
282 </dependency>
283
284 <dependency>
285 <groupId>org.livetribe.slp</groupId>
286 <artifactId>livetribe-slp</artifactId>
287 <version>2.2.1</version>
288 </dependency>
289
290 <dependency>
291 <groupId>com.eclipsesource.minimal-json</groupId>
292 <artifactId>minimal-json</artifactId>
293 <version>0.9.1</version>
294 </dependency>
295 <dependency>
296 <groupId>com.esotericsoftware</groupId>
297 <artifactId>kryo</artifactId>
298 <version>3.0.0</version>
299 </dependency>
300 <dependency>
301 <groupId>com.esotericsoftware</groupId>
302 <artifactId>reflectasm</artifactId>
303 <version>1.10.0</version>
304 <type>bundle</type>
305 </dependency>
306 <dependency>
307 <groupId>org.ow2.asm</groupId>
308 <artifactId>asm</artifactId>
309 <version>4.2</version>
310 </dependency>
311 <dependency>
312 <groupId>com.esotericsoftware</groupId>
313 <artifactId>minlog</artifactId>
314 <version>1.3.0</version>
315 </dependency>
316 <dependency>
317 <groupId>org.objenesis</groupId>
318 <artifactId>objenesis</artifactId>
319 <version>2.1</version>
320 </dependency>
321
322 <!-- ONOS related -->
323 <dependency>
324 <groupId>org.onosproject</groupId>
325 <artifactId>onlab-misc</artifactId>
326 <version>${project.version}</version>
327 </dependency>
328 <dependency>
329 <groupId>org.onosproject</groupId>
330 <artifactId>onlab-nio</artifactId>
331 <version>${project.version}</version>
332 </dependency>
333 <dependency>
334 <groupId>org.onosproject</groupId>
335 <artifactId>onlab-osgi</artifactId>
336 <version>${project.version}</version>
337 </dependency>
338 <dependency>
339 <groupId>org.onosproject</groupId>
340 <artifactId>onlab-osgi</artifactId>
341 <version>${project.version}</version>
342 <classifier>tests</classifier>
343 <scope>test</scope>
344 </dependency>
345 <dependency>
346 <groupId>org.onosproject</groupId>
347 <artifactId>onlab-junit</artifactId>
348 <version>${project.version}</version>
349 <scope>test</scope>
350 </dependency>
351
352 <dependency>
353 <groupId>org.onosproject</groupId>
354 <artifactId>onos-api</artifactId>
355 <version>${project.version}</version>
356 </dependency>
357 <dependency>
358 <groupId>org.onosproject</groupId>
359 <artifactId>onos-api</artifactId>
360 <version>${project.version}</version>
361 <classifier>tests</classifier>
362 <scope>test</scope>
363 </dependency>
364
365 <dependency>
366 <groupId>org.onosproject</groupId>
367 <artifactId>onos-incubator-api</artifactId>
368 <version>${project.version}</version>
369 </dependency>
370
371 <dependency>
372 <groupId>org.onosproject</groupId>
373 <artifactId>onos-core-common</artifactId>
374 <version>${project.version}</version>
375 </dependency>
376 <dependency>
377 <groupId>org.onosproject</groupId>
378 <artifactId>onos-core-common</artifactId>
379 <version>${project.version}</version>
380 <classifier>tests</classifier>
381 <scope>test</scope>
382 </dependency>
383
384 <dependency>
385 <groupId>org.onosproject</groupId>
386 <artifactId>onos-of-api</artifactId>
387 <version>${project.version}</version>
388 </dependency>
389 <dependency>
390 <groupId>org.onosproject</groupId>
391 <artifactId>onos-ovsdb-rfc</artifactId>
392 <version>${project.version}</version>
393 </dependency>
394 <dependency>
395 <groupId>org.onosproject</groupId>
396 <artifactId>onos-ovsdb-api</artifactId>
397 <version>${project.version}</version>
398 </dependency>
399 <dependency>
400 <groupId>org.onosproject</groupId>
Phanendra Manda5e895872015-08-26 20:11:58 +0530401 <artifactId>onos-app-pcep-api</artifactId>
402 <version>${project.version}</version>
403 </dependency>
404 <dependency>
405 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700406 <artifactId>onos-pcepio</artifactId>
407 <version>${project.version}</version>
408 </dependency>
409
410 <dependency>
411 <groupId>org.onosproject</groupId>
412 <artifactId>onos-pcep-controller-api</artifactId>
413 <version>${project.version}</version>
414 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700415 <dependency>
416 <groupId>org.onosproject</groupId>
417 <artifactId>onlab-thirdparty</artifactId>
418 <version>${project.version}</version>
419 </dependency>
420
421 <dependency>
422 <groupId>org.onosproject</groupId>
423 <artifactId>onos-of-api</artifactId>
424 <version>${project.version}</version>
425 <classifier>tests</classifier>
426 <scope>test</scope>
427 </dependency>
428 <dependency>
Phanendra Manda5e895872015-08-26 20:11:58 +0530429 <groupId>org.onosproject</groupId>
430 <artifactId>onos-pcep-controller-api</artifactId>
431 <version>${project.version}</version>
432 <classifier>tests</classifier>
433 <scope>test</scope>
434 </dependency>
435 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530436 <groupId>org.onosproject</groupId>
437 <artifactId>onos-bgpio</artifactId>
438 <version>${project.version}</version>
439 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800440
Brian O'Connor354cab92015-08-27 11:55:27 -0700441 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530442 <groupId>org.onosproject</groupId>
443 <artifactId>onos-bgp-api</artifactId>
444 <version>${project.version}</version>
445 </dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530446 <dependency>
447 <groupId>org.onosproject</groupId>
448 <artifactId>onos-app-bgp-api</artifactId>
449 <version>${project.version}</version>
450 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800451
452
453 <!-- Netty related; for now we require both 3.9 and 4 -->
454 <dependency>
455 <groupId>io.netty</groupId>
456 <artifactId>netty</artifactId>
457 <version>3.9.0.Final</version>
458 </dependency>
459
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530460 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700461 <groupId>io.netty</groupId>
462 <artifactId>netty-common</artifactId>
463 <version>${netty4.version}</version>
464 </dependency>
465 <dependency>
466 <groupId>io.netty</groupId>
467 <artifactId>netty-buffer</artifactId>
468 <version>${netty4.version}</version>
469 </dependency>
470 <dependency>
471 <groupId>io.netty</groupId>
472 <artifactId>netty-transport</artifactId>
473 <version>${netty4.version}</version>
474 </dependency>
475 <dependency>
476 <groupId>io.netty</groupId>
477 <artifactId>netty-handler</artifactId>
478 <version>${netty4.version}</version>
479 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800480
Brian O'Connor354cab92015-08-27 11:55:27 -0700481 <dependency>
482 <groupId>io.netty</groupId>
483 <artifactId>netty-codec</artifactId>
484 <version>${netty4.version}</version>
485 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800486
Brian O'Connor354cab92015-08-27 11:55:27 -0700487 <dependency>
488 <groupId>io.netty</groupId>
489 <artifactId>netty-transport-native-epoll</artifactId>
490 <version>${netty4.version}</version>
491 <classifier>${os.detected.classifier}</classifier>
492 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800493
Brian O'Connor354cab92015-08-27 11:55:27 -0700494 <dependency>
495 <groupId>joda-time</groupId>
496 <artifactId>joda-time</artifactId>
497 <version>2.5</version>
498 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800499
500 <dependency>
501 <groupId>com.google.code.findbugs</groupId>
502 <artifactId>jsr305</artifactId>
503 <version>3.0.0</version>
504 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700505 </dependencies>
506 </dependencyManagement>
507
508 <dependencies>
509 <dependency>
510 <groupId>junit</groupId>
511 <artifactId>junit</artifactId>
512 </dependency>
513 <dependency>
514 <groupId>org.hamcrest</groupId>
515 <artifactId>hamcrest-core</artifactId>
516 </dependency>
517 <dependency>
518 <groupId>org.hamcrest</groupId>
519 <artifactId>hamcrest-library</artifactId>
520 </dependency>
521 <dependency>
522 <groupId>org.slf4j</groupId>
523 <artifactId>slf4j-api</artifactId>
524 </dependency>
525 <dependency>
526 <groupId>org.slf4j</groupId>
527 <artifactId>slf4j-jdk14</artifactId>
528 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800529 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
530 Class not found: javax.annotation.Nullable
531 The following dependency alleviates this problem, but perhaps
532 it can be better located in the future. -->
533 <dependency>
534 <groupId>com.google.code.findbugs</groupId>
535 <artifactId>jsr305</artifactId>
536 <version>3.0.0</version>
537 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700538 </dependencies>
539
540 <build>
541 <pluginManagement>
542 <plugins>
543 <plugin>
544 <groupId>org.apache.maven.plugins</groupId>
545 <artifactId>maven-compiler-plugin</artifactId>
546 <!-- TODO: update once following issue is fixed. -->
547 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
548 <version>2.5.1</version>
549 <configuration>
550 <source>1.8</source>
551 <target>1.8</target>
552 </configuration>
553 </plugin>
554
555 <plugin>
556 <groupId>org.apache.maven.plugins</groupId>
557 <artifactId>maven-surefire-plugin</artifactId>
Brian O'Connor89957a32015-12-08 18:37:04 -0800558 <!-- TODO newer version available -->
Brian O'Connor354cab92015-08-27 11:55:27 -0700559 <version>2.18.1</version>
560 <configuration>
Brian O'Connor89957a32015-12-08 18:37:04 -0800561 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Brian O'Connor354cab92015-08-27 11:55:27 -0700562 <printSummary>true</printSummary>
563 <excludedGroups>org.onlab.junit.IntegrationTest
564 </excludedGroups>
565 <rerunFailingTestsCount>1</rerunFailingTestsCount>
566 </configuration>
567 </plugin>
andreafaa2c4b2015-11-16 13:48:39 -0800568 <plugin>
569 <groupId>org.apache.maven.plugins</groupId>
570 <artifactId>maven-javadoc-plugin</artifactId>
571 <version>2.10.3</version>
572 <configuration>
573 <tags>
574 <tag>
Andrea Campanella10c4adc2015-12-03 15:27:54 -0800575 <name>onos.rsModel</name>
andreafaa2c4b2015-11-16 13:48:39 -0800576 <placement>m</placement>
577 <head>Json model for REST api:</head>
578 </tag>
579 </tags>
580 </configuration>
581 </plugin>
Brian O'Connor354cab92015-08-27 11:55:27 -0700582 <plugin>
583 <groupId>org.apache.maven.plugins</groupId>
584 <artifactId>maven-jar-plugin</artifactId>
Brian O'Connor89957a32015-12-08 18:37:04 -0800585 <version>2.6</version>
586 <configuration>
587 <skipIfEmpty>true</skipIfEmpty>
588 </configuration>
Brian O'Connor354cab92015-08-27 11:55:27 -0700589 <executions>
590 <execution>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800591 <id>default</id>
Brian O'Connor354cab92015-08-27 11:55:27 -0700592 <goals>
593 <goal>test-jar</goal>
594 </goals>
595 </execution>
596 </executions>
597 </plugin>
598
599 <plugin>
600 <groupId>org.apache.maven.plugins</groupId>
601 <artifactId>maven-resources-plugin</artifactId>
602 <version>2.6</version>
603 </plugin>
604
605 <plugin>
606 <groupId>org.apache.felix</groupId>
607 <artifactId>maven-bundle-plugin</artifactId>
Brian O'Connor0c548212015-12-08 15:30:49 -0800608 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700609 <extensions>true</extensions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700610 </plugin>
611
612 <plugin>
613 <groupId>org.apache.maven.plugins</groupId>
614 <artifactId>maven-shade-plugin</artifactId>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800615 <version>2.4.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700616 </plugin>
617
618 <plugin>
619 <groupId>org.apache.felix</groupId>
620 <artifactId>maven-scr-plugin</artifactId>
621 <version>1.20.0</version>
622 <executions>
623 <execution>
624 <id>generate-scr-srcdescriptor</id>
625 <goals>
626 <goal>scr</goal>
627 </goals>
628 </execution>
629 </executions>
630 <configuration>
631 <supportedProjectTypes>
632 <supportedProjectType>bundle</supportedProjectType>
633 <supportedProjectType>war</supportedProjectType>
634 </supportedProjectTypes>
635 </configuration>
636 </plugin>
637 <plugin>
638 <groupId>org.codehaus.mojo</groupId>
639 <artifactId>findbugs-maven-plugin</artifactId>
HIGUCHI Yuta8aa86112015-09-22 15:05:35 -0700640 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700641 <dependencies>
642 <dependency>
643 <groupId>org.onosproject</groupId>
644 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700645 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700646 </dependency>
647 </dependencies>
648 <configuration>
649 <effort>Max</effort>
650 <excludeFilterFile>onos/findbugs-suppressions.xml
651 </excludeFilterFile>
652 </configuration>
653 </plugin>
654
655 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
656 <plugin>
657 <groupId>org.onosproject</groupId>
658 <artifactId>onos-maven-plugin</artifactId>
Andrea Campanella260645b2015-12-06 10:24:18 -0800659 <version>${onos-maven-plugin.version}</version>
andreafaa2c4b2015-11-16 13:48:39 -0800660 <executions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700661 <execution>
662 <id>cfg</id>
663 <phase>generate-resources</phase>
664 <goals>
665 <goal>cfg</goal>
666 </goals>
667 </execution>
668 <execution>
669 <id>swagger</id>
670 <phase>generate-sources</phase>
671 <goals>
672 <goal>swagger</goal>
673 </goals>
674 </execution>
675 <execution>
676 <id>app</id>
677 <phase>package</phase>
678 <goals>
679 <goal>app</goal>
680 </goals>
681 </execution>
682 </executions>
683 </plugin>
684 </plugins>
685 </pluginManagement>
686
687 <plugins>
688 <plugin>
689 <groupId>org.apache.maven.plugins</groupId>
690 <artifactId>maven-jar-plugin</artifactId>
691 </plugin>
692
693 <plugin>
694 <groupId>org.apache.maven.plugins</groupId>
695 <artifactId>maven-checkstyle-plugin</artifactId>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800696 <version>2.16</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700697 <dependencies>
698 <dependency>
699 <groupId>org.onosproject</groupId>
700 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700701 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700702 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700703 </dependencies>
704 <configuration>
705 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
706 <sourceDirectory>${project.build.sourceDirectory}
707 </sourceDirectory>
708 <testSourceDirectory>${project.build.testSourceDirectory}
709 </testSourceDirectory>
710 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
711 <configLocation>onos/checkstyle.xml</configLocation>
712 <suppressionsLocation>onos/suppressions.xml
713 </suppressionsLocation>
714 <failsOnError>false</failsOnError>
715 <logViolationsToConsole>true</logViolationsToConsole>
716 <includeTestSourceDirectory>true
717 </includeTestSourceDirectory>
718 </configuration>
719 <executions>
720 <execution>
721 <id>validate-checkstyle</id>
722 <phase>verify</phase>
723 <goals>
724 <goal>check</goal>
725 </goals>
726 </execution>
727 </executions>
728 </plugin>
729
730 <plugin>
731 <groupId>org.apache.maven.plugins</groupId>
732 <artifactId>maven-pmd-plugin</artifactId>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800733 <version>3.5</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700734 <configuration>
735 <excludes>
736 </excludes>
737 <rulesets>
738 <ruleset>onos/pmd.xml</ruleset>
739 </rulesets>
740 </configuration>
741 <executions>
742 <execution>
743 <id>validate-pmd</id>
744 <phase>verify</phase>
745 <goals>
746 <!-- Uncomment this goal to make the build fail on pmd errors -->
747 <!--<goal>check</goal>-->
748 </goals>
749 </execution>
750 </executions>
751 </plugin>
752
753 <plugin>
754 <groupId>org.jacoco</groupId>
755 <artifactId>jacoco-maven-plugin</artifactId>
HIGUCHI Yuta4303ac22015-11-23 11:29:21 -0800756 <version>0.7.5.201505241946</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700757 <executions>
758 <execution>
759 <id>default-prepare-agent</id>
760 <goals>
761 <goal>prepare-agent</goal>
762 </goals>
763 </execution>
764 <execution>
765 <id>default-report</id>
766 <phase>prepare-package</phase>
767 <goals>
768 <goal>report</goal>
769 </goals>
770 </execution>
771 </executions>
772 </plugin>
773 </plugins>
774 </build>
775
776 <reporting>
777 <plugins>
778 <plugin>
779 <groupId>org.apache.maven.plugins</groupId>
780 <artifactId>maven-checkstyle-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700781 <configuration>
782 <configLocation>onos/checkstyle.xml</configLocation>
783 </configuration>
784 </plugin>
785
786 <plugin>
787 <groupId>org.apache.maven.plugins</groupId>
788 <artifactId>maven-pmd-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700789 <configuration>
790 <excludes>
791 </excludes>
792 <rulesets>
793 <ruleset>onos/pmd.xml</ruleset>
794 </rulesets>
795 </configuration>
796 </plugin>
797 </plugins>
798 </reporting>
799</project>