blob: 2797f35e0e4a057161baf260a810228e4a1a963a [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'Connorf967ad62015-09-18 15:19:54 -070036 <version>1.4.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>
andreafaa2c4b2015-11-16 13:48:39 -080042 <module>tools/package/maven-plugin</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070043 <module>utils</module>
44 <module>core</module>
45 <module>web</module>
46 <module>cli</module>
47
Thomas Vachuskadc240022015-11-19 14:45:03 -080048 <module>protocols</module>
Brian O'Connor19703fb2015-11-19 16:09:45 -080049 <!-- FIXME move to protocols/ -->
Brian O'Connor354cab92015-08-27 11:55:27 -070050 <module>ovsdb</module>
Jonathan Hart317f4762015-11-09 16:05:36 -080051 <module>bgp</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070052
53 <module>providers</module>
54 <module>drivers</module>
55
56 <module>apps</module>
57 <module>incubator</module>
58 <module>features</module>
59
60 <module>tools/package/archetypes</module>
61 <module>tools/package/branding</module>
Ray Milkeyccda0b52015-10-30 16:51:06 -070062 <module>tools/build/conf</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070063 </modules>
64
65 <url>http://onosproject.org/</url>
66
67 <scm>
68 <connection>scm:git:https://gerrit.onosproject.org/onos</connection>
69 <developerConnection>scm:git:https://gerrit.onosproject.org/onos
70 </developerConnection>
71 <url>http://gerrit.onosproject.org/</url>
72 </scm>
73
74 <licenses>
75 <license>
76 <name>Apache License, Version 2.0</name>
77 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
78 </license>
79 </licenses>
80
81 <properties>
82 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Ray Milkeyccda0b52015-10-30 16:51:06 -070083 <onos-build-conf.version>1.1-SNAPSHOT</onos-build-conf.version>
Brian O'Connor354cab92015-08-27 11:55:27 -070084 <netty4.version>4.0.23.Final</netty4.version>
Brian O'Connore79b0252015-09-04 15:55:03 -070085 <copycat.version>0.5.0.onos</copycat.version>
Brian O'Connor0ecdb322015-09-03 15:37:50 -070086 <openflowj.version>0.9.0.onos</openflowj.version>
Brian O'Connor354cab92015-08-27 11:55:27 -070087 <karaf.version>3.0.3</karaf.version>
88 <jersey.version>1.19</jersey.version>
89 </properties>
90
91 <distributionManagement>
92 <snapshotRepository>
93 <id>ossrh</id>
94 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
95 </snapshotRepository>
96 </distributionManagement>
97
Brian O'Connor354cab92015-08-27 11:55:27 -070098 <dependencyManagement>
99 <dependencies>
100 <dependency>
101 <groupId>junit</groupId>
102 <artifactId>junit</artifactId>
103 <version>4.11</version>
104 <scope>test</scope>
105 </dependency>
106
107 <dependency>
108 <groupId>org.hamcrest</groupId>
109 <artifactId>hamcrest-core</artifactId>
110 <version>1.3</version>
111 <scope>test</scope>
112 </dependency>
113 <dependency>
114 <groupId>org.hamcrest</groupId>
115 <artifactId>hamcrest-library</artifactId>
116 <version>1.3</version>
117 <scope>test</scope>
118 </dependency>
119
120 <dependency>
121 <groupId>org.slf4j</groupId>
122 <artifactId>slf4j-api</artifactId>
123 <version>1.7.6</version>
124 <scope>provided</scope>
125 </dependency>
126
127 <dependency>
128 <groupId>org.slf4j</groupId>
129 <artifactId>slf4j-core</artifactId>
130 <version>1.7.6</version>
131 <scope>test</scope>
132 </dependency>
133
134 <dependency>
135 <groupId>org.slf4j</groupId>
136 <artifactId>slf4j-jdk14</artifactId>
137 <version>1.7.6</version>
138 <scope>test</scope>
139 </dependency>
140
141 <dependency>
142 <groupId>com.google.guava</groupId>
143 <artifactId>guava</artifactId>
144 <version>18.0</version>
145 </dependency>
146
147 <dependency>
148 <groupId>io.netty</groupId>
149 <artifactId>netty</artifactId>
150 <version>3.9.0.Final</version>
151 </dependency>
152
153 <dependency>
154 <groupId>com.google.guava</groupId>
155 <artifactId>guava-testlib</artifactId>
156 <version>18.0</version>
157 <scope>test</scope>
158 </dependency>
159
160 <dependency>
161 <groupId>com.googlecode.concurrent-trees</groupId>
162 <artifactId>concurrent-trees</artifactId>
163 <version>2.4.0</version>
164 </dependency>
165
166 <dependency>
167 <groupId>commons-lang</groupId>
168 <artifactId>commons-lang</artifactId>
169 <version>2.6</version>
170 </dependency>
171
172 <dependency>
173 <groupId>org.apache.commons</groupId>
174 <artifactId>commons-lang3</artifactId>
175 <version>3.3.2</version>
176 </dependency>
177
178 <dependency>
179 <groupId>commons-configuration</groupId>
180 <artifactId>commons-configuration</artifactId>
181 <version>1.10</version>
182 </dependency>
183
184 <dependency>
185 <groupId>commons-collections</groupId>
186 <artifactId>commons-collections</artifactId>
187 <version>3.2.1</version>
188 </dependency>
189
190 <dependency>
191 <groupId>org.codehaus.jackson</groupId>
192 <artifactId>jackson-core-asl</artifactId>
193 <version>1.9.13</version>
194 </dependency>
195 <dependency>
196 <groupId>org.codehaus.jackson</groupId>
197 <artifactId>jackson-mapper-asl</artifactId>
198 <version>1.9.13</version>
199 </dependency>
200
201 <dependency>
202 <groupId>org.easymock</groupId>
203 <artifactId>easymock</artifactId>
204 <version>3.2</version>
205 <scope>test</scope>
206 </dependency>
207
208 <!-- Web related -->
209 <dependency>
210 <groupId>com.sun.jersey</groupId>
211 <artifactId>jersey-servlet</artifactId>
212 <version>${jersey.version}</version>
213 <scope>provided</scope>
214 </dependency>
215 <dependency>
216 <groupId>com.sun.jersey.contribs</groupId>
217 <artifactId>jersey-multipart</artifactId>
218 <version>${jersey.version}</version>
219 <scope>provided</scope>
220 </dependency>
221 <dependency>
222 <groupId>com.sun.jersey.jersey-test-framework</groupId>
223 <artifactId>jersey-test-framework-core</artifactId>
224 <version>${jersey.version}</version>
225 <scope>test</scope>
226 </dependency>
227 <dependency>
228 <groupId>com.sun.jersey.jersey-test-framework</groupId>
229 <artifactId>jersey-test-framework-grizzly2</artifactId>
230 <version>${jersey.version}</version>
231 <scope>test</scope>
232 </dependency>
233 <dependency>
234 <groupId>com.fasterxml.jackson.core</groupId>
235 <artifactId>jackson-databind</artifactId>
236 <version>2.4.2</version>
237 <scope>provided</scope>
238 </dependency>
239 <dependency>
240 <groupId>com.fasterxml.jackson.core</groupId>
241 <artifactId>jackson-annotations</artifactId>
242 <version>2.4.2</version>
243 <scope>provided</scope>
244 </dependency>
245
246 <!-- OSGi related -->
247 <dependency>
248 <groupId>org.osgi</groupId>
249 <artifactId>org.osgi.core</artifactId>
250 <version>4.3.1</version>
251 <scope>provided</scope>
252 </dependency>
253 <dependency>
254 <groupId>org.osgi</groupId>
255 <artifactId>org.osgi.compendium</artifactId>
256 <version>4.3.1</version>
257 <scope>provided</scope>
258 </dependency>
259 <dependency>
260 <groupId>org.apache.felix</groupId>
261 <artifactId>org.apache.felix.scr.annotations</artifactId>
262 <version>1.9.8</version>
263 <scope>provided</scope>
264 </dependency>
265
266 <dependency>
267 <groupId>org.apache.karaf.features</groupId>
268 <artifactId>org.apache.karaf.features.core</artifactId>
269 <version>${karaf.version}</version>
270 <scope>provided</scope>
271 </dependency>
272 <dependency>
273 <groupId>org.apache.karaf.system</groupId>
274 <artifactId>org.apache.karaf.system.core</artifactId>
275 <version>${karaf.version}</version>
276 <scope>provided</scope>
277 </dependency>
278 <dependency>
279 <groupId>org.apache.karaf.shell</groupId>
280 <artifactId>org.apache.karaf.shell.console</artifactId>
281 <version>${karaf.version}</version>
282 <scope>provided</scope>
283 </dependency>
284
285 <dependency>
286 <groupId>org.livetribe.slp</groupId>
287 <artifactId>livetribe-slp</artifactId>
288 <version>2.2.1</version>
289 </dependency>
290
291 <dependency>
292 <groupId>com.eclipsesource.minimal-json</groupId>
293 <artifactId>minimal-json</artifactId>
294 <version>0.9.1</version>
295 </dependency>
296 <dependency>
297 <groupId>com.esotericsoftware</groupId>
298 <artifactId>kryo</artifactId>
299 <version>3.0.0</version>
300 </dependency>
301 <dependency>
302 <groupId>com.esotericsoftware</groupId>
303 <artifactId>reflectasm</artifactId>
304 <version>1.10.0</version>
305 <type>bundle</type>
306 </dependency>
307 <dependency>
308 <groupId>org.ow2.asm</groupId>
309 <artifactId>asm</artifactId>
310 <version>4.2</version>
311 </dependency>
312 <dependency>
313 <groupId>com.esotericsoftware</groupId>
314 <artifactId>minlog</artifactId>
315 <version>1.3.0</version>
316 </dependency>
317 <dependency>
318 <groupId>org.objenesis</groupId>
319 <artifactId>objenesis</artifactId>
320 <version>2.1</version>
321 </dependency>
322
323 <!-- ONOS related -->
324 <dependency>
325 <groupId>org.onosproject</groupId>
326 <artifactId>onlab-misc</artifactId>
327 <version>${project.version}</version>
328 </dependency>
329 <dependency>
330 <groupId>org.onosproject</groupId>
331 <artifactId>onlab-nio</artifactId>
332 <version>${project.version}</version>
333 </dependency>
334 <dependency>
335 <groupId>org.onosproject</groupId>
336 <artifactId>onlab-osgi</artifactId>
337 <version>${project.version}</version>
338 </dependency>
339 <dependency>
340 <groupId>org.onosproject</groupId>
341 <artifactId>onlab-osgi</artifactId>
342 <version>${project.version}</version>
343 <classifier>tests</classifier>
344 <scope>test</scope>
345 </dependency>
346 <dependency>
347 <groupId>org.onosproject</groupId>
348 <artifactId>onlab-junit</artifactId>
349 <version>${project.version}</version>
350 <scope>test</scope>
351 </dependency>
352
353 <dependency>
354 <groupId>org.onosproject</groupId>
355 <artifactId>onos-api</artifactId>
356 <version>${project.version}</version>
357 </dependency>
358 <dependency>
359 <groupId>org.onosproject</groupId>
360 <artifactId>onos-api</artifactId>
361 <version>${project.version}</version>
362 <classifier>tests</classifier>
363 <scope>test</scope>
364 </dependency>
365
366 <dependency>
367 <groupId>org.onosproject</groupId>
368 <artifactId>onos-incubator-api</artifactId>
369 <version>${project.version}</version>
370 </dependency>
371
372 <dependency>
373 <groupId>org.onosproject</groupId>
374 <artifactId>onos-core-common</artifactId>
375 <version>${project.version}</version>
376 </dependency>
377 <dependency>
378 <groupId>org.onosproject</groupId>
379 <artifactId>onos-core-common</artifactId>
380 <version>${project.version}</version>
381 <classifier>tests</classifier>
382 <scope>test</scope>
383 </dependency>
384
385 <dependency>
386 <groupId>org.onosproject</groupId>
387 <artifactId>onos-of-api</artifactId>
388 <version>${project.version}</version>
389 </dependency>
390 <dependency>
391 <groupId>org.onosproject</groupId>
392 <artifactId>onos-ovsdb-rfc</artifactId>
393 <version>${project.version}</version>
394 </dependency>
395 <dependency>
396 <groupId>org.onosproject</groupId>
397 <artifactId>onos-ovsdb-api</artifactId>
398 <version>${project.version}</version>
399 </dependency>
400 <dependency>
401 <groupId>org.onosproject</groupId>
Phanendra Manda5e895872015-08-26 20:11:58 +0530402 <artifactId>onos-app-pcep-api</artifactId>
403 <version>${project.version}</version>
404 </dependency>
405 <dependency>
406 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700407 <artifactId>onos-pcepio</artifactId>
408 <version>${project.version}</version>
409 </dependency>
410
411 <dependency>
412 <groupId>org.onosproject</groupId>
413 <artifactId>onos-pcep-controller-api</artifactId>
414 <version>${project.version}</version>
415 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700416 <dependency>
417 <groupId>org.onosproject</groupId>
418 <artifactId>onlab-thirdparty</artifactId>
419 <version>${project.version}</version>
420 </dependency>
421
422 <dependency>
423 <groupId>org.onosproject</groupId>
424 <artifactId>onos-of-api</artifactId>
425 <version>${project.version}</version>
426 <classifier>tests</classifier>
427 <scope>test</scope>
428 </dependency>
429 <dependency>
Phanendra Manda5e895872015-08-26 20:11:58 +0530430 <groupId>org.onosproject</groupId>
431 <artifactId>onos-pcep-controller-api</artifactId>
432 <version>${project.version}</version>
433 <classifier>tests</classifier>
434 <scope>test</scope>
435 </dependency>
436 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530437 <groupId>org.onosproject</groupId>
438 <artifactId>onos-bgpio</artifactId>
439 <version>${project.version}</version>
440 </dependency>
441 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700442 <groupId>commons-pool</groupId>
443 <artifactId>commons-pool</artifactId>
444 <version>1.6</version>
445 </dependency>
446 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530447 <groupId>org.onosproject</groupId>
448 <artifactId>onos-bgp-api</artifactId>
449 <version>${project.version}</version>
450 </dependency>
451
452 <dependency>
453 <groupId>org.onosproject</groupId>
454 <artifactId>onos-app-bgp-api</artifactId>
455 <version>${project.version}</version>
456 </dependency>
457 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700458 <groupId>io.netty</groupId>
459 <artifactId>netty-common</artifactId>
460 <version>${netty4.version}</version>
461 </dependency>
462 <dependency>
463 <groupId>io.netty</groupId>
464 <artifactId>netty-buffer</artifactId>
465 <version>${netty4.version}</version>
466 </dependency>
467 <dependency>
468 <groupId>io.netty</groupId>
469 <artifactId>netty-transport</artifactId>
470 <version>${netty4.version}</version>
471 </dependency>
472 <dependency>
473 <groupId>io.netty</groupId>
474 <artifactId>netty-handler</artifactId>
475 <version>${netty4.version}</version>
476 </dependency>
477 <dependency>
478 <groupId>io.netty</groupId>
479 <artifactId>netty-codec</artifactId>
480 <version>${netty4.version}</version>
481 </dependency>
482 <dependency>
483 <groupId>io.netty</groupId>
484 <artifactId>netty-transport-native-epoll</artifactId>
485 <version>${netty4.version}</version>
486 <classifier>${os.detected.classifier}</classifier>
487 </dependency>
488 <dependency>
489 <groupId>joda-time</groupId>
490 <artifactId>joda-time</artifactId>
491 <version>2.5</version>
492 </dependency>
493 </dependencies>
494 </dependencyManagement>
495
496 <dependencies>
497 <dependency>
498 <groupId>junit</groupId>
499 <artifactId>junit</artifactId>
500 </dependency>
501 <dependency>
502 <groupId>org.hamcrest</groupId>
503 <artifactId>hamcrest-core</artifactId>
504 </dependency>
505 <dependency>
506 <groupId>org.hamcrest</groupId>
507 <artifactId>hamcrest-library</artifactId>
508 </dependency>
509 <dependency>
510 <groupId>org.slf4j</groupId>
511 <artifactId>slf4j-api</artifactId>
512 </dependency>
513 <dependency>
514 <groupId>org.slf4j</groupId>
515 <artifactId>slf4j-jdk14</artifactId>
516 </dependency>
517 </dependencies>
518
519 <build>
520 <pluginManagement>
521 <plugins>
522 <plugin>
523 <groupId>org.apache.maven.plugins</groupId>
524 <artifactId>maven-compiler-plugin</artifactId>
525 <!-- TODO: update once following issue is fixed. -->
526 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
527 <version>2.5.1</version>
528 <configuration>
529 <source>1.8</source>
530 <target>1.8</target>
531 </configuration>
532 </plugin>
533
534 <plugin>
535 <groupId>org.apache.maven.plugins</groupId>
536 <artifactId>maven-surefire-plugin</artifactId>
537 <version>2.18.1</version>
538 <configuration>
Antonio Marsico6097f812015-11-10 11:57:11 +0100539 <argLine>-Duser.language=en -Duser.region=US</argLine>
Brian O'Connor354cab92015-08-27 11:55:27 -0700540 <redirectTestOutputToFile>true
541 </redirectTestOutputToFile>
542 <printSummary>true</printSummary>
543 <excludedGroups>org.onlab.junit.IntegrationTest
544 </excludedGroups>
545 <rerunFailingTestsCount>1</rerunFailingTestsCount>
546 </configuration>
547 </plugin>
andreafaa2c4b2015-11-16 13:48:39 -0800548 <plugin>
549 <groupId>org.apache.maven.plugins</groupId>
550 <artifactId>maven-javadoc-plugin</artifactId>
551 <version>2.10.3</version>
552 <configuration>
553 <tags>
554 <tag>
555 <name>rsModel</name>
556 <placement>m</placement>
557 <head>Json model for REST api:</head>
558 </tag>
559 </tags>
560 </configuration>
561 </plugin>
Brian O'Connor354cab92015-08-27 11:55:27 -0700562 <plugin>
563 <groupId>org.apache.maven.plugins</groupId>
564 <artifactId>maven-jar-plugin</artifactId>
565 <version>2.3.1</version>
566 <executions>
567 <execution>
568 <phase>package</phase>
569 <goals>
570 <goal>test-jar</goal>
571 </goals>
572 </execution>
573 </executions>
574 </plugin>
575
576 <plugin>
577 <groupId>org.apache.maven.plugins</groupId>
578 <artifactId>maven-resources-plugin</artifactId>
579 <version>2.6</version>
580 </plugin>
581
582 <plugin>
583 <groupId>org.apache.felix</groupId>
584 <artifactId>maven-bundle-plugin</artifactId>
585 <version>2.5.3</version>
586 <extensions>true</extensions>
587 <!--
588 Drop following dependency when the below bug fix is published
589 https://issues.apache.org/jira/browse/FELIX-4556
590 -->
591 <dependencies>
592 <dependency>
593 <groupId>biz.aQute.bnd</groupId>
594 <artifactId>bndlib</artifactId>
595 <version>2.4.0</version>
596 </dependency>
597 </dependencies>
598 </plugin>
599
600 <plugin>
601 <groupId>org.apache.maven.plugins</groupId>
602 <artifactId>maven-shade-plugin</artifactId>
603 <version>2.3</version>
604 </plugin>
605
606 <plugin>
607 <groupId>org.apache.felix</groupId>
608 <artifactId>maven-scr-plugin</artifactId>
609 <version>1.20.0</version>
610 <executions>
611 <execution>
612 <id>generate-scr-srcdescriptor</id>
613 <goals>
614 <goal>scr</goal>
615 </goals>
616 </execution>
617 </executions>
618 <configuration>
619 <supportedProjectTypes>
620 <supportedProjectType>bundle</supportedProjectType>
621 <supportedProjectType>war</supportedProjectType>
622 </supportedProjectTypes>
623 </configuration>
624 </plugin>
625 <plugin>
626 <groupId>org.codehaus.mojo</groupId>
627 <artifactId>findbugs-maven-plugin</artifactId>
HIGUCHI Yuta8aa86112015-09-22 15:05:35 -0700628 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700629 <dependencies>
630 <dependency>
631 <groupId>org.onosproject</groupId>
632 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700633 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700634 </dependency>
635 </dependencies>
636 <configuration>
637 <effort>Max</effort>
638 <excludeFilterFile>onos/findbugs-suppressions.xml
639 </excludeFilterFile>
640 </configuration>
641 </plugin>
642
643 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
644 <plugin>
645 <groupId>org.onosproject</groupId>
646 <artifactId>onos-maven-plugin</artifactId>
andreafaa2c4b2015-11-16 13:48:39 -0800647 <version>1.6-SNAPSHOT</version>
648 <executions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700649 <execution>
650 <id>cfg</id>
651 <phase>generate-resources</phase>
652 <goals>
653 <goal>cfg</goal>
654 </goals>
655 </execution>
656 <execution>
657 <id>swagger</id>
658 <phase>generate-sources</phase>
659 <goals>
660 <goal>swagger</goal>
661 </goals>
662 </execution>
663 <execution>
664 <id>app</id>
665 <phase>package</phase>
666 <goals>
667 <goal>app</goal>
668 </goals>
669 </execution>
670 </executions>
671 </plugin>
672 </plugins>
673 </pluginManagement>
674
675 <plugins>
676 <plugin>
677 <groupId>org.apache.maven.plugins</groupId>
678 <artifactId>maven-jar-plugin</artifactId>
679 </plugin>
680
681 <plugin>
682 <groupId>org.apache.maven.plugins</groupId>
683 <artifactId>maven-checkstyle-plugin</artifactId>
684 <version>2.13</version>
685 <dependencies>
686 <dependency>
687 <groupId>org.onosproject</groupId>
688 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700689 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700690 </dependency>
691 <!-- For Java 8 lambda support-->
692 <dependency>
693 <groupId>com.puppycrawl.tools</groupId>
694 <artifactId>checkstyle</artifactId>
695 <version>5.9</version>
696 </dependency>
697 </dependencies>
698 <configuration>
699 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
700 <sourceDirectory>${project.build.sourceDirectory}
701 </sourceDirectory>
702 <testSourceDirectory>${project.build.testSourceDirectory}
703 </testSourceDirectory>
704 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
705 <configLocation>onos/checkstyle.xml</configLocation>
706 <suppressionsLocation>onos/suppressions.xml
707 </suppressionsLocation>
708 <failsOnError>false</failsOnError>
709 <logViolationsToConsole>true</logViolationsToConsole>
710 <includeTestSourceDirectory>true
711 </includeTestSourceDirectory>
712 </configuration>
713 <executions>
714 <execution>
715 <id>validate-checkstyle</id>
716 <phase>verify</phase>
717 <goals>
718 <goal>check</goal>
719 </goals>
720 </execution>
721 </executions>
722 </plugin>
723
724 <plugin>
725 <groupId>org.apache.maven.plugins</groupId>
726 <artifactId>maven-pmd-plugin</artifactId>
727 <version>3.2</version>
728 <configuration>
729 <excludes>
730 </excludes>
731 <rulesets>
732 <ruleset>onos/pmd.xml</ruleset>
733 </rulesets>
734 </configuration>
735 <executions>
736 <execution>
737 <id>validate-pmd</id>
738 <phase>verify</phase>
739 <goals>
740 <!-- Uncomment this goal to make the build fail on pmd errors -->
741 <!--<goal>check</goal>-->
742 </goals>
743 </execution>
744 </executions>
745 </plugin>
746
747 <plugin>
748 <groupId>org.jacoco</groupId>
749 <artifactId>jacoco-maven-plugin</artifactId>
HIGUCHI Yuta4303ac22015-11-23 11:29:21 -0800750 <version>0.7.5.201505241946</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700751 <executions>
752 <execution>
753 <id>default-prepare-agent</id>
754 <goals>
755 <goal>prepare-agent</goal>
756 </goals>
757 </execution>
758 <execution>
759 <id>default-report</id>
760 <phase>prepare-package</phase>
761 <goals>
762 <goal>report</goal>
763 </goals>
764 </execution>
765 </executions>
766 </plugin>
767 </plugins>
768 </build>
769
770 <reporting>
771 <plugins>
772 <plugin>
773 <groupId>org.apache.maven.plugins</groupId>
774 <artifactId>maven-checkstyle-plugin</artifactId>
775 <version>2.12.1</version>
776 <configuration>
777 <configLocation>onos/checkstyle.xml</configLocation>
778 </configuration>
779 </plugin>
780
781 <plugin>
782 <groupId>org.apache.maven.plugins</groupId>
783 <artifactId>maven-pmd-plugin</artifactId>
784 <version>3.2</version>
785 <configuration>
786 <excludes>
787 </excludes>
788 <rulesets>
789 <ruleset>onos/pmd.xml</ruleset>
790 </rulesets>
791 </configuration>
792 </plugin>
793 </plugins>
794 </reporting>
795</project>