blob: 4548648b838ec4a258778b39e7b212009c90d137 [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>
Ray Milkey94d5ba12017-08-29 11:44:24 -070032 <version>1.11.0-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 Milkey94d5ba12017-08-29 11:44:24 -070039 <onos-build-conf.version>1.11.0-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>
485 <dependency>
486 <groupId>org.slf4j</groupId>
487 <artifactId>slf4j-jdk14</artifactId>
488 </dependency>
489 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
490 Class not found: javax.annotation.Nullable
491 The following dependency alleviates this problem, but perhaps
492 it can be better located in the future. -->
493 <dependency>
494 <groupId>com.google.code.findbugs</groupId>
495 <artifactId>jsr305</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700496 </dependency>
497 </dependencies>
498
499 <build>
500 <pluginManagement>
501 <plugins>
502 <plugin>
503 <groupId>org.apache.maven.plugins</groupId>
504 <artifactId>maven-compiler-plugin</artifactId>
505 <!-- TODO: update once following issue is fixed. -->
506 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
507 <version>2.5.1</version>
508 <configuration>
509 <source>1.8</source>
510 <target>1.8</target>
511 </configuration>
512 </plugin>
513
514 <plugin>
515 <groupId>org.apache.maven.plugins</groupId>
516 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700517 <version>2.20</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700518 <configuration>
519 <redirectTestOutputToFile>true</redirectTestOutputToFile>
520 <printSummary>true</printSummary>
521 <excludedGroups>org.onlab.junit.IntegrationTest
522 </excludedGroups>
523 <rerunFailingTestsCount>1</rerunFailingTestsCount>
524 </configuration>
525 </plugin>
526 <plugin>
527 <groupId>org.apache.maven.plugins</groupId>
528 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700529 <version>2.10.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700530 <configuration>
531 <tags>
532 <tag>
533 <name>onos.rsModel</name>
534 <placement>m</placement>
535 <head>Json model for REST api:</head>
536 </tag>
537 </tags>
538 </configuration>
539 </plugin>
540 <plugin>
541 <groupId>org.apache.maven.plugins</groupId>
542 <artifactId>maven-jar-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700543 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700544 <configuration>
545 <skipIfEmpty>true</skipIfEmpty>
546 </configuration>
547 <executions>
548 <execution>
549 <id>default</id>
550 <goals>
551 <goal>test-jar</goal>
552 </goals>
553 </execution>
554 </executions>
555 </plugin>
556
557 <plugin>
558 <groupId>org.apache.maven.plugins</groupId>
559 <artifactId>maven-resources-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700560 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700561 </plugin>
562
563 <plugin>
564 <groupId>org.apache.felix</groupId>
565 <artifactId>maven-bundle-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700566 <version>3.3.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700567 <extensions>true</extensions>
568 <configuration>
569 <niceManifest>true</niceManifest>
570 </configuration>
571 </plugin>
572
573 <plugin>
574 <groupId>org.apache.maven.plugins</groupId>
575 <artifactId>maven-shade-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700576 <version>3.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700577 </plugin>
578
579 <plugin>
580 <groupId>org.apache.felix</groupId>
581 <artifactId>maven-scr-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700582 <version>1.24.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700583 <executions>
584 <execution>
585 <id>generate-scr-srcdescriptor</id>
586 <goals>
587 <goal>scr</goal>
588 </goals>
589 </execution>
590 </executions>
591 <configuration>
592 <supportedProjectTypes>
593 <supportedProjectType>bundle</supportedProjectType>
594 <supportedProjectType>war</supportedProjectType>
595 </supportedProjectTypes>
596 </configuration>
597 </plugin>
598 <plugin>
599 <groupId>org.codehaus.mojo</groupId>
600 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700601 <version>3.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700602 <dependencies>
603 <dependency>
604 <groupId>org.onosproject</groupId>
605 <artifactId>onos-build-conf</artifactId>
606 <version>${onos-build-conf.version}</version>
607 </dependency>
608 </dependencies>
609 <configuration>
610 <effort>Max</effort>
611 <excludeFilterFile>onos/findbugs-suppressions.xml
612 </excludeFilterFile>
613 </configuration>
614 </plugin>
615
616 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
617 <plugin>
618 <groupId>org.onosproject</groupId>
619 <artifactId>onos-maven-plugin</artifactId>
620 <version>${onos-maven-plugin.version}</version>
621 <executions>
622 <execution>
623 <id>cfg</id>
624 <phase>generate-resources</phase>
625 <goals>
626 <goal>cfg</goal>
627 </goals>
628 </execution>
629 <execution>
630 <id>swagger</id>
631 <phase>generate-sources</phase>
632 <goals>
633 <goal>swagger</goal>
634 </goals>
635 </execution>
636 <execution>
637 <id>app</id>
638 <phase>package</phase>
639 <goals>
640 <goal>app</goal>
641 </goals>
642 </execution>
643 </executions>
644 </plugin>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700645
646 <plugin>
647 <groupId>org.onosproject</groupId>
648 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
649 <version>${onos-yang-tools.version}</version>
650 <executions>
651 <execution>
652 <goals>
653 <goal>yang2java</goal>
654 </goals>
655 </execution>
656 </executions>
657 </plugin>
Thomas Vachuska43977572016-06-02 13:48:55 -0700658 </plugins>
659 </pluginManagement>
660
661 <plugins>
662 <plugin>
663 <groupId>org.apache.maven.plugins</groupId>
664 <artifactId>maven-jar-plugin</artifactId>
665 </plugin>
666
667 <plugin>
668 <groupId>org.apache.maven.plugins</groupId>
669 <artifactId>maven-checkstyle-plugin</artifactId>
670 <version>2.17</version>
671 <dependencies>
672 <dependency>
673 <groupId>org.onosproject</groupId>
674 <artifactId>onos-build-conf</artifactId>
675 <version>${onos-build-conf.version}</version>
676 </dependency>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700677 <dependency>
678 <groupId>com.puppycrawl.tools</groupId>
679 <artifactId>checkstyle</artifactId>
680 <version>6.19</version>
681 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700682 </dependencies>
683 <configuration>
684 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
685 <sourceDirectory>${project.build.sourceDirectory}
686 </sourceDirectory>
687 <testSourceDirectory>${project.build.testSourceDirectory}
688 </testSourceDirectory>
689 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
Ray Milkey2d572dd2017-04-14 10:01:24 -0700690 <configLocation>onos/checkstyle-mvn.xml</configLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700691 <suppressionsLocation>onos/suppressions.xml
692 </suppressionsLocation>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700693 <headerLocation>onos/onos-java.header
694 </headerLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700695 <failsOnError>false</failsOnError>
696 <logViolationsToConsole>true</logViolationsToConsole>
Yuta HIGUCHId919d9b2017-06-26 11:10:20 -0700697 <includeTestSourceDirectory>true</includeTestSourceDirectory>
698 <includeResources>false</includeResources>
Thomas Vachuska43977572016-06-02 13:48:55 -0700699 </configuration>
700 <executions>
701 <execution>
702 <id>validate-checkstyle</id>
703 <phase>verify</phase>
704 <goals>
705 <goal>check</goal>
706 </goals>
707 </execution>
708 </executions>
709 </plugin>
710
711 <plugin>
712 <groupId>org.apache.maven.plugins</groupId>
713 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700714 <version>3.8</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700715 <configuration>
716 <excludes>
717 </excludes>
718 <rulesets>
719 <ruleset>onos/pmd.xml</ruleset>
720 </rulesets>
721 </configuration>
722 <executions>
723 <execution>
724 <id>validate-pmd</id>
725 <phase>verify</phase>
726 <goals>
727 <!-- Uncomment this goal to make the build fail on pmd errors -->
728 <!--<goal>check</goal>-->
729 </goals>
730 </execution>
731 </executions>
732 </plugin>
733
734 <plugin>
735 <groupId>org.jacoco</groupId>
736 <artifactId>jacoco-maven-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700737 <version>0.7.9</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700738 <executions>
739 <execution>
740 <id>default-prepare-agent</id>
741 <goals>
742 <goal>prepare-agent</goal>
743 </goals>
744 </execution>
745 <execution>
746 <id>default-report</id>
747 <phase>prepare-package</phase>
748 <goals>
749 <goal>report</goal>
750 </goals>
751 </execution>
752 </executions>
753 </plugin>
754 </plugins>
755 </build>
756
757 <reporting>
758 <plugins>
759 <plugin>
760 <groupId>org.apache.maven.plugins</groupId>
761 <artifactId>maven-checkstyle-plugin</artifactId>
762 <configuration>
763 <configLocation>onos/checkstyle.xml</configLocation>
764 </configuration>
765 </plugin>
766
767 <plugin>
768 <groupId>org.apache.maven.plugins</groupId>
769 <artifactId>maven-pmd-plugin</artifactId>
770 <configuration>
771 <excludes>
772 </excludes>
773 <rulesets>
774 <ruleset>onos/pmd.xml</ruleset>
775 </rulesets>
776 </configuration>
777 </plugin>
778 </plugins>
779 </reporting>
780</project>