blob: 3f65fa093bf0a0afabfece2cda2b3ab50fc89aac [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 Milkey74631932017-06-23 16:46:27 -070032 <version>1.11-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 Milkey74631932017-06-23 16:46:27 -070039 <onos-build-conf.version>1.11-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 Milkey86d1b0a2017-05-16 15:15:08 -070043 <onos-yang-tools.version>2.1</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>
Thomas Vachuska43977572016-06-02 13:48:55 -0700402 </dependencies>
403 </dependencyManagement>
404
405 <dependencies>
406 <dependency>
407 <groupId>junit</groupId>
408 <artifactId>junit</artifactId>
409 </dependency>
410 <dependency>
411 <groupId>org.hamcrest</groupId>
412 <artifactId>hamcrest-core</artifactId>
413 </dependency>
414 <dependency>
415 <groupId>org.hamcrest</groupId>
416 <artifactId>hamcrest-library</artifactId>
417 </dependency>
418 <dependency>
419 <groupId>org.slf4j</groupId>
420 <artifactId>slf4j-api</artifactId>
421 </dependency>
422 <dependency>
423 <groupId>org.slf4j</groupId>
424 <artifactId>slf4j-jdk14</artifactId>
425 </dependency>
426 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
427 Class not found: javax.annotation.Nullable
428 The following dependency alleviates this problem, but perhaps
429 it can be better located in the future. -->
430 <dependency>
431 <groupId>com.google.code.findbugs</groupId>
432 <artifactId>jsr305</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700433 </dependency>
434 </dependencies>
435
436 <build>
437 <pluginManagement>
438 <plugins>
439 <plugin>
440 <groupId>org.apache.maven.plugins</groupId>
441 <artifactId>maven-compiler-plugin</artifactId>
442 <!-- TODO: update once following issue is fixed. -->
443 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
444 <version>2.5.1</version>
445 <configuration>
446 <source>1.8</source>
447 <target>1.8</target>
448 </configuration>
449 </plugin>
450
451 <plugin>
452 <groupId>org.apache.maven.plugins</groupId>
453 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700454 <version>2.20</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700455 <configuration>
456 <redirectTestOutputToFile>true</redirectTestOutputToFile>
457 <printSummary>true</printSummary>
458 <excludedGroups>org.onlab.junit.IntegrationTest
459 </excludedGroups>
460 <rerunFailingTestsCount>1</rerunFailingTestsCount>
461 </configuration>
462 </plugin>
463 <plugin>
464 <groupId>org.apache.maven.plugins</groupId>
465 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700466 <version>2.10.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700467 <configuration>
468 <tags>
469 <tag>
470 <name>onos.rsModel</name>
471 <placement>m</placement>
472 <head>Json model for REST api:</head>
473 </tag>
474 </tags>
475 </configuration>
476 </plugin>
477 <plugin>
478 <groupId>org.apache.maven.plugins</groupId>
479 <artifactId>maven-jar-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700480 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700481 <configuration>
482 <skipIfEmpty>true</skipIfEmpty>
483 </configuration>
484 <executions>
485 <execution>
486 <id>default</id>
487 <goals>
488 <goal>test-jar</goal>
489 </goals>
490 </execution>
491 </executions>
492 </plugin>
493
494 <plugin>
495 <groupId>org.apache.maven.plugins</groupId>
496 <artifactId>maven-resources-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700497 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700498 </plugin>
499
500 <plugin>
501 <groupId>org.apache.felix</groupId>
502 <artifactId>maven-bundle-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700503 <version>3.3.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700504 <extensions>true</extensions>
505 <configuration>
506 <niceManifest>true</niceManifest>
507 </configuration>
508 </plugin>
509
510 <plugin>
511 <groupId>org.apache.maven.plugins</groupId>
512 <artifactId>maven-shade-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700513 <version>3.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700514 </plugin>
515
516 <plugin>
517 <groupId>org.apache.felix</groupId>
518 <artifactId>maven-scr-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700519 <version>1.24.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700520 <executions>
521 <execution>
522 <id>generate-scr-srcdescriptor</id>
523 <goals>
524 <goal>scr</goal>
525 </goals>
526 </execution>
527 </executions>
528 <configuration>
529 <supportedProjectTypes>
530 <supportedProjectType>bundle</supportedProjectType>
531 <supportedProjectType>war</supportedProjectType>
532 </supportedProjectTypes>
533 </configuration>
534 </plugin>
535 <plugin>
536 <groupId>org.codehaus.mojo</groupId>
537 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700538 <version>3.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700539 <dependencies>
540 <dependency>
541 <groupId>org.onosproject</groupId>
542 <artifactId>onos-build-conf</artifactId>
543 <version>${onos-build-conf.version}</version>
544 </dependency>
545 </dependencies>
546 <configuration>
547 <effort>Max</effort>
548 <excludeFilterFile>onos/findbugs-suppressions.xml
549 </excludeFilterFile>
550 </configuration>
551 </plugin>
552
553 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
554 <plugin>
555 <groupId>org.onosproject</groupId>
556 <artifactId>onos-maven-plugin</artifactId>
557 <version>${onos-maven-plugin.version}</version>
558 <executions>
559 <execution>
560 <id>cfg</id>
561 <phase>generate-resources</phase>
562 <goals>
563 <goal>cfg</goal>
564 </goals>
565 </execution>
566 <execution>
567 <id>swagger</id>
568 <phase>generate-sources</phase>
569 <goals>
570 <goal>swagger</goal>
571 </goals>
572 </execution>
573 <execution>
574 <id>app</id>
575 <phase>package</phase>
576 <goals>
577 <goal>app</goal>
578 </goals>
579 </execution>
580 </executions>
581 </plugin>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700582
583 <plugin>
584 <groupId>org.onosproject</groupId>
585 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
586 <version>${onos-yang-tools.version}</version>
587 <executions>
588 <execution>
589 <goals>
590 <goal>yang2java</goal>
591 </goals>
592 </execution>
593 </executions>
594 </plugin>
Thomas Vachuska43977572016-06-02 13:48:55 -0700595 </plugins>
596 </pluginManagement>
597
598 <plugins>
599 <plugin>
600 <groupId>org.apache.maven.plugins</groupId>
601 <artifactId>maven-jar-plugin</artifactId>
602 </plugin>
603
604 <plugin>
605 <groupId>org.apache.maven.plugins</groupId>
606 <artifactId>maven-checkstyle-plugin</artifactId>
607 <version>2.17</version>
608 <dependencies>
609 <dependency>
610 <groupId>org.onosproject</groupId>
611 <artifactId>onos-build-conf</artifactId>
612 <version>${onos-build-conf.version}</version>
613 </dependency>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700614 <dependency>
615 <groupId>com.puppycrawl.tools</groupId>
616 <artifactId>checkstyle</artifactId>
617 <version>6.19</version>
618 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700619 </dependencies>
620 <configuration>
621 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
622 <sourceDirectory>${project.build.sourceDirectory}
623 </sourceDirectory>
624 <testSourceDirectory>${project.build.testSourceDirectory}
625 </testSourceDirectory>
626 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
Ray Milkey2d572dd2017-04-14 10:01:24 -0700627 <configLocation>onos/checkstyle-mvn.xml</configLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700628 <suppressionsLocation>onos/suppressions.xml
629 </suppressionsLocation>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700630 <headerLocation>onos/onos-java.header
631 </headerLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700632 <failsOnError>false</failsOnError>
633 <logViolationsToConsole>true</logViolationsToConsole>
Yuta HIGUCHId919d9b2017-06-26 11:10:20 -0700634 <includeTestSourceDirectory>true</includeTestSourceDirectory>
635 <includeResources>false</includeResources>
Thomas Vachuska43977572016-06-02 13:48:55 -0700636 </configuration>
637 <executions>
638 <execution>
639 <id>validate-checkstyle</id>
640 <phase>verify</phase>
641 <goals>
642 <goal>check</goal>
643 </goals>
644 </execution>
645 </executions>
646 </plugin>
647
648 <plugin>
649 <groupId>org.apache.maven.plugins</groupId>
650 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700651 <version>3.8</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700652 <configuration>
653 <excludes>
654 </excludes>
655 <rulesets>
656 <ruleset>onos/pmd.xml</ruleset>
657 </rulesets>
658 </configuration>
659 <executions>
660 <execution>
661 <id>validate-pmd</id>
662 <phase>verify</phase>
663 <goals>
664 <!-- Uncomment this goal to make the build fail on pmd errors -->
665 <!--<goal>check</goal>-->
666 </goals>
667 </execution>
668 </executions>
669 </plugin>
670
671 <plugin>
672 <groupId>org.jacoco</groupId>
673 <artifactId>jacoco-maven-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700674 <version>0.7.9</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700675 <executions>
676 <execution>
677 <id>default-prepare-agent</id>
678 <goals>
679 <goal>prepare-agent</goal>
680 </goals>
681 </execution>
682 <execution>
683 <id>default-report</id>
684 <phase>prepare-package</phase>
685 <goals>
686 <goal>report</goal>
687 </goals>
688 </execution>
689 </executions>
690 </plugin>
691 </plugins>
692 </build>
693
694 <reporting>
695 <plugins>
696 <plugin>
697 <groupId>org.apache.maven.plugins</groupId>
698 <artifactId>maven-checkstyle-plugin</artifactId>
699 <configuration>
700 <configLocation>onos/checkstyle.xml</configLocation>
701 </configuration>
702 </plugin>
703
704 <plugin>
705 <groupId>org.apache.maven.plugins</groupId>
706 <artifactId>maven-pmd-plugin</artifactId>
707 <configuration>
708 <excludes>
709 </excludes>
710 <rulesets>
711 <ruleset>onos/pmd.xml</ruleset>
712 </rulesets>
713 </configuration>
714 </plugin>
715 </plugins>
716 </reporting>
717</project>