blob: 8b1f01c2de107d5efcca5bfd1927f274f8d31118 [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>
Brian O'Connor354cab92015-08-27 11:55:27 -0700148 <groupId>com.google.guava</groupId>
149 <artifactId>guava-testlib</artifactId>
150 <version>18.0</version>
151 <scope>test</scope>
152 </dependency>
153
154 <dependency>
155 <groupId>com.googlecode.concurrent-trees</groupId>
156 <artifactId>concurrent-trees</artifactId>
157 <version>2.4.0</version>
158 </dependency>
159
160 <dependency>
161 <groupId>commons-lang</groupId>
162 <artifactId>commons-lang</artifactId>
163 <version>2.6</version>
164 </dependency>
165
166 <dependency>
167 <groupId>org.apache.commons</groupId>
168 <artifactId>commons-lang3</artifactId>
169 <version>3.3.2</version>
170 </dependency>
171
172 <dependency>
173 <groupId>commons-configuration</groupId>
174 <artifactId>commons-configuration</artifactId>
175 <version>1.10</version>
176 </dependency>
177
178 <dependency>
179 <groupId>commons-collections</groupId>
180 <artifactId>commons-collections</artifactId>
181 <version>3.2.1</version>
182 </dependency>
183
184 <dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800185 <groupId>commons-pool</groupId>
186 <artifactId>commons-pool</artifactId>
187 <version>1.6</version>
188 </dependency>
189
190 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700191 <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>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800441
Brian O'Connor354cab92015-08-27 11:55:27 -0700442 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530443 <groupId>org.onosproject</groupId>
444 <artifactId>onos-bgp-api</artifactId>
445 <version>${project.version}</version>
446 </dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530447 <dependency>
448 <groupId>org.onosproject</groupId>
449 <artifactId>onos-app-bgp-api</artifactId>
450 <version>${project.version}</version>
451 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800452
453
454 <!-- Netty related; for now we require both 3.9 and 4 -->
455 <dependency>
456 <groupId>io.netty</groupId>
457 <artifactId>netty</artifactId>
458 <version>3.9.0.Final</version>
459 </dependency>
460
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530461 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700462 <groupId>io.netty</groupId>
463 <artifactId>netty-common</artifactId>
464 <version>${netty4.version}</version>
465 </dependency>
466 <dependency>
467 <groupId>io.netty</groupId>
468 <artifactId>netty-buffer</artifactId>
469 <version>${netty4.version}</version>
470 </dependency>
471 <dependency>
472 <groupId>io.netty</groupId>
473 <artifactId>netty-transport</artifactId>
474 <version>${netty4.version}</version>
475 </dependency>
476 <dependency>
477 <groupId>io.netty</groupId>
478 <artifactId>netty-handler</artifactId>
479 <version>${netty4.version}</version>
480 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800481
Brian O'Connor354cab92015-08-27 11:55:27 -0700482 <dependency>
483 <groupId>io.netty</groupId>
484 <artifactId>netty-codec</artifactId>
485 <version>${netty4.version}</version>
486 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800487
Brian O'Connor354cab92015-08-27 11:55:27 -0700488 <dependency>
489 <groupId>io.netty</groupId>
490 <artifactId>netty-transport-native-epoll</artifactId>
491 <version>${netty4.version}</version>
492 <classifier>${os.detected.classifier}</classifier>
493 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800494
Brian O'Connor354cab92015-08-27 11:55:27 -0700495 <dependency>
496 <groupId>joda-time</groupId>
497 <artifactId>joda-time</artifactId>
498 <version>2.5</version>
499 </dependency>
500 </dependencies>
501 </dependencyManagement>
502
503 <dependencies>
504 <dependency>
505 <groupId>junit</groupId>
506 <artifactId>junit</artifactId>
507 </dependency>
508 <dependency>
509 <groupId>org.hamcrest</groupId>
510 <artifactId>hamcrest-core</artifactId>
511 </dependency>
512 <dependency>
513 <groupId>org.hamcrest</groupId>
514 <artifactId>hamcrest-library</artifactId>
515 </dependency>
516 <dependency>
517 <groupId>org.slf4j</groupId>
518 <artifactId>slf4j-api</artifactId>
519 </dependency>
520 <dependency>
521 <groupId>org.slf4j</groupId>
522 <artifactId>slf4j-jdk14</artifactId>
523 </dependency>
524 </dependencies>
525
526 <build>
527 <pluginManagement>
528 <plugins>
529 <plugin>
530 <groupId>org.apache.maven.plugins</groupId>
531 <artifactId>maven-compiler-plugin</artifactId>
532 <!-- TODO: update once following issue is fixed. -->
533 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
534 <version>2.5.1</version>
535 <configuration>
536 <source>1.8</source>
537 <target>1.8</target>
538 </configuration>
539 </plugin>
540
541 <plugin>
542 <groupId>org.apache.maven.plugins</groupId>
543 <artifactId>maven-surefire-plugin</artifactId>
544 <version>2.18.1</version>
545 <configuration>
Antonio Marsico6097f812015-11-10 11:57:11 +0100546 <argLine>-Duser.language=en -Duser.region=US</argLine>
Brian O'Connor354cab92015-08-27 11:55:27 -0700547 <redirectTestOutputToFile>true
548 </redirectTestOutputToFile>
549 <printSummary>true</printSummary>
550 <excludedGroups>org.onlab.junit.IntegrationTest
551 </excludedGroups>
552 <rerunFailingTestsCount>1</rerunFailingTestsCount>
553 </configuration>
554 </plugin>
andreafaa2c4b2015-11-16 13:48:39 -0800555 <plugin>
556 <groupId>org.apache.maven.plugins</groupId>
557 <artifactId>maven-javadoc-plugin</artifactId>
558 <version>2.10.3</version>
559 <configuration>
560 <tags>
561 <tag>
562 <name>rsModel</name>
563 <placement>m</placement>
564 <head>Json model for REST api:</head>
565 </tag>
566 </tags>
567 </configuration>
568 </plugin>
Brian O'Connor354cab92015-08-27 11:55:27 -0700569 <plugin>
570 <groupId>org.apache.maven.plugins</groupId>
571 <artifactId>maven-jar-plugin</artifactId>
572 <version>2.3.1</version>
573 <executions>
574 <execution>
575 <phase>package</phase>
576 <goals>
577 <goal>test-jar</goal>
578 </goals>
579 </execution>
580 </executions>
581 </plugin>
582
583 <plugin>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-resources-plugin</artifactId>
586 <version>2.6</version>
587 </plugin>
588
589 <plugin>
590 <groupId>org.apache.felix</groupId>
591 <artifactId>maven-bundle-plugin</artifactId>
592 <version>2.5.3</version>
593 <extensions>true</extensions>
594 <!--
595 Drop following dependency when the below bug fix is published
596 https://issues.apache.org/jira/browse/FELIX-4556
597 -->
598 <dependencies>
599 <dependency>
600 <groupId>biz.aQute.bnd</groupId>
601 <artifactId>bndlib</artifactId>
602 <version>2.4.0</version>
603 </dependency>
604 </dependencies>
605 </plugin>
606
607 <plugin>
608 <groupId>org.apache.maven.plugins</groupId>
609 <artifactId>maven-shade-plugin</artifactId>
610 <version>2.3</version>
611 </plugin>
612
613 <plugin>
614 <groupId>org.apache.felix</groupId>
615 <artifactId>maven-scr-plugin</artifactId>
616 <version>1.20.0</version>
617 <executions>
618 <execution>
619 <id>generate-scr-srcdescriptor</id>
620 <goals>
621 <goal>scr</goal>
622 </goals>
623 </execution>
624 </executions>
625 <configuration>
626 <supportedProjectTypes>
627 <supportedProjectType>bundle</supportedProjectType>
628 <supportedProjectType>war</supportedProjectType>
629 </supportedProjectTypes>
630 </configuration>
631 </plugin>
632 <plugin>
633 <groupId>org.codehaus.mojo</groupId>
634 <artifactId>findbugs-maven-plugin</artifactId>
HIGUCHI Yuta8aa86112015-09-22 15:05:35 -0700635 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700636 <dependencies>
637 <dependency>
638 <groupId>org.onosproject</groupId>
639 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700640 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700641 </dependency>
642 </dependencies>
643 <configuration>
644 <effort>Max</effort>
645 <excludeFilterFile>onos/findbugs-suppressions.xml
646 </excludeFilterFile>
647 </configuration>
648 </plugin>
649
650 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
651 <plugin>
652 <groupId>org.onosproject</groupId>
653 <artifactId>onos-maven-plugin</artifactId>
andreafaa2c4b2015-11-16 13:48:39 -0800654 <version>1.6-SNAPSHOT</version>
655 <executions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700656 <execution>
657 <id>cfg</id>
658 <phase>generate-resources</phase>
659 <goals>
660 <goal>cfg</goal>
661 </goals>
662 </execution>
663 <execution>
664 <id>swagger</id>
665 <phase>generate-sources</phase>
666 <goals>
667 <goal>swagger</goal>
668 </goals>
669 </execution>
670 <execution>
671 <id>app</id>
672 <phase>package</phase>
673 <goals>
674 <goal>app</goal>
675 </goals>
676 </execution>
677 </executions>
678 </plugin>
679 </plugins>
680 </pluginManagement>
681
682 <plugins>
683 <plugin>
684 <groupId>org.apache.maven.plugins</groupId>
685 <artifactId>maven-jar-plugin</artifactId>
686 </plugin>
687
688 <plugin>
689 <groupId>org.apache.maven.plugins</groupId>
690 <artifactId>maven-checkstyle-plugin</artifactId>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800691 <version>2.16</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700692 <dependencies>
693 <dependency>
694 <groupId>org.onosproject</groupId>
695 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700696 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700697 </dependency>
698 <!-- For Java 8 lambda support-->
699 <dependency>
700 <groupId>com.puppycrawl.tools</groupId>
701 <artifactId>checkstyle</artifactId>
702 <version>5.9</version>
703 </dependency>
704 </dependencies>
705 <configuration>
706 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
707 <sourceDirectory>${project.build.sourceDirectory}
708 </sourceDirectory>
709 <testSourceDirectory>${project.build.testSourceDirectory}
710 </testSourceDirectory>
711 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
712 <configLocation>onos/checkstyle.xml</configLocation>
713 <suppressionsLocation>onos/suppressions.xml
714 </suppressionsLocation>
715 <failsOnError>false</failsOnError>
716 <logViolationsToConsole>true</logViolationsToConsole>
717 <includeTestSourceDirectory>true
718 </includeTestSourceDirectory>
719 </configuration>
720 <executions>
721 <execution>
722 <id>validate-checkstyle</id>
723 <phase>verify</phase>
724 <goals>
725 <goal>check</goal>
726 </goals>
727 </execution>
728 </executions>
729 </plugin>
730
731 <plugin>
732 <groupId>org.apache.maven.plugins</groupId>
733 <artifactId>maven-pmd-plugin</artifactId>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800734 <version>3.5</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700735 <configuration>
736 <excludes>
737 </excludes>
738 <rulesets>
739 <ruleset>onos/pmd.xml</ruleset>
740 </rulesets>
741 </configuration>
742 <executions>
743 <execution>
744 <id>validate-pmd</id>
745 <phase>verify</phase>
746 <goals>
747 <!-- Uncomment this goal to make the build fail on pmd errors -->
748 <!--<goal>check</goal>-->
749 </goals>
750 </execution>
751 </executions>
752 </plugin>
753
754 <plugin>
755 <groupId>org.jacoco</groupId>
756 <artifactId>jacoco-maven-plugin</artifactId>
HIGUCHI Yuta4303ac22015-11-23 11:29:21 -0800757 <version>0.7.5.201505241946</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700758 <executions>
759 <execution>
760 <id>default-prepare-agent</id>
761 <goals>
762 <goal>prepare-agent</goal>
763 </goals>
764 </execution>
765 <execution>
766 <id>default-report</id>
767 <phase>prepare-package</phase>
768 <goals>
769 <goal>report</goal>
770 </goals>
771 </execution>
772 </executions>
773 </plugin>
774 </plugins>
775 </build>
776
777 <reporting>
778 <plugins>
779 <plugin>
780 <groupId>org.apache.maven.plugins</groupId>
781 <artifactId>maven-checkstyle-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700782 <configuration>
783 <configLocation>onos/checkstyle.xml</configLocation>
784 </configuration>
785 </plugin>
786
787 <plugin>
788 <groupId>org.apache.maven.plugins</groupId>
789 <artifactId>maven-pmd-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700790 <configuration>
791 <excludes>
792 </excludes>
793 <rulesets>
794 <ruleset>onos/pmd.xml</ruleset>
795 </rulesets>
796 </configuration>
797 </plugin>
798 </plugins>
799 </reporting>
800</project>