blob: 28b387e3c8ff37a93ea2ff195ef1c93fee2c7d69 [file] [log] [blame]
alshabib522d9872014-08-15 10:35:16 -07001<?xml version="1.0" encoding="UTF-8"?>
tom09419512014-08-15 11:28:43 -07002<project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5 <modelVersion>4.0.0</modelVersion>
alshabib522d9872014-08-15 10:35:16 -07006
Thomas Vachuskaabfe8d32014-10-23 15:59:32 -07007 <prerequisites>
8 <maven>3.0.0</maven>
9 </prerequisites>
10
tom0eb04ca2014-08-25 14:34:51 -070011 <groupId>org.onlab.onos</groupId>
tom09419512014-08-15 11:28:43 -070012 <artifactId>onos</artifactId>
13 <packaging>pom</packaging>
14 <version>1.0.0-SNAPSHOT</version>
alshabib522d9872014-08-15 10:35:16 -070015
tom0eb04ca2014-08-25 14:34:51 -070016 <description>Open Networking Operating System root project</description>
tom09419512014-08-15 11:28:43 -070017
18 <modules>
tom0eb04ca2014-08-25 14:34:51 -070019 <module>tools/build/conf</module>
20 <module>utils</module>
tome2dc27a2014-09-09 12:41:21 -070021 <module>core</module>
tom0eb04ca2014-08-25 14:34:51 -070022 <module>web</module>
23 <module>cli</module>
24 <module>providers</module>
tomf8b8d672014-09-17 13:07:23 -070025 <module>openflow</module>
tom8bb16062014-09-12 14:47:46 -070026 <module>apps</module>
tom09419512014-08-15 11:28:43 -070027 <module>features</module>
tomaa49a1e2014-09-12 23:11:46 -070028 <module>tools/package/branding</module>
tom09419512014-08-15 11:28:43 -070029 </modules>
30
31 <url>http://onlab.us/</url>
32
33 <licenses>
34 <license>
tom09419512014-08-15 11:28:43 -070035 <name>Apache License, Version 2.0</name>
36 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
37 </license>
38 </licenses>
39
Yuta HIGUCHIe2efe722014-09-19 14:37:34 -070040 <properties>
41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -070042 <netty4.version>4.0.23.Final</netty4.version>
Yuta HIGUCHI58e37272014-11-05 14:03:10 -080043 <copycat.version>0.4.0-SNAPSHOT</copycat.version>
Yuta HIGUCHIe2efe722014-09-19 14:37:34 -070044 </properties>
45
Yuta HIGUCHI275fb6b2014-11-04 08:33:13 -080046 <repositories>
47 <!-- FIXME: Repository for copycat, Loxigen + optical experimenter.
48 Decide how to deal with these before release. -->
49 <repository>
50 <id>onlab-temp</id>
51 <name>ON.lab temporary repository</name>
Thomas Vachuska01a6ec02014-11-05 09:54:09 -080052 <url>http://mavenrepo.onlab.us:8081/nexus/content/groups/public
53 </url>
Yuta HIGUCHI275fb6b2014-11-04 08:33:13 -080054 <snapshots>
55 <enabled>true</enabled>
56 </snapshots>
57 </repository>
58 </repositories>
59
60
tom0eb04ca2014-08-25 14:34:51 -070061 <dependencyManagement>
62 <dependencies>
63 <dependency>
64 <groupId>junit</groupId>
65 <artifactId>junit</artifactId>
66 <version>4.11</version>
67 <scope>test</scope>
68 </dependency>
tom09419512014-08-15 11:28:43 -070069
tom0eb04ca2014-08-25 14:34:51 -070070 <dependency>
Brian O'Connorf3d06162014-10-02 15:54:12 -070071 <groupId>org.hamcrest</groupId>
72 <artifactId>hamcrest-core</artifactId>
73 <version>1.3</version>
74 <scope>test</scope>
75 </dependency>
76 <dependency>
77 <groupId>org.hamcrest</groupId>
78 <artifactId>hamcrest-library</artifactId>
79 <version>1.3</version>
80 <scope>test</scope>
81 </dependency>
82
83 <dependency>
tom0eb04ca2014-08-25 14:34:51 -070084 <groupId>org.slf4j</groupId>
85 <artifactId>slf4j-api</artifactId>
86 <version>1.7.6</version>
87 <scope>provided</scope>
88 </dependency>
89
90 <dependency>
91 <groupId>org.slf4j</groupId>
pankajb57fae22014-10-06 18:28:21 -070092 <artifactId>slf4j-core</artifactId>
93 <version>1.7.6</version>
94 <scope>test</scope>
95 </dependency>
96
97 <dependency>
98 <groupId>org.slf4j</groupId>
tom0eb04ca2014-08-25 14:34:51 -070099 <artifactId>slf4j-jdk14</artifactId>
100 <version>1.7.6</version>
101 <scope>test</scope>
102 </dependency>
103
104 <dependency>
105 <groupId>com.google.guava</groupId>
106 <artifactId>guava</artifactId>
tomeadbb462014-09-07 16:10:19 -0700107 <version>18.0</version>
tom0eb04ca2014-08-25 14:34:51 -0700108 </dependency>
109
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700110 <dependency>
Madan Jampania185d862014-09-30 11:32:31 -0700111 <groupId>io.netty</groupId>
alshabibdf652ad2014-09-09 11:53:19 -0700112 <artifactId>netty</artifactId>
113 <version>3.9.0.Final</version>
114 </dependency>
115
tomde8d9682014-08-27 01:11:43 -0700116 <dependency>
117 <groupId>com.google.guava</groupId>
118 <artifactId>guava-testlib</artifactId>
tomeadbb462014-09-07 16:10:19 -0700119 <version>18.0</version>
tomde8d9682014-08-27 01:11:43 -0700120 <scope>test</scope>
121 </dependency>
122
tom6d2a43e2014-09-08 01:50:20 -0700123 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700124 <groupId>com.googlecode.concurrent-trees</groupId>
125 <artifactId>concurrent-trees</artifactId>
126 <version>2.4.0</version>
Jonathan Hart335ef462014-10-16 08:20:46 -0700127 </dependency>
128
129 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700130 <groupId>commons-lang</groupId>
tom6d2a43e2014-09-08 01:50:20 -0700131 <artifactId>commons-lang</artifactId>
132 <version>2.6</version>
133 </dependency>
tomde8d9682014-08-27 01:11:43 -0700134
tom66a7eb22014-09-22 11:58:56 -0700135 <dependency>
136 <groupId>org.apache.commons</groupId>
137 <artifactId>commons-lang3</artifactId>
138 <version>3.3.2</version>
139 </dependency>
140
Brian O'Connorf3d06162014-10-02 15:54:12 -0700141 <dependency>
142 <groupId>org.codehaus.jackson</groupId>
143 <artifactId>jackson-core-asl</artifactId>
144 <version>1.9.13</version>
145 </dependency>
146 <dependency>
147 <groupId>org.codehaus.jackson</groupId>
148 <artifactId>jackson-mapper-asl</artifactId>
149 <version>1.9.13</version>
150 </dependency>
Jonathan Hart74f9c3b2014-09-29 20:03:50 -0700151
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700152 <dependency>
153 <groupId>org.easymock</groupId>
154 <artifactId>easymock</artifactId>
155 <version>3.2</version>
156 <scope>test</scope>
157 </dependency>
tom66a7eb22014-09-22 11:58:56 -0700158
tom0eb04ca2014-08-25 14:34:51 -0700159 <!-- Web related -->
160 <dependency>
161 <groupId>com.sun.jersey</groupId>
162 <artifactId>jersey-servlet</artifactId>
163 <version>1.18.1</version>
164 <scope>provided</scope>
165 </dependency>
166 <dependency>
167 <groupId>com.fasterxml.jackson.core</groupId>
168 <artifactId>jackson-databind</artifactId>
169 <version>2.4.2</version>
170 <scope>provided</scope>
171 </dependency>
172 <dependency>
173 <groupId>com.fasterxml.jackson.core</groupId>
174 <artifactId>jackson-annotations</artifactId>
175 <version>2.4.2</version>
176 <scope>provided</scope>
177 </dependency>
178
179 <!-- OSGi related -->
180 <dependency>
181 <groupId>org.osgi</groupId>
182 <artifactId>org.osgi.core</artifactId>
183 <version>4.3.1</version>
184 <scope>provided</scope>
185 </dependency>
186 <dependency>
tomc16656f2014-10-15 18:30:31 -0700187 <groupId>org.osgi</groupId>
188 <artifactId>org.osgi.compendium</artifactId>
189 <version>4.3.1</version>
190 <scope>provided</scope>
191 </dependency>
192 <dependency>
tom0eb04ca2014-08-25 14:34:51 -0700193 <groupId>org.apache.felix</groupId>
194 <artifactId>org.apache.felix.scr.annotations</artifactId>
195 <version>1.9.8</version>
196 <scope>provided</scope>
197 </dependency>
198 <dependency>
199 <groupId>org.apache.karaf.shell</groupId>
200 <artifactId>org.apache.karaf.shell.console</artifactId>
Pavlin Radoslavovc5227052014-11-04 10:55:19 -0800201 <version>3.0.2</version>
tom0eb04ca2014-08-25 14:34:51 -0700202 <scope>provided</scope>
203 </dependency>
204
Yuta HIGUCHI24a086b2014-09-21 23:28:41 -0700205 <dependency>
tom14dc4d02014-09-26 12:43:14 -0700206 <groupId>org.livetribe.slp</groupId>
207 <artifactId>livetribe-slp</artifactId>
208 <version>2.2.1</version>
209 </dependency>
210
211 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700212 <groupId>com.hazelcast</groupId>
213 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI9eedb462014-10-23 12:45:14 -0700214 <version>3.3.2</version>
Yuta HIGUCHI24a086b2014-09-21 23:28:41 -0700215 </dependency>
216 <dependency>
tomdc66b382014-09-22 17:05:47 -0700217 <groupId>com.eclipsesource.minimal-json</groupId>
218 <artifactId>minimal-json</artifactId>
219 <version>0.9.1</version>
220 </dependency>
221 <dependency>
Yuta HIGUCHI8ee7d4c2014-10-09 23:09:41 -0700222 <groupId>com.esotericsoftware</groupId>
223 <artifactId>kryo</artifactId>
224 <version>3.0.0</version>
225 </dependency>
226 <dependency>
227 <groupId>com.esotericsoftware</groupId>
228 <artifactId>reflectasm</artifactId>
229 <version>1.10.0</version>
230 <type>bundle</type>
231 </dependency>
232 <dependency>
233 <groupId>org.ow2.asm</groupId>
234 <artifactId>asm</artifactId>
235 <version>4.2</version>
Yuta HIGUCHI24a086b2014-09-21 23:28:41 -0700236 </dependency>
237 <dependency>
tom66a7eb22014-09-22 11:58:56 -0700238 <groupId>com.esotericsoftware</groupId>
239 <artifactId>minlog</artifactId>
240 <version>1.3.0</version>
241 </dependency>
242 <dependency>
243 <groupId>org.objenesis</groupId>
244 <artifactId>objenesis</artifactId>
245 <version>2.1</version>
246 </dependency>
Yuta HIGUCHI24a086b2014-09-21 23:28:41 -0700247
tom0eb04ca2014-08-25 14:34:51 -0700248 <!-- ONOS related -->
249 <dependency>
250 <groupId>org.onlab.onos</groupId>
tom5f38b3a2014-08-27 23:50:54 -0700251 <artifactId>onlab-misc</artifactId>
252 <version>${project.version}</version>
253 </dependency>
tom931af4e2014-09-13 12:00:57 -0700254 <dependency>
255 <groupId>org.onlab.onos</groupId>
tomf110fff2014-09-26 00:38:18 -0700256 <artifactId>onlab-nio</artifactId>
257 <version>${project.version}</version>
258 </dependency>
259 <dependency>
260 <groupId>org.onlab.onos</groupId>
tom0872a172014-09-23 11:24:26 -0700261 <artifactId>onlab-osgi</artifactId>
262 <version>${project.version}</version>
263 </dependency>
264 <dependency>
265 <groupId>org.onlab.onos</groupId>
tom931af4e2014-09-13 12:00:57 -0700266 <artifactId>onlab-junit</artifactId>
Pavlin Radoslavovd26f57a2014-10-23 17:19:45 -0700267 <version>${project.version}</version>
tom931af4e2014-09-13 12:00:57 -0700268 <scope>test</scope>
269 </dependency>
tom5f38b3a2014-08-27 23:50:54 -0700270
271 <dependency>
272 <groupId>org.onlab.onos</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700273 <artifactId>onos-api</artifactId>
274 <version>${project.version}</version>
275 </dependency>
276 <dependency>
277 <groupId>org.onlab.onos</groupId>
tom61359e92014-09-16 15:50:27 -0700278 <artifactId>onos-api</artifactId>
279 <version>${project.version}</version>
280 <classifier>tests</classifier>
281 <scope>test</scope>
282 </dependency>
283
284 <dependency>
285 <groupId>org.onlab.onos</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700286 <artifactId>onos-of-api</artifactId>
287 <version>${project.version}</version>
288 </dependency>
Jonathan Hart335ef462014-10-16 08:20:46 -0700289
290 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700291 <groupId>org.onlab.onos</groupId>
292 <artifactId>onlab-thirdparty</artifactId>
293 <version>${project.version}</version>
Jonathan Hart335ef462014-10-16 08:20:46 -0700294 </dependency>
295
tom61359e92014-09-16 15:50:27 -0700296 <dependency>
297 <groupId>org.onlab.onos</groupId>
298 <artifactId>onos-of-api</artifactId>
299 <version>${project.version}</version>
300 <classifier>tests</classifier>
301 <scope>test</scope>
302 </dependency>
Yuta HIGUCHI707a7e62014-10-02 16:35:49 -0700303 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700304 <groupId>commons-pool</groupId>
305 <artifactId>commons-pool</artifactId>
306 <version>1.6</version>
Yuta HIGUCHI707a7e62014-10-02 16:35:49 -0700307 </dependency>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700308 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700309 <groupId>io.netty</groupId>
310 <artifactId>netty-common</artifactId>
311 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700312 </dependency>
313 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700314 <groupId>io.netty</groupId>
315 <artifactId>netty-buffer</artifactId>
316 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700317 </dependency>
318 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700319 <groupId>io.netty</groupId>
320 <artifactId>netty-transport</artifactId>
321 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700322 </dependency>
323 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700324 <groupId>io.netty</groupId>
325 <artifactId>netty-handler</artifactId>
326 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700327 </dependency>
328 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700329 <groupId>io.netty</groupId>
330 <artifactId>netty-codec</artifactId>
331 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700332 </dependency>
Madan Jampani824a7c12014-10-21 09:46:15 -0700333 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700334 <groupId>io.netty</groupId>
335 <artifactId>netty-transport-native-epoll</artifactId>
336 <version>${netty4.version}</version>
Madan Jampani1c7b8782014-11-03 12:14:29 -0800337 <classifier>${os.detected.classifier}</classifier>
Madan Jampani824a7c12014-10-21 09:46:15 -0700338 </dependency>
Yuta HIGUCHIb87ef952014-10-28 23:34:23 -0700339 <dependency>
340 <groupId>joda-time</groupId>
341 <artifactId>joda-time</artifactId>
342 <version>2.5</version>
343 </dependency>
tom0eb04ca2014-08-25 14:34:51 -0700344 </dependencies>
345 </dependencyManagement>
346
347 <dependencies>
348 <dependency>
349 <groupId>junit</groupId>
350 <artifactId>junit</artifactId>
351 </dependency>
352 <dependency>
Brian O'Connorf3d06162014-10-02 15:54:12 -0700353 <groupId>org.hamcrest</groupId>
354 <artifactId>hamcrest-core</artifactId>
355 </dependency>
356 <dependency>
357 <groupId>org.hamcrest</groupId>
358 <artifactId>hamcrest-library</artifactId>
359 </dependency>
360 <dependency>
tom0eb04ca2014-08-25 14:34:51 -0700361 <groupId>org.slf4j</groupId>
Yuta HIGUCHI0390ffb2014-10-09 23:45:16 -0700362 <artifactId>slf4j-api</artifactId>
363 </dependency>
364 <dependency>
365 <groupId>org.slf4j</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700366 <artifactId>slf4j-jdk14</artifactId>
367 </dependency>
368 </dependencies>
tom09419512014-08-15 11:28:43 -0700369
370 <build>
371 <pluginManagement>
372 <plugins>
373 <plugin>
374 <groupId>org.apache.maven.plugins</groupId>
375 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHIea90aa62014-10-13 15:57:55 -0700376 <!-- TODO: update once following issue is fixed. -->
377 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
378 <version>2.5.1</version>
tom09419512014-08-15 11:28:43 -0700379 <configuration>
Yuta HIGUCHIf2548cb2014-11-03 18:02:25 -0800380 <source>1.8</source>
381 <target>1.8</target>
tom09419512014-08-15 11:28:43 -0700382 </configuration>
383 </plugin>
384
385 <plugin>
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-surefire-plugin</artifactId>
388 <version>2.17</version>
tom64888122014-08-27 21:47:46 -0700389 <configuration>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700390 <redirectTestOutputToFile>true
391 </redirectTestOutputToFile>
tom64888122014-08-27 21:47:46 -0700392 <printSummary>true</printSummary>
Pingping32fa30c2014-10-23 15:24:26 -0700393 <excludedGroups>org.onlab.junit.IntegrationTest</excludedGroups>
tom64888122014-08-27 21:47:46 -0700394 </configuration>
tom09419512014-08-15 11:28:43 -0700395 </plugin>
396
397 <plugin>
398 <groupId>org.apache.maven.plugins</groupId>
399 <artifactId>maven-jar-plugin</artifactId>
400 <version>2.3.1</version>
401 <executions>
402 <execution>
403 <phase>package</phase>
404 <goals>
405 <goal>test-jar</goal>
406 </goals>
407 </execution>
408 </executions>
409 </plugin>
410
411 <plugin>
tom0eb04ca2014-08-25 14:34:51 -0700412 <groupId>org.apache.maven.plugins</groupId>
413 <artifactId>maven-resources-plugin</artifactId>
414 <version>2.6</version>
415 </plugin>
416
417 <plugin>
tom09419512014-08-15 11:28:43 -0700418 <groupId>org.apache.felix</groupId>
419 <artifactId>maven-bundle-plugin</artifactId>
Madan Jampani08822c42014-11-04 17:17:46 -0800420 <version>2.5.3</version>
tom09419512014-08-15 11:28:43 -0700421 <extensions>true</extensions>
422 </plugin>
423
424 <plugin>
Thomas Vachuska01a6ec02014-11-05 09:54:09 -0800425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-shade-plugin</artifactId>
427 <version>2.3</version>
428 </plugin>
429
430 <plugin>
Yuta HIGUCHIcbc587c2014-11-04 10:28:09 -0800431 <groupId>org.codehaus.mojo</groupId>
432 <artifactId>findbugs-maven-plugin</artifactId>
433 <version>3.0.0</version>
434 </plugin>
435
436 <plugin>
tom09419512014-08-15 11:28:43 -0700437 <groupId>org.apache.felix</groupId>
438 <artifactId>maven-scr-plugin</artifactId>
Yuta HIGUCHIf2548cb2014-11-03 18:02:25 -0800439 <version>1.20.0</version>
tom09419512014-08-15 11:28:43 -0700440 <executions>
441 <execution>
442 <id>generate-scr-srcdescriptor</id>
443 <goals>
444 <goal>scr</goal>
445 </goals>
446 </execution>
447 </executions>
448 <configuration>
449 <supportedProjectTypes>
450 <supportedProjectType>bundle</supportedProjectType>
451 <supportedProjectType>war</supportedProjectType>
452 </supportedProjectTypes>
453 </configuration>
454 </plugin>
455
tom09419512014-08-15 11:28:43 -0700456 <!-- TODO: add findbugs plugin for static code analysis; for explicit invocation only -->
Brian O'Connorf3d06162014-10-02 15:54:12 -0700457 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
458 <plugin>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700459 <groupId>org.eclipse.m2e</groupId>
460 <artifactId>lifecycle-mapping</artifactId>
461 <version>1.0.0</version>
462 <configuration>
463 <lifecycleMappingMetadata>
464 <pluginExecutions>
465 <pluginExecution>
466 <pluginExecutionFilter>
467 <groupId>org.jacoco</groupId>
468 <artifactId>
469 jacoco-maven-plugin
470 </artifactId>
471 <versionRange>
472 [0.7.1.201405082137,)
473 </versionRange>
474 <goals>
475 <goal>prepare-agent</goal>
476 </goals>
477 </pluginExecutionFilter>
478 <action>
479 <ignore></ignore>
480 </action>
481 </pluginExecution>
482 </pluginExecutions>
483 </lifecycleMappingMetadata>
484 </configuration>
Brian O'Connorf3d06162014-10-02 15:54:12 -0700485 </plugin>
tom09419512014-08-15 11:28:43 -0700486 </plugins>
tom09419512014-08-15 11:28:43 -0700487 </pluginManagement>
tom0eb04ca2014-08-25 14:34:51 -0700488
489 <plugins>
490 <plugin>
491 <groupId>org.apache.maven.plugins</groupId>
tome33cc1a2014-08-25 21:59:41 -0700492 <artifactId>maven-jar-plugin</artifactId>
493 </plugin>
494
495 <plugin>
496 <groupId>org.apache.maven.plugins</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700497 <artifactId>maven-checkstyle-plugin</artifactId>
Yuta HIGUCHIee0ae6c2014-10-18 18:11:57 -0700498 <version>2.13</version>
tom0eb04ca2014-08-25 14:34:51 -0700499 <dependencies>
500 <dependency>
501 <groupId>org.onlab.tools</groupId>
502 <artifactId>onos-build-conf</artifactId>
503 <version>1.0</version>
504 </dependency>
Madan Jampani08822c42014-11-04 17:17:46 -0800505 <!-- For Java 8 lambda support-->
506 <dependency>
507 <groupId>com.puppycrawl.tools</groupId>
508 <artifactId>checkstyle</artifactId>
509 <version>5.9</version>
510 </dependency>
tom0eb04ca2014-08-25 14:34:51 -0700511 </dependencies>
512 <configuration>
Toshio Koided7d96412014-11-05 11:56:07 -0800513 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
514 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
515 <testSourceDirectory>${project.build.testSourceDirectory}</testSourceDirectory>
516 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
tom0eb04ca2014-08-25 14:34:51 -0700517 <configLocation>onos/checkstyle.xml</configLocation>
518 <suppressionsLocation>onos/suppressions.xml
519 </suppressionsLocation>
520 <failsOnError>false</failsOnError>
521 <logViolationsToConsole>true</logViolationsToConsole>
522 <includeTestSourceDirectory>true
523 </includeTestSourceDirectory>
524 </configuration>
525 <executions>
526 <execution>
527 <id>validate-checkstyle</id>
528 <phase>verify</phase>
529 <goals>
530 <goal>check</goal>
531 </goals>
532 </execution>
533 </executions>
534 </plugin>
535
536 <plugin>
tom50a76dd2014-09-02 15:18:35 -0700537 <groupId>org.apache.maven.plugins</groupId>
538 <artifactId>maven-pmd-plugin</artifactId>
539 <version>3.2</version>
540 <configuration>
541 <excludes>
tom50a76dd2014-09-02 15:18:35 -0700542 </excludes>
543 <rulesets>
544 <ruleset>onos/pmd.xml</ruleset>
545 </rulesets>
546 </configuration>
547 <executions>
548 <execution>
549 <id>validate-pmd</id>
550 <phase>verify</phase>
551 <goals>
552 <!-- Uncomment this goal to make the build fail on pmd errors -->
553 <!--<goal>check</goal>-->
554 </goals>
555 </execution>
556 </executions>
557 </plugin>
558
559 <plugin>
tom4f3b18b2014-08-28 14:38:47 -0700560 <groupId>org.jacoco</groupId>
561 <artifactId>jacoco-maven-plugin</artifactId>
562 <version>0.7.1.201405082137</version>
563 <executions>
564 <execution>
565 <id>default-prepare-agent</id>
566 <goals>
567 <goal>prepare-agent</goal>
568 </goals>
569 </execution>
570 <execution>
571 <id>default-report</id>
572 <phase>prepare-package</phase>
573 <goals>
574 <goal>report</goal>
575 </goals>
576 </execution>
577 </executions>
578 </plugin>
tom0eb04ca2014-08-25 14:34:51 -0700579 </plugins>
tom09419512014-08-15 11:28:43 -0700580 </build>
alshabib522d9872014-08-15 10:35:16 -0700581
tom0eb04ca2014-08-25 14:34:51 -0700582 <reporting>
583 <plugins>
584 <plugin>
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-checkstyle-plugin</artifactId>
587 <version>2.12.1</version>
588 <configuration>
589 <configLocation>onos/checkstyle.xml</configLocation>
590 </configuration>
591 </plugin>
tom50a76dd2014-09-02 15:18:35 -0700592
593 <plugin>
594 <groupId>org.apache.maven.plugins</groupId>
595 <artifactId>maven-pmd-plugin</artifactId>
596 <version>3.2</version>
597 <configuration>
598 <excludes>
tom50a76dd2014-09-02 15:18:35 -0700599 </excludes>
600 <rulesets>
601 <ruleset>onos/pmd.xml</ruleset>
602 </rulesets>
603 </configuration>
604 </plugin>
tom0eb04ca2014-08-25 14:34:51 -0700605 </plugins>
tom0eb04ca2014-08-25 14:34:51 -0700606 </reporting>
alshabib522d9872014-08-15 10:35:16 -0700607</project>