blob: abcaf51e513b573d1b2fd9c9488f9d425926b177 [file] [log] [blame]
Thomas Vachuska43977572016-06-02 13:48:55 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Brian O'Connor0a4e6742016-09-15 23:03:10 -07003 ~ Copyright 2016-present Open Networking Laboratory
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 Milkey64677e92017-08-01 10:48:08 -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 Milkey64677e92017-08-01 10:48:08 -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>
Yuta HIGUCHI83f9b292017-08-01 16:23:25 -070043 <onos-yang-tools.version>2.2.0-b3</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>
121 <groupId>commons-lang</groupId>
122 <artifactId>commons-lang</artifactId>
123 <version>2.6</version>
124 </dependency>
125
126 <dependency>
127 <groupId>org.apache.commons</groupId>
128 <artifactId>commons-lang3</artifactId>
Yuta HIGUCHI5fd61a82017-02-02 12:30:38 -0800129 <version>3.5</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700130 </dependency>
131
132 <dependency>
133 <groupId>commons-configuration</groupId>
134 <artifactId>commons-configuration</artifactId>
135 <version>1.10</version>
136 </dependency>
137
138 <dependency>
139 <groupId>commons-collections</groupId>
140 <artifactId>commons-collections</artifactId>
141 <version>3.2.2</version>
142 </dependency>
143
144 <dependency>
145 <groupId>commons-pool</groupId>
146 <artifactId>commons-pool</artifactId>
147 <version>1.6</version>
148 </dependency>
149
150 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700151 <groupId>commons-logging</groupId>
152 <artifactId>commons-logging</artifactId>
153 <version>1.2</version>
154 </dependency>
155
156 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700157 <groupId>org.easymock</groupId>
158 <artifactId>easymock</artifactId>
159 <version>3.4</version>
160 <scope>test</scope>
161 </dependency>
162
163 <!-- Web related -->
164 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700165 <groupId>javax.servlet</groupId>
166 <artifactId>javax.servlet-api</artifactId>
167 <version>3.1.0</version>
168 <scope>test</scope>
169 </dependency>
170 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700171 <groupId>org.glassfish.jersey.core</groupId>
172 <artifactId>jersey-client</artifactId>
173 <version>${jersey.version}</version>
174 </dependency>
175 <dependency>
176 <groupId>org.glassfish.jersey.containers</groupId>
177 <artifactId>jersey-container-servlet</artifactId>
178 <version>${jersey.version}</version>
179 <scope>provided</scope>
180 </dependency>
181 <dependency>
182 <groupId>org.glassfish.jersey.containers</groupId>
183 <artifactId>jersey-container-servlet-core</artifactId>
184 <version>${jersey.version}</version>
185 <scope>provided</scope>
186 </dependency>
187 <dependency>
188 <groupId>org.glassfish.jersey.media</groupId>
189 <artifactId>jersey-media-multipart</artifactId>
190 <version>${jersey.version}</version>
191 <scope>provided</scope>
192 </dependency>
193 <dependency>
194 <groupId>org.glassfish.jersey.test-framework</groupId>
195 <artifactId>jersey-test-framework-core</artifactId>
196 <version>${jersey.version}</version>
197 <scope>test</scope>
198 </dependency>
199 <dependency>
200 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
201 <artifactId>jersey-test-framework-provider-jetty</artifactId>
202 <version>${jersey.version}</version>
203 <scope>test</scope>
204 </dependency>
205 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700206 <groupId>org.eclipse.jetty</groupId>
207 <artifactId>jetty-server</artifactId>
208 <version>${jetty.version}</version>
209 <scope>test</scope>
210 </dependency>
211 <dependency>
212 <groupId>org.eclipse.jetty</groupId>
213 <artifactId>jetty-util</artifactId>
214 <version>${jetty.version}</version>
215 </dependency>
216 <dependency>
217 <groupId>org.eclipse.jetty</groupId>
218 <artifactId>jetty-io</artifactId>
219 <version>${jetty.version}</version>
220 </dependency>
221 <dependency>
222 <groupId>org.eclipse.jetty</groupId>
223 <artifactId>jetty-http</artifactId>
224 <version>${jetty.version}</version>
225 </dependency>
226 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700227 <groupId>com.fasterxml.jackson.core</groupId>
228 <artifactId>jackson-databind</artifactId>
229 <version>${jackson.version}</version>
230 <scope>provided</scope>
231 </dependency>
232 <dependency>
233 <groupId>com.fasterxml.jackson.core</groupId>
234 <artifactId>jackson-annotations</artifactId>
235 <version>${jackson.version}</version>
236 <scope>provided</scope>
237 </dependency>
238
239 <!-- OSGi related -->
240 <dependency>
241 <groupId>org.osgi</groupId>
242 <artifactId>org.osgi.core</artifactId>
243 <version>${osgi.version}</version>
244 <scope>provided</scope>
245 </dependency>
246 <dependency>
247 <groupId>org.osgi</groupId>
248 <artifactId>org.osgi.compendium</artifactId>
249 <version>${osgi.version}</version>
250 <scope>provided</scope>
251 </dependency>
252 <dependency>
253 <groupId>org.apache.felix</groupId>
254 <artifactId>org.apache.felix.scr.annotations</artifactId>
255 <version>1.9.12</version>
256 <scope>provided</scope>
257 </dependency>
258 <dependency>
259 <groupId>org.apache.felix</groupId>
260 <artifactId>org.apache.felix.scr</artifactId>
261 <version>1.8.2</version>
262 </dependency>
263
264 <dependency>
265 <groupId>org.apache.karaf.features</groupId>
266 <artifactId>org.apache.karaf.features.core</artifactId>
267 <version>${karaf.version}</version>
268 <scope>provided</scope>
269 </dependency>
270 <dependency>
271 <groupId>org.apache.karaf.system</groupId>
272 <artifactId>org.apache.karaf.system.core</artifactId>
273 <version>${karaf.version}</version>
274 <scope>provided</scope>
275 </dependency>
276 <dependency>
277 <groupId>org.apache.karaf.shell</groupId>
278 <artifactId>org.apache.karaf.shell.console</artifactId>
279 <version>${karaf.version}</version>
280 <scope>provided</scope>
281 </dependency>
282
283 <dependency>
284 <groupId>org.livetribe.slp</groupId>
285 <artifactId>livetribe-slp</artifactId>
286 <version>2.2.1</version>
287 </dependency>
288
289 <dependency>
290 <groupId>com.eclipsesource.minimal-json</groupId>
291 <artifactId>minimal-json</artifactId>
292 <version>0.9.4</version>
293 </dependency>
294 <dependency>
295 <groupId>com.esotericsoftware</groupId>
296 <artifactId>kryo</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700297 <version>4.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700298 </dependency>
299 <dependency>
300 <groupId>com.esotericsoftware</groupId>
301 <artifactId>reflectasm</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700302 <version>1.11.3</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700303 </dependency>
304 <dependency>
305 <groupId>org.ow2.asm</groupId>
306 <artifactId>asm</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700307 <version>5.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700308 </dependency>
309 <dependency>
310 <groupId>com.esotericsoftware</groupId>
311 <artifactId>minlog</artifactId>
312 <version>1.3.0</version>
313 </dependency>
314 <dependency>
315 <groupId>org.objenesis</groupId>
316 <artifactId>objenesis</artifactId>
317 <version>2.2</version>
318 </dependency>
319
320 <!-- Netty related; for now we require both 3.10.x and 4 -->
321 <dependency>
322 <groupId>io.netty</groupId>
323 <artifactId>netty</artifactId>
324 <version>3.10.5.Final</version>
325 </dependency>
326
327 <dependency>
328 <groupId>io.netty</groupId>
329 <artifactId>netty-common</artifactId>
330 <version>${netty4.version}</version>
331 </dependency>
332 <dependency>
333 <groupId>io.netty</groupId>
334 <artifactId>netty-buffer</artifactId>
335 <version>${netty4.version}</version>
336 </dependency>
337 <dependency>
338 <groupId>io.netty</groupId>
339 <artifactId>netty-transport</artifactId>
340 <version>${netty4.version}</version>
341 </dependency>
342 <dependency>
343 <groupId>io.netty</groupId>
344 <artifactId>netty-handler</artifactId>
345 <version>${netty4.version}</version>
346 </dependency>
347
348 <dependency>
349 <groupId>io.netty</groupId>
350 <artifactId>netty-codec</artifactId>
351 <version>${netty4.version}</version>
352 </dependency>
353
354 <dependency>
355 <groupId>io.netty</groupId>
356 <artifactId>netty-transport-native-epoll</artifactId>
357 <version>${netty4.version}</version>
358 <classifier>${os.detected.classifier}</classifier>
359 </dependency>
360
361 <dependency>
Jonathan Hart5dc9a4e2017-01-13 09:09:57 -0800362 <groupId>io.netty</groupId>
363 <artifactId>netty-resolver</artifactId>
364 <version>${netty4.version}</version>
365 </dependency>
366
367 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700368 <groupId>joda-time</groupId>
369 <artifactId>joda-time</artifactId>
370 <version>2.9.3</version>
371 </dependency>
372
373 <dependency>
374 <groupId>com.google.code.findbugs</groupId>
375 <artifactId>jsr305</artifactId>
376 <version>3.0.1</version>
377 </dependency>
378
379 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700380 <groupId>com.google.errorprone</groupId>
381 <artifactId>error_prone_annotations</artifactId>
382 <version>2.0.11</version>
383 </dependency>
384
385 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700386 <groupId>org.onosproject</groupId>
387 <artifactId>openflowj</artifactId>
388 <version>${openflowj.version}</version>
389 <scope>provided</scope>
390 </dependency>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700391
392 <dependency>
393 <groupId>org.onosproject</groupId>
394 <artifactId>onos-yang-model</artifactId>
395 <version>${onos-yang-tools.version}</version>
396 </dependency>
397 <dependency>
398 <groupId>org.onosproject</groupId>
399 <artifactId>onos-yang-runtime</artifactId>
400 <version>${onos-yang-tools.version}</version>
401 </dependency>
Yuta HIGUCHIb8dae872017-06-27 20:06:48 -0700402 <dependency>
403 <groupId>org.onosproject</groupId>
404 <artifactId>onos-yang-serializers-xml</artifactId>
405 <version>${onos-yang-tools.version}</version>
406 </dependency>
407 <dependency>
408 <groupId>org.onosproject</groupId>
409 <artifactId>onos-yang-serializers-json</artifactId>
410 <version>${onos-yang-tools.version}</version>
411 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700412 </dependencies>
413 </dependencyManagement>
414
415 <dependencies>
416 <dependency>
417 <groupId>junit</groupId>
418 <artifactId>junit</artifactId>
419 </dependency>
420 <dependency>
421 <groupId>org.hamcrest</groupId>
422 <artifactId>hamcrest-core</artifactId>
423 </dependency>
424 <dependency>
425 <groupId>org.hamcrest</groupId>
426 <artifactId>hamcrest-library</artifactId>
427 </dependency>
428 <dependency>
429 <groupId>org.slf4j</groupId>
430 <artifactId>slf4j-api</artifactId>
431 </dependency>
432 <dependency>
433 <groupId>org.slf4j</groupId>
434 <artifactId>slf4j-jdk14</artifactId>
435 </dependency>
436 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
437 Class not found: javax.annotation.Nullable
438 The following dependency alleviates this problem, but perhaps
439 it can be better located in the future. -->
440 <dependency>
441 <groupId>com.google.code.findbugs</groupId>
442 <artifactId>jsr305</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700443 </dependency>
444 </dependencies>
445
446 <build>
447 <pluginManagement>
448 <plugins>
449 <plugin>
450 <groupId>org.apache.maven.plugins</groupId>
451 <artifactId>maven-compiler-plugin</artifactId>
452 <!-- TODO: update once following issue is fixed. -->
453 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
454 <version>2.5.1</version>
455 <configuration>
456 <source>1.8</source>
457 <target>1.8</target>
458 </configuration>
459 </plugin>
460
461 <plugin>
462 <groupId>org.apache.maven.plugins</groupId>
463 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700464 <version>2.20</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700465 <configuration>
466 <redirectTestOutputToFile>true</redirectTestOutputToFile>
467 <printSummary>true</printSummary>
468 <excludedGroups>org.onlab.junit.IntegrationTest
469 </excludedGroups>
470 <rerunFailingTestsCount>1</rerunFailingTestsCount>
471 </configuration>
472 </plugin>
473 <plugin>
474 <groupId>org.apache.maven.plugins</groupId>
475 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700476 <version>2.10.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700477 <configuration>
478 <tags>
479 <tag>
480 <name>onos.rsModel</name>
481 <placement>m</placement>
482 <head>Json model for REST api:</head>
483 </tag>
484 </tags>
485 </configuration>
486 </plugin>
487 <plugin>
488 <groupId>org.apache.maven.plugins</groupId>
489 <artifactId>maven-jar-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700490 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700491 <configuration>
492 <skipIfEmpty>true</skipIfEmpty>
493 </configuration>
494 <executions>
495 <execution>
496 <id>default</id>
497 <goals>
498 <goal>test-jar</goal>
499 </goals>
500 </execution>
501 </executions>
502 </plugin>
503
504 <plugin>
505 <groupId>org.apache.maven.plugins</groupId>
506 <artifactId>maven-resources-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700507 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700508 </plugin>
509
510 <plugin>
511 <groupId>org.apache.felix</groupId>
512 <artifactId>maven-bundle-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700513 <version>3.3.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700514 <extensions>true</extensions>
515 <configuration>
516 <niceManifest>true</niceManifest>
517 </configuration>
518 </plugin>
519
520 <plugin>
521 <groupId>org.apache.maven.plugins</groupId>
522 <artifactId>maven-shade-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700523 <version>3.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700524 </plugin>
525
526 <plugin>
527 <groupId>org.apache.felix</groupId>
528 <artifactId>maven-scr-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700529 <version>1.24.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700530 <executions>
531 <execution>
532 <id>generate-scr-srcdescriptor</id>
533 <goals>
534 <goal>scr</goal>
535 </goals>
536 </execution>
537 </executions>
538 <configuration>
539 <supportedProjectTypes>
540 <supportedProjectType>bundle</supportedProjectType>
541 <supportedProjectType>war</supportedProjectType>
542 </supportedProjectTypes>
543 </configuration>
544 </plugin>
545 <plugin>
546 <groupId>org.codehaus.mojo</groupId>
547 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700548 <version>3.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700549 <dependencies>
550 <dependency>
551 <groupId>org.onosproject</groupId>
552 <artifactId>onos-build-conf</artifactId>
553 <version>${onos-build-conf.version}</version>
554 </dependency>
555 </dependencies>
556 <configuration>
557 <effort>Max</effort>
558 <excludeFilterFile>onos/findbugs-suppressions.xml
559 </excludeFilterFile>
560 </configuration>
561 </plugin>
562
563 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
564 <plugin>
565 <groupId>org.onosproject</groupId>
566 <artifactId>onos-maven-plugin</artifactId>
567 <version>${onos-maven-plugin.version}</version>
568 <executions>
569 <execution>
570 <id>cfg</id>
571 <phase>generate-resources</phase>
572 <goals>
573 <goal>cfg</goal>
574 </goals>
575 </execution>
576 <execution>
577 <id>swagger</id>
578 <phase>generate-sources</phase>
579 <goals>
580 <goal>swagger</goal>
581 </goals>
582 </execution>
583 <execution>
584 <id>app</id>
585 <phase>package</phase>
586 <goals>
587 <goal>app</goal>
588 </goals>
589 </execution>
590 </executions>
591 </plugin>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700592
593 <plugin>
594 <groupId>org.onosproject</groupId>
595 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
596 <version>${onos-yang-tools.version}</version>
597 <executions>
598 <execution>
599 <goals>
600 <goal>yang2java</goal>
601 </goals>
602 </execution>
603 </executions>
604 </plugin>
Thomas Vachuska43977572016-06-02 13:48:55 -0700605 </plugins>
606 </pluginManagement>
607
608 <plugins>
609 <plugin>
610 <groupId>org.apache.maven.plugins</groupId>
611 <artifactId>maven-jar-plugin</artifactId>
612 </plugin>
613
614 <plugin>
615 <groupId>org.apache.maven.plugins</groupId>
616 <artifactId>maven-checkstyle-plugin</artifactId>
617 <version>2.17</version>
618 <dependencies>
619 <dependency>
620 <groupId>org.onosproject</groupId>
621 <artifactId>onos-build-conf</artifactId>
622 <version>${onos-build-conf.version}</version>
623 </dependency>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700624 <dependency>
625 <groupId>com.puppycrawl.tools</groupId>
626 <artifactId>checkstyle</artifactId>
627 <version>6.19</version>
628 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700629 </dependencies>
630 <configuration>
631 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
632 <sourceDirectory>${project.build.sourceDirectory}
633 </sourceDirectory>
634 <testSourceDirectory>${project.build.testSourceDirectory}
635 </testSourceDirectory>
636 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
Ray Milkey2d572dd2017-04-14 10:01:24 -0700637 <configLocation>onos/checkstyle-mvn.xml</configLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700638 <suppressionsLocation>onos/suppressions.xml
639 </suppressionsLocation>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700640 <headerLocation>onos/onos-java.header
641 </headerLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700642 <failsOnError>false</failsOnError>
643 <logViolationsToConsole>true</logViolationsToConsole>
Yuta HIGUCHId919d9b2017-06-26 11:10:20 -0700644 <includeTestSourceDirectory>true</includeTestSourceDirectory>
645 <includeResources>false</includeResources>
Thomas Vachuska43977572016-06-02 13:48:55 -0700646 </configuration>
647 <executions>
648 <execution>
649 <id>validate-checkstyle</id>
650 <phase>verify</phase>
651 <goals>
652 <goal>check</goal>
653 </goals>
654 </execution>
655 </executions>
656 </plugin>
657
658 <plugin>
659 <groupId>org.apache.maven.plugins</groupId>
660 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700661 <version>3.8</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700662 <configuration>
663 <excludes>
664 </excludes>
665 <rulesets>
666 <ruleset>onos/pmd.xml</ruleset>
667 </rulesets>
668 </configuration>
669 <executions>
670 <execution>
671 <id>validate-pmd</id>
672 <phase>verify</phase>
673 <goals>
674 <!-- Uncomment this goal to make the build fail on pmd errors -->
675 <!--<goal>check</goal>-->
676 </goals>
677 </execution>
678 </executions>
679 </plugin>
680
681 <plugin>
682 <groupId>org.jacoco</groupId>
683 <artifactId>jacoco-maven-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700684 <version>0.7.9</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700685 <executions>
686 <execution>
687 <id>default-prepare-agent</id>
688 <goals>
689 <goal>prepare-agent</goal>
690 </goals>
691 </execution>
692 <execution>
693 <id>default-report</id>
694 <phase>prepare-package</phase>
695 <goals>
696 <goal>report</goal>
697 </goals>
698 </execution>
699 </executions>
700 </plugin>
701 </plugins>
702 </build>
703
704 <reporting>
705 <plugins>
706 <plugin>
707 <groupId>org.apache.maven.plugins</groupId>
708 <artifactId>maven-checkstyle-plugin</artifactId>
709 <configuration>
710 <configLocation>onos/checkstyle.xml</configLocation>
711 </configuration>
712 </plugin>
713
714 <plugin>
715 <groupId>org.apache.maven.plugins</groupId>
716 <artifactId>maven-pmd-plugin</artifactId>
717 <configuration>
718 <excludes>
719 </excludes>
720 <rulesets>
721 <ruleset>onos/pmd.xml</ruleset>
722 </rulesets>
723 </configuration>
724 </plugin>
725 </plugins>
726 </reporting>
727</project>