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