blob: 8fdcacb03acc6b91cd2207e70b1c2e28a4838520 [file] [log] [blame]
Brian O'Connor354cab92015-08-27 11:55:27 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Thejaswi N K6a4cd002015-09-21 17:19:55 +05303 ~ Copyright 2015 Open Networking Laboratory
Brian O'Connor354cab92015-08-27 11:55:27 -07004 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17<project xmlns="http://maven.apache.org/POM/4.0.0"
18 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20 <modelVersion>4.0.0</modelVersion>
21
22 <prerequisites>
23 <maven>3.0.1</maven>
24 </prerequisites>
25
26 <parent>
27 <groupId>org.onosproject</groupId>
28 <artifactId>onos-base</artifactId>
29 <version>1</version>
30 <relativePath>tools/build/pom.xml</relativePath>
31 </parent>
32
Brian O'Connor1cda9312015-09-04 20:19:16 -070033 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -070034 <artifactId>onos</artifactId>
35 <packaging>pom</packaging>
Brian O'Connor880dc20d2015-12-16 22:53:14 -080036 <version>1.5.0-SNAPSHOT</version>
Brian O'Connor354cab92015-08-27 11:55:27 -070037
38 <name>${project.artifactId}</name>
39 <description>Open Network Operating System root project</description>
40
41 <modules>
42 <module>utils</module>
43 <module>core</module>
44 <module>web</module>
45 <module>cli</module>
46
Thomas Vachuskadc240022015-11-19 14:45:03 -080047 <module>protocols</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070048 <module>providers</module>
49 <module>drivers</module>
50
51 <module>apps</module>
52 <module>incubator</module>
53 <module>features</module>
54
55 <module>tools/package/archetypes</module>
56 <module>tools/package/branding</module>
Andrea Campanella82baf6b2015-12-14 10:23:37 -080057 <module>tools/package/maven-plugin</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070058 </modules>
59
60 <url>http://onosproject.org/</url>
61
62 <scm>
63 <connection>scm:git:https://gerrit.onosproject.org/onos</connection>
64 <developerConnection>scm:git:https://gerrit.onosproject.org/onos
65 </developerConnection>
66 <url>http://gerrit.onosproject.org/</url>
67 </scm>
68
69 <licenses>
70 <license>
71 <name>Apache License, Version 2.0</name>
72 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
73 </license>
74 </licenses>
75
76 <properties>
77 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Brian O'Connore261ab22015-12-04 22:42:06 -080078 <onos-build-conf.version>1.1</onos-build-conf.version>
Brian O'Connor354cab92015-08-27 11:55:27 -070079 <netty4.version>4.0.23.Final</netty4.version>
Brian O'Connor47196c52015-12-15 14:21:47 -080080 <copycat.version>0.5.1.onos</copycat.version>
Brian O'Connor3f4ed6b2015-12-15 14:40:02 -080081 <openflowj.version>0.9.1.onos</openflowj.version>
Andrea Campanella82baf6b2015-12-14 10:23:37 -080082 <onos-maven-plugin.version>1.8-SNAPSHOT</onos-maven-plugin.version>
Brian O'Connor354cab92015-08-27 11:55:27 -070083 <karaf.version>3.0.3</karaf.version>
84 <jersey.version>1.19</jersey.version>
Brian O'Connor89957a32015-12-08 18:37:04 -080085 <!-- TODO argLine was originally added maven-surfire-plugin configuration
86 to fix locale errors for non-US developers. However, it breaks
87 SonarQube's test coverage, so moving here for now. -->
88 <argLine>-Duser.language=en -Duser.region=US</argLine>
Brian O'Connor354cab92015-08-27 11:55:27 -070089 </properties>
90
91 <distributionManagement>
92 <snapshotRepository>
93 <id>ossrh</id>
94 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
95 </snapshotRepository>
96 </distributionManagement>
Brian O'Connor372658e2015-12-04 23:17:41 -080097
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>
Brian O'Connor89957a32015-12-08 18:37:04 -0800500
501 <dependency>
502 <groupId>com.google.code.findbugs</groupId>
503 <artifactId>jsr305</artifactId>
504 <version>3.0.0</version>
505 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700506 </dependencies>
507 </dependencyManagement>
508
509 <dependencies>
510 <dependency>
511 <groupId>junit</groupId>
512 <artifactId>junit</artifactId>
513 </dependency>
514 <dependency>
515 <groupId>org.hamcrest</groupId>
516 <artifactId>hamcrest-core</artifactId>
517 </dependency>
518 <dependency>
519 <groupId>org.hamcrest</groupId>
520 <artifactId>hamcrest-library</artifactId>
521 </dependency>
522 <dependency>
523 <groupId>org.slf4j</groupId>
524 <artifactId>slf4j-api</artifactId>
525 </dependency>
526 <dependency>
527 <groupId>org.slf4j</groupId>
528 <artifactId>slf4j-jdk14</artifactId>
529 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800530 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
531 Class not found: javax.annotation.Nullable
532 The following dependency alleviates this problem, but perhaps
533 it can be better located in the future. -->
534 <dependency>
535 <groupId>com.google.code.findbugs</groupId>
536 <artifactId>jsr305</artifactId>
537 <version>3.0.0</version>
538 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700539 </dependencies>
540
541 <build>
542 <pluginManagement>
543 <plugins>
544 <plugin>
545 <groupId>org.apache.maven.plugins</groupId>
546 <artifactId>maven-compiler-plugin</artifactId>
547 <!-- TODO: update once following issue is fixed. -->
548 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
549 <version>2.5.1</version>
550 <configuration>
551 <source>1.8</source>
552 <target>1.8</target>
553 </configuration>
554 </plugin>
555
556 <plugin>
557 <groupId>org.apache.maven.plugins</groupId>
558 <artifactId>maven-surefire-plugin</artifactId>
Brian O'Connor89957a32015-12-08 18:37:04 -0800559 <!-- TODO newer version available -->
Brian O'Connor354cab92015-08-27 11:55:27 -0700560 <version>2.18.1</version>
561 <configuration>
Brian O'Connor89957a32015-12-08 18:37:04 -0800562 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Brian O'Connor354cab92015-08-27 11:55:27 -0700563 <printSummary>true</printSummary>
564 <excludedGroups>org.onlab.junit.IntegrationTest
565 </excludedGroups>
566 <rerunFailingTestsCount>1</rerunFailingTestsCount>
567 </configuration>
568 </plugin>
andreafaa2c4b2015-11-16 13:48:39 -0800569 <plugin>
570 <groupId>org.apache.maven.plugins</groupId>
571 <artifactId>maven-javadoc-plugin</artifactId>
572 <version>2.10.3</version>
573 <configuration>
574 <tags>
575 <tag>
Andrea Campanella10c4adc2015-12-03 15:27:54 -0800576 <name>onos.rsModel</name>
andreafaa2c4b2015-11-16 13:48:39 -0800577 <placement>m</placement>
578 <head>Json model for REST api:</head>
579 </tag>
580 </tags>
581 </configuration>
582 </plugin>
Brian O'Connor354cab92015-08-27 11:55:27 -0700583 <plugin>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-jar-plugin</artifactId>
Brian O'Connor89957a32015-12-08 18:37:04 -0800586 <version>2.6</version>
587 <configuration>
588 <skipIfEmpty>true</skipIfEmpty>
589 </configuration>
Brian O'Connor354cab92015-08-27 11:55:27 -0700590 <executions>
591 <execution>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800592 <id>default</id>
Brian O'Connor354cab92015-08-27 11:55:27 -0700593 <goals>
594 <goal>test-jar</goal>
595 </goals>
596 </execution>
597 </executions>
598 </plugin>
599
600 <plugin>
601 <groupId>org.apache.maven.plugins</groupId>
602 <artifactId>maven-resources-plugin</artifactId>
603 <version>2.6</version>
604 </plugin>
605
606 <plugin>
607 <groupId>org.apache.felix</groupId>
608 <artifactId>maven-bundle-plugin</artifactId>
Brian O'Connor0c548212015-12-08 15:30:49 -0800609 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700610 <extensions>true</extensions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700611 </plugin>
612
613 <plugin>
614 <groupId>org.apache.maven.plugins</groupId>
615 <artifactId>maven-shade-plugin</artifactId>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800616 <version>2.4.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700617 </plugin>
618
619 <plugin>
620 <groupId>org.apache.felix</groupId>
621 <artifactId>maven-scr-plugin</artifactId>
622 <version>1.20.0</version>
623 <executions>
624 <execution>
625 <id>generate-scr-srcdescriptor</id>
626 <goals>
627 <goal>scr</goal>
628 </goals>
629 </execution>
630 </executions>
631 <configuration>
632 <supportedProjectTypes>
633 <supportedProjectType>bundle</supportedProjectType>
634 <supportedProjectType>war</supportedProjectType>
635 </supportedProjectTypes>
636 </configuration>
637 </plugin>
638 <plugin>
639 <groupId>org.codehaus.mojo</groupId>
640 <artifactId>findbugs-maven-plugin</artifactId>
HIGUCHI Yuta8aa86112015-09-22 15:05:35 -0700641 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700642 <dependencies>
643 <dependency>
644 <groupId>org.onosproject</groupId>
645 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700646 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700647 </dependency>
648 </dependencies>
649 <configuration>
650 <effort>Max</effort>
651 <excludeFilterFile>onos/findbugs-suppressions.xml
652 </excludeFilterFile>
653 </configuration>
654 </plugin>
655
656 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
657 <plugin>
658 <groupId>org.onosproject</groupId>
659 <artifactId>onos-maven-plugin</artifactId>
Andrea Campanella260645b2015-12-06 10:24:18 -0800660 <version>${onos-maven-plugin.version}</version>
andreafaa2c4b2015-11-16 13:48:39 -0800661 <executions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700662 <execution>
663 <id>cfg</id>
664 <phase>generate-resources</phase>
665 <goals>
666 <goal>cfg</goal>
667 </goals>
668 </execution>
669 <execution>
670 <id>swagger</id>
671 <phase>generate-sources</phase>
672 <goals>
673 <goal>swagger</goal>
674 </goals>
675 </execution>
676 <execution>
677 <id>app</id>
678 <phase>package</phase>
679 <goals>
680 <goal>app</goal>
681 </goals>
682 </execution>
683 </executions>
684 </plugin>
685 </plugins>
686 </pluginManagement>
687
688 <plugins>
689 <plugin>
690 <groupId>org.apache.maven.plugins</groupId>
691 <artifactId>maven-jar-plugin</artifactId>
692 </plugin>
693
694 <plugin>
695 <groupId>org.apache.maven.plugins</groupId>
696 <artifactId>maven-checkstyle-plugin</artifactId>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800697 <version>2.16</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700698 <dependencies>
699 <dependency>
700 <groupId>org.onosproject</groupId>
701 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700702 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700703 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700704 </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>