blob: 236facca4b226da347f81ff9de50dc4b6c6a228e [file] [log] [blame]
Thomas Vachuska43977572016-06-02 13:48:55 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07003 ~ Copyright 2016-present Open Networking Foundation
Thomas Vachuska43977572016-06-02 13:48:55 -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
Thomas Vachuska43977572016-06-02 13:48:55 -070022 <parent>
23 <groupId>org.onosproject</groupId>
24 <artifactId>onos-base</artifactId>
25 <version>1</version>
26 <relativePath>../tools/build/pom.xml</relativePath>
27 </parent>
28
29 <groupId>org.onosproject</groupId>
30 <artifactId>onos-dependencies</artifactId>
31 <packaging>pom</packaging>
ONOS Jenkins User05acc712018-03-27 17:38:17 +000032 <version>1.11.3-SNAPSHOT</version>
Thomas Vachuska43977572016-06-02 13:48:55 -070033
34 <name>${project.artifactId}</name>
35 <description>Open Network Operating System shared dependencies</description>
36
37 <properties>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Ray Milkey9a2b1fa2017-12-22 13:26:15 -080039 <onos-build-conf.version>1.11.2-SNAPSHOT</onos-build-conf.version>
Aaron Kruglikov0c9b9ae2017-06-13 18:31:59 -070040 <netty4.version>4.1.8.Final</netty4.version>
Yuta HIGUCHI8ce28c02017-05-19 09:51:55 -070041 <openflowj.version>3.2.0.onos</openflowj.version>
Thomas Vachuskae5428c52016-08-09 13:27:06 -070042 <onos-maven-plugin.version>1.10</onos-maven-plugin.version>
Ray Milkeye9019322017-09-01 10:19:17 -070043 <onos-yang-tools.version>2.2.0</onos-yang-tools.version>
Thomas Vachuska43977572016-06-02 13:48:55 -070044 <osgi.version>5.0.0</osgi.version>
Jon Hallb84df5d2017-01-31 11:19:48 -080045 <karaf.version>3.0.8</karaf.version>
Jian Li112890b2017-04-25 22:27:49 +090046 <jersey.version>2.25.1</jersey.version>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -070047 <jetty.version>9.2.21.v20170120</jetty.version>
Jian Li7afc1722017-05-23 01:20:27 +090048 <jackson.version>2.8.8</jackson.version>
Thomas Vachuska43977572016-06-02 13:48:55 -070049 <slf4j.version>1.7.21</slf4j.version>
Yuta HIGUCHI16b6efd2017-05-23 11:28:38 -070050 <guava.version>22.0</guava.version>
Thomas Vachuska43977572016-06-02 13:48:55 -070051 <commons.io.version>2.4</commons.io.version>
52 <!-- TODO argLine was originally added maven-surfire-plugin configuration
53 to fix locale errors for non-US developers. However, it breaks
54 SonarQube's test coverage, so moving here for now. -->
55 <argLine>-Duser.language=en -Duser.region=US</argLine>
56 </properties>
57
58 <dependencyManagement>
59 <dependencies>
60 <dependency>
61 <groupId>junit</groupId>
62 <artifactId>junit</artifactId>
63 <version>4.12</version>
64 <scope>test</scope>
65 </dependency>
66
67 <dependency>
68 <groupId>org.hamcrest</groupId>
69 <artifactId>hamcrest-core</artifactId>
70 <version>1.3</version>
71 <scope>test</scope>
72 </dependency>
73 <dependency>
74 <groupId>org.hamcrest</groupId>
75 <artifactId>hamcrest-library</artifactId>
76 <version>1.3</version>
77 <scope>test</scope>
78 </dependency>
79
80 <dependency>
81 <groupId>org.slf4j</groupId>
82 <artifactId>slf4j-api</artifactId>
83 <version>${slf4j.version}</version>
84 <scope>provided</scope>
85 </dependency>
86
87 <dependency>
88 <groupId>org.slf4j</groupId>
89 <artifactId>slf4j-core</artifactId>
90 <version>${slf4j.version}</version>
91 <scope>test</scope>
92 </dependency>
93
94 <dependency>
95 <groupId>org.slf4j</groupId>
96 <artifactId>slf4j-jdk14</artifactId>
97 <version>${slf4j.version}</version>
98 <scope>test</scope>
99 </dependency>
100
101 <dependency>
102 <groupId>com.google.guava</groupId>
103 <artifactId>guava</artifactId>
104 <version>${guava.version}</version>
105 </dependency>
106
107 <dependency>
108 <groupId>com.google.guava</groupId>
109 <artifactId>guava-testlib</artifactId>
110 <version>${guava.version}</version>
111 <scope>test</scope>
112 </dependency>
113
114 <dependency>
115 <groupId>com.googlecode.concurrent-trees</groupId>
116 <artifactId>concurrent-trees</artifactId>
Yuta HIGUCHI9da68452017-01-06 11:45:02 -0800117 <version>2.6.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700118 </dependency>
119
120 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700121 <groupId>commons-collections</groupId>
122 <artifactId>commons-collections</artifactId>
123 <version>3.2.2</version>
124 </dependency>
125
126 <dependency>
127 <groupId>commons-configuration</groupId>
128 <artifactId>commons-configuration</artifactId>
129 <version>1.10</version>
130 </dependency>
131
132 <dependency>
133 <groupId>commons-io</groupId>
134 <artifactId>commons-io</artifactId>
135 <version>2.4</version>
136 </dependency>
137
138 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700139 <groupId>commons-lang</groupId>
140 <artifactId>commons-lang</artifactId>
141 <version>2.6</version>
142 </dependency>
143
144 <dependency>
145 <groupId>org.apache.commons</groupId>
146 <artifactId>commons-lang3</artifactId>
Yuta HIGUCHI5fd61a82017-02-02 12:30:38 -0800147 <version>3.5</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700148 </dependency>
149
150 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700151 <groupId>commons-logging</groupId>
152 <artifactId>commons-logging</artifactId>
153 <version>1.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700154 </dependency>
155
156 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700157 <groupId>org.apache.commons</groupId>
158 <artifactId>commons-math3</artifactId>
159 <version>3.6.1</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700160 </dependency>
161
162 <dependency>
163 <groupId>commons-pool</groupId>
164 <artifactId>commons-pool</artifactId>
165 <version>1.6</version>
166 </dependency>
167
168 <dependency>
169 <groupId>org.easymock</groupId>
170 <artifactId>easymock</artifactId>
171 <version>3.4</version>
172 <scope>test</scope>
173 </dependency>
174
175 <!-- Web related -->
176 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700177 <groupId>javax.servlet</groupId>
178 <artifactId>javax.servlet-api</artifactId>
179 <version>3.1.0</version>
180 <scope>test</scope>
181 </dependency>
182 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700183 <groupId>org.glassfish.jersey.core</groupId>
184 <artifactId>jersey-client</artifactId>
185 <version>${jersey.version}</version>
186 </dependency>
187 <dependency>
188 <groupId>org.glassfish.jersey.containers</groupId>
189 <artifactId>jersey-container-servlet</artifactId>
190 <version>${jersey.version}</version>
191 <scope>provided</scope>
192 </dependency>
193 <dependency>
194 <groupId>org.glassfish.jersey.containers</groupId>
195 <artifactId>jersey-container-servlet-core</artifactId>
196 <version>${jersey.version}</version>
197 <scope>provided</scope>
198 </dependency>
199 <dependency>
200 <groupId>org.glassfish.jersey.media</groupId>
201 <artifactId>jersey-media-multipart</artifactId>
202 <version>${jersey.version}</version>
203 <scope>provided</scope>
204 </dependency>
205 <dependency>
206 <groupId>org.glassfish.jersey.test-framework</groupId>
207 <artifactId>jersey-test-framework-core</artifactId>
208 <version>${jersey.version}</version>
209 <scope>test</scope>
210 </dependency>
211 <dependency>
212 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
213 <artifactId>jersey-test-framework-provider-jetty</artifactId>
214 <version>${jersey.version}</version>
215 <scope>test</scope>
216 </dependency>
217 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700218 <groupId>org.eclipse.jetty</groupId>
219 <artifactId>jetty-server</artifactId>
220 <version>${jetty.version}</version>
221 <scope>test</scope>
222 </dependency>
223 <dependency>
224 <groupId>org.eclipse.jetty</groupId>
225 <artifactId>jetty-util</artifactId>
226 <version>${jetty.version}</version>
227 </dependency>
228 <dependency>
229 <groupId>org.eclipse.jetty</groupId>
230 <artifactId>jetty-io</artifactId>
231 <version>${jetty.version}</version>
232 </dependency>
233 <dependency>
234 <groupId>org.eclipse.jetty</groupId>
235 <artifactId>jetty-http</artifactId>
236 <version>${jetty.version}</version>
237 </dependency>
238 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700239 <groupId>com.fasterxml.jackson.core</groupId>
240 <artifactId>jackson-databind</artifactId>
241 <version>${jackson.version}</version>
242 <scope>provided</scope>
243 </dependency>
244 <dependency>
245 <groupId>com.fasterxml.jackson.core</groupId>
246 <artifactId>jackson-annotations</artifactId>
247 <version>${jackson.version}</version>
248 <scope>provided</scope>
249 </dependency>
250
251 <!-- OSGi related -->
252 <dependency>
253 <groupId>org.osgi</groupId>
254 <artifactId>org.osgi.core</artifactId>
255 <version>${osgi.version}</version>
256 <scope>provided</scope>
257 </dependency>
258 <dependency>
259 <groupId>org.osgi</groupId>
260 <artifactId>org.osgi.compendium</artifactId>
261 <version>${osgi.version}</version>
262 <scope>provided</scope>
263 </dependency>
264 <dependency>
265 <groupId>org.apache.felix</groupId>
266 <artifactId>org.apache.felix.scr.annotations</artifactId>
267 <version>1.9.12</version>
268 <scope>provided</scope>
269 </dependency>
270 <dependency>
271 <groupId>org.apache.felix</groupId>
272 <artifactId>org.apache.felix.scr</artifactId>
273 <version>1.8.2</version>
274 </dependency>
275
276 <dependency>
277 <groupId>org.apache.karaf.features</groupId>
278 <artifactId>org.apache.karaf.features.core</artifactId>
279 <version>${karaf.version}</version>
280 <scope>provided</scope>
281 </dependency>
282 <dependency>
283 <groupId>org.apache.karaf.system</groupId>
284 <artifactId>org.apache.karaf.system.core</artifactId>
285 <version>${karaf.version}</version>
286 <scope>provided</scope>
287 </dependency>
288 <dependency>
289 <groupId>org.apache.karaf.shell</groupId>
290 <artifactId>org.apache.karaf.shell.console</artifactId>
291 <version>${karaf.version}</version>
292 <scope>provided</scope>
293 </dependency>
294
295 <dependency>
296 <groupId>org.livetribe.slp</groupId>
297 <artifactId>livetribe-slp</artifactId>
298 <version>2.2.1</version>
299 </dependency>
300
301 <dependency>
302 <groupId>com.eclipsesource.minimal-json</groupId>
303 <artifactId>minimal-json</artifactId>
304 <version>0.9.4</version>
305 </dependency>
306 <dependency>
307 <groupId>com.esotericsoftware</groupId>
308 <artifactId>kryo</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700309 <version>4.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700310 </dependency>
311 <dependency>
312 <groupId>com.esotericsoftware</groupId>
313 <artifactId>reflectasm</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700314 <version>1.11.3</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700315 </dependency>
316 <dependency>
317 <groupId>org.ow2.asm</groupId>
318 <artifactId>asm</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700319 <version>5.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700320 </dependency>
321 <dependency>
322 <groupId>com.esotericsoftware</groupId>
323 <artifactId>minlog</artifactId>
324 <version>1.3.0</version>
325 </dependency>
326 <dependency>
327 <groupId>org.objenesis</groupId>
328 <artifactId>objenesis</artifactId>
329 <version>2.2</version>
330 </dependency>
331
332 <!-- Netty related; for now we require both 3.10.x and 4 -->
333 <dependency>
334 <groupId>io.netty</groupId>
335 <artifactId>netty</artifactId>
336 <version>3.10.5.Final</version>
337 </dependency>
338
339 <dependency>
340 <groupId>io.netty</groupId>
341 <artifactId>netty-common</artifactId>
342 <version>${netty4.version}</version>
343 </dependency>
344 <dependency>
345 <groupId>io.netty</groupId>
346 <artifactId>netty-buffer</artifactId>
347 <version>${netty4.version}</version>
348 </dependency>
349 <dependency>
350 <groupId>io.netty</groupId>
351 <artifactId>netty-transport</artifactId>
352 <version>${netty4.version}</version>
353 </dependency>
354 <dependency>
355 <groupId>io.netty</groupId>
356 <artifactId>netty-handler</artifactId>
357 <version>${netty4.version}</version>
358 </dependency>
359
360 <dependency>
361 <groupId>io.netty</groupId>
362 <artifactId>netty-codec</artifactId>
363 <version>${netty4.version}</version>
364 </dependency>
365
366 <dependency>
367 <groupId>io.netty</groupId>
368 <artifactId>netty-transport-native-epoll</artifactId>
369 <version>${netty4.version}</version>
370 <classifier>${os.detected.classifier}</classifier>
371 </dependency>
372
373 <dependency>
Jonathan Hart5dc9a4e2017-01-13 09:09:57 -0800374 <groupId>io.netty</groupId>
375 <artifactId>netty-resolver</artifactId>
376 <version>${netty4.version}</version>
377 </dependency>
378
379 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700380 <groupId>joda-time</groupId>
381 <artifactId>joda-time</artifactId>
382 <version>2.9.3</version>
383 </dependency>
384
385 <dependency>
386 <groupId>com.google.code.findbugs</groupId>
387 <artifactId>jsr305</artifactId>
388 <version>3.0.1</version>
389 </dependency>
390
391 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700392 <groupId>com.google.errorprone</groupId>
393 <artifactId>error_prone_annotations</artifactId>
394 <version>2.0.11</version>
395 </dependency>
396
397 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700398 <groupId>org.onosproject</groupId>
399 <artifactId>openflowj</artifactId>
400 <version>${openflowj.version}</version>
401 <scope>provided</scope>
402 </dependency>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700403
404 <dependency>
405 <groupId>org.onosproject</groupId>
406 <artifactId>onos-yang-model</artifactId>
407 <version>${onos-yang-tools.version}</version>
408 </dependency>
409 <dependency>
410 <groupId>org.onosproject</groupId>
411 <artifactId>onos-yang-runtime</artifactId>
412 <version>${onos-yang-tools.version}</version>
413 </dependency>
Yuta HIGUCHIb8dae872017-06-27 20:06:48 -0700414 <dependency>
415 <groupId>org.onosproject</groupId>
416 <artifactId>onos-yang-serializers-xml</artifactId>
417 <version>${onos-yang-tools.version}</version>
418 </dependency>
419 <dependency>
420 <groupId>org.onosproject</groupId>
421 <artifactId>onos-yang-serializers-json</artifactId>
422 <version>${onos-yang-tools.version}</version>
423 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700424 </dependencies>
425 </dependencyManagement>
426
427 <dependencies>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700428
429 <dependency>
430 <groupId>joda-time</groupId>
431 <artifactId>joda-time</artifactId>
432 </dependency>
433
434 <dependency>
435 <groupId>commons-configuration</groupId>
436 <artifactId>commons-configuration</artifactId>
437 </dependency>
438
439 <dependency>
440 <groupId>commons-logging</groupId>
441 <artifactId>commons-logging</artifactId>
442 </dependency>
443
444 <dependency>
445 <groupId>commons-collections</groupId>
446 <artifactId>commons-collections</artifactId>
447 </dependency>
448
449 <dependency>
450 <groupId>commons-lang</groupId>
451 <artifactId>commons-lang</artifactId>
452 </dependency>
453
454 <dependency>
455 <groupId>org.apache.commons</groupId>
456 <artifactId>commons-lang3</artifactId>
457 </dependency>
458
459 <dependency>
460 <groupId>commons-io</groupId>
461 <artifactId>commons-io</artifactId>
462 </dependency>
463
464 <dependency>
465 <groupId>commons-pool</groupId>
466 <artifactId>commons-pool</artifactId>
467 </dependency>
468
Thomas Vachuska43977572016-06-02 13:48:55 -0700469 <dependency>
470 <groupId>junit</groupId>
471 <artifactId>junit</artifactId>
472 </dependency>
473 <dependency>
474 <groupId>org.hamcrest</groupId>
475 <artifactId>hamcrest-core</artifactId>
476 </dependency>
477 <dependency>
478 <groupId>org.hamcrest</groupId>
479 <artifactId>hamcrest-library</artifactId>
480 </dependency>
481 <dependency>
482 <groupId>org.slf4j</groupId>
483 <artifactId>slf4j-api</artifactId>
484 </dependency>
Yuta HIGUCHI3f9b1e82017-10-20 15:58:13 -0700485
486 <dependency>
487 <groupId>org.osgi</groupId>
488 <artifactId>org.osgi.compendium</artifactId>
489 </dependency>
490
Thomas Vachuska43977572016-06-02 13:48:55 -0700491 <dependency>
492 <groupId>org.slf4j</groupId>
493 <artifactId>slf4j-jdk14</artifactId>
494 </dependency>
495 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
496 Class not found: javax.annotation.Nullable
497 The following dependency alleviates this problem, but perhaps
498 it can be better located in the future. -->
499 <dependency>
500 <groupId>com.google.code.findbugs</groupId>
501 <artifactId>jsr305</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700502 </dependency>
503 </dependencies>
504
505 <build>
506 <pluginManagement>
507 <plugins>
508 <plugin>
509 <groupId>org.apache.maven.plugins</groupId>
510 <artifactId>maven-compiler-plugin</artifactId>
511 <!-- TODO: update once following issue is fixed. -->
512 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
513 <version>2.5.1</version>
514 <configuration>
515 <source>1.8</source>
516 <target>1.8</target>
517 </configuration>
518 </plugin>
519
520 <plugin>
521 <groupId>org.apache.maven.plugins</groupId>
522 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700523 <version>2.20</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700524 <configuration>
525 <redirectTestOutputToFile>true</redirectTestOutputToFile>
526 <printSummary>true</printSummary>
527 <excludedGroups>org.onlab.junit.IntegrationTest
528 </excludedGroups>
529 <rerunFailingTestsCount>1</rerunFailingTestsCount>
530 </configuration>
531 </plugin>
532 <plugin>
533 <groupId>org.apache.maven.plugins</groupId>
534 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700535 <version>2.10.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700536 <configuration>
537 <tags>
538 <tag>
539 <name>onos.rsModel</name>
540 <placement>m</placement>
541 <head>Json model for REST api:</head>
542 </tag>
543 </tags>
544 </configuration>
545 </plugin>
546 <plugin>
547 <groupId>org.apache.maven.plugins</groupId>
548 <artifactId>maven-jar-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700549 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700550 <configuration>
551 <skipIfEmpty>true</skipIfEmpty>
552 </configuration>
553 <executions>
554 <execution>
555 <id>default</id>
556 <goals>
557 <goal>test-jar</goal>
558 </goals>
559 </execution>
560 </executions>
561 </plugin>
562
563 <plugin>
564 <groupId>org.apache.maven.plugins</groupId>
565 <artifactId>maven-resources-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700566 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700567 </plugin>
568
569 <plugin>
570 <groupId>org.apache.felix</groupId>
571 <artifactId>maven-bundle-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700572 <version>3.3.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700573 <extensions>true</extensions>
574 <configuration>
575 <niceManifest>true</niceManifest>
576 </configuration>
577 </plugin>
578
579 <plugin>
580 <groupId>org.apache.maven.plugins</groupId>
581 <artifactId>maven-shade-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700582 <version>3.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700583 </plugin>
584
585 <plugin>
586 <groupId>org.apache.felix</groupId>
587 <artifactId>maven-scr-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700588 <version>1.24.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700589 <executions>
590 <execution>
591 <id>generate-scr-srcdescriptor</id>
592 <goals>
593 <goal>scr</goal>
594 </goals>
595 </execution>
596 </executions>
597 <configuration>
598 <supportedProjectTypes>
599 <supportedProjectType>bundle</supportedProjectType>
600 <supportedProjectType>war</supportedProjectType>
601 </supportedProjectTypes>
602 </configuration>
603 </plugin>
604 <plugin>
605 <groupId>org.codehaus.mojo</groupId>
606 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700607 <version>3.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700608 <dependencies>
609 <dependency>
610 <groupId>org.onosproject</groupId>
611 <artifactId>onos-build-conf</artifactId>
612 <version>${onos-build-conf.version}</version>
613 </dependency>
614 </dependencies>
615 <configuration>
616 <effort>Max</effort>
617 <excludeFilterFile>onos/findbugs-suppressions.xml
618 </excludeFilterFile>
619 </configuration>
620 </plugin>
621
622 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
623 <plugin>
624 <groupId>org.onosproject</groupId>
625 <artifactId>onos-maven-plugin</artifactId>
626 <version>${onos-maven-plugin.version}</version>
627 <executions>
628 <execution>
629 <id>cfg</id>
630 <phase>generate-resources</phase>
631 <goals>
632 <goal>cfg</goal>
633 </goals>
634 </execution>
635 <execution>
636 <id>swagger</id>
637 <phase>generate-sources</phase>
638 <goals>
639 <goal>swagger</goal>
640 </goals>
641 </execution>
642 <execution>
643 <id>app</id>
644 <phase>package</phase>
645 <goals>
646 <goal>app</goal>
647 </goals>
648 </execution>
649 </executions>
650 </plugin>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700651
652 <plugin>
653 <groupId>org.onosproject</groupId>
654 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
655 <version>${onos-yang-tools.version}</version>
656 <executions>
657 <execution>
658 <goals>
659 <goal>yang2java</goal>
660 </goals>
661 </execution>
662 </executions>
663 </plugin>
Thomas Vachuska43977572016-06-02 13:48:55 -0700664 </plugins>
665 </pluginManagement>
666
667 <plugins>
668 <plugin>
669 <groupId>org.apache.maven.plugins</groupId>
670 <artifactId>maven-jar-plugin</artifactId>
671 </plugin>
672
673 <plugin>
674 <groupId>org.apache.maven.plugins</groupId>
675 <artifactId>maven-checkstyle-plugin</artifactId>
676 <version>2.17</version>
677 <dependencies>
678 <dependency>
679 <groupId>org.onosproject</groupId>
680 <artifactId>onos-build-conf</artifactId>
681 <version>${onos-build-conf.version}</version>
682 </dependency>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700683 <dependency>
684 <groupId>com.puppycrawl.tools</groupId>
685 <artifactId>checkstyle</artifactId>
686 <version>6.19</version>
687 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700688 </dependencies>
689 <configuration>
690 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
691 <sourceDirectory>${project.build.sourceDirectory}
692 </sourceDirectory>
693 <testSourceDirectory>${project.build.testSourceDirectory}
694 </testSourceDirectory>
695 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
Ray Milkey2d572dd2017-04-14 10:01:24 -0700696 <configLocation>onos/checkstyle-mvn.xml</configLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700697 <suppressionsLocation>onos/suppressions.xml
698 </suppressionsLocation>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700699 <headerLocation>onos/onos-java.header
700 </headerLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700701 <failsOnError>false</failsOnError>
702 <logViolationsToConsole>true</logViolationsToConsole>
Yuta HIGUCHId919d9b2017-06-26 11:10:20 -0700703 <includeTestSourceDirectory>true</includeTestSourceDirectory>
704 <includeResources>false</includeResources>
Thomas Vachuska43977572016-06-02 13:48:55 -0700705 </configuration>
706 <executions>
707 <execution>
708 <id>validate-checkstyle</id>
709 <phase>verify</phase>
710 <goals>
711 <goal>check</goal>
712 </goals>
713 </execution>
714 </executions>
715 </plugin>
716
717 <plugin>
718 <groupId>org.apache.maven.plugins</groupId>
719 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700720 <version>3.8</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700721 <configuration>
722 <excludes>
723 </excludes>
724 <rulesets>
725 <ruleset>onos/pmd.xml</ruleset>
726 </rulesets>
727 </configuration>
728 <executions>
729 <execution>
730 <id>validate-pmd</id>
731 <phase>verify</phase>
732 <goals>
733 <!-- Uncomment this goal to make the build fail on pmd errors -->
734 <!--<goal>check</goal>-->
735 </goals>
736 </execution>
737 </executions>
738 </plugin>
739
740 <plugin>
741 <groupId>org.jacoco</groupId>
742 <artifactId>jacoco-maven-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700743 <version>0.7.9</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700744 <executions>
745 <execution>
746 <id>default-prepare-agent</id>
747 <goals>
748 <goal>prepare-agent</goal>
749 </goals>
750 </execution>
751 <execution>
752 <id>default-report</id>
753 <phase>prepare-package</phase>
754 <goals>
755 <goal>report</goal>
756 </goals>
757 </execution>
758 </executions>
759 </plugin>
760 </plugins>
761 </build>
762
763 <reporting>
764 <plugins>
765 <plugin>
766 <groupId>org.apache.maven.plugins</groupId>
767 <artifactId>maven-checkstyle-plugin</artifactId>
768 <configuration>
769 <configLocation>onos/checkstyle.xml</configLocation>
770 </configuration>
771 </plugin>
772
773 <plugin>
774 <groupId>org.apache.maven.plugins</groupId>
775 <artifactId>maven-pmd-plugin</artifactId>
776 <configuration>
777 <excludes>
778 </excludes>
779 <rulesets>
780 <ruleset>onos/pmd.xml</ruleset>
781 </rulesets>
782 </configuration>
783 </plugin>
784 </plugins>
785 </reporting>
786</project>