blob: 6840723cdd79f3ff926da55f0a6be72d08d68eaf [file] [log] [blame]
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -07001<?xml version="1.0"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4 <prerequisites>
5 <maven>3.0.4</maven>
6 </prerequisites>
7 <groupId>net.onrc.onos</groupId>
Pankaj Berdebbd38612013-06-22 05:59:12 -07008 <artifactId>onos</artifactId>
Yuta HIGUCHI43653222014-06-17 18:23:32 -07009 <version>0.3.0-SNAPSHOT</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070010 <packaging>jar</packaging>
Yuta HIGUCHIf232d0f2014-04-16 09:23:02 -070011 <name>ONOS</name>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070012 <url>http://onlab.us/</url>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -070013 <licenses>
14 <license>
15 <name>Apache License, Version 2.0</name>
16 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
17 </license>
18 </licenses>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070019 <repositories>
20 <repository>
21 <id>central</id>
22 <name>Maven Central repository</name>
23 <url>http://repo1.maven.org/maven2</url>
24 </repository>
25 <repository>
26 <id>maven-restlet</id>
27 <name>Public online Restlet repository</name>
28 <url>http://maven.restlet.org</url>
29 </repository>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070030 </repositories>
31 <properties>
32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Yuta HIGUCHI388a6b42014-07-22 17:29:47 -070033 <powermock.version>1.5.5</powermock.version>
Pankaj Berde37d6d4d2013-12-03 10:12:56 -080034 <restlet.version>2.1.4</restlet.version>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -070035 <cobertura-maven-plugin.version>2.6</cobertura-maven-plugin.version>
Yuta HIGUCHI042e82a2014-04-25 22:37:03 -070036 <!-- Following 2 findbugs version needs to be updated in sync to match the
37 findbugs version used in findbugs-plugin -->
Yuta HIGUCHIc2141b72014-07-29 19:48:32 -070038 <findbugs.version>3.0.0</findbugs.version>
39 <findbugs-plugin.version>3.0.0</findbugs-plugin.version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -070040 <findbugs.effort>Max</findbugs.effort>
41 <findbugs.excludeFilterFile>conf/findbugs/exclude.xml</findbugs.excludeFilterFile>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070042 <checkstyle-plugin.version>2.12</checkstyle-plugin.version>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -080043 <!-- To publish javadoc to github,
44 uncomment com.github.github site-maven-plugin and
45 see https://github.com/OPENNETWORKINGLAB/ONOS/pull/425
46 <github.global.server>github</github.global.server>
47 -->
Yuta HIGUCHI868c6e72014-07-22 17:36:45 -070048 <hazelcast.version>3.2.4</hazelcast.version>
Pavlin Radoslavov2e3c2842014-07-27 11:18:10 -070049 <metrics.version>3.0.2</metrics.version>
Yuta HIGUCHIcd2eb112014-07-21 23:20:23 -070050 <maven.surefire.plugin.version>2.16</maven.surefire.plugin.version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070051 </properties>
52 <build>
53 <plugins>
54 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -070055 <!-- Note: the checkstyle configuration is also in the reporting section -->
56 <groupId>org.apache.maven.plugins</groupId>
57 <artifactId>maven-checkstyle-plugin</artifactId>
58 <version>${checkstyle-plugin.version}</version>
59 <configuration>
60 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -070061 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Ray Milkeyb5716c52014-04-07 11:38:27 -070062 <failsOnError>false</failsOnError>
63 <logViolationsToConsole>true</logViolationsToConsole>
Yuta HIGUCHI91a8f502014-06-17 10:15:29 -070064 <includeTestSourceDirectory>true</includeTestSourceDirectory>
Ray Milkeyb5716c52014-04-07 11:38:27 -070065 </configuration>
66 <executions>
67 <execution>
68 <id>validate-checkstyle</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -070069 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -070070 <goals>
71 <goal>check</goal>
72 </goals>
73 </execution>
74 </executions>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -080075 </plugin>
76 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070077 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-install-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070079 <version>2.5.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070080 <executions>
81 </executions>
82 </plugin>
83 <!-- guice maven plugin for dependency injection inside maven -->
84 <plugin>
85 <groupId>org.apache.camel</groupId>
86 <artifactId>guice-maven-plugin</artifactId>
87 <version>2.11.0</version>
88 </plugin>
Yuta HIGUCHI34a66462014-06-17 16:05:30 -070089 <plugin>
90 <artifactId>maven-clean-plugin</artifactId>
91 <version>2.5</version>
92 </plugin>
93 <plugin>
94 <artifactId>maven-deploy-plugin</artifactId>
95 <version>2.8</version>
96 </plugin>
97 <plugin>
98 <artifactId>maven-jar-plugin</artifactId>
99 <version>2.4</version>
100 </plugin>
101 <plugin>
102 <artifactId>maven-resources-plugin</artifactId>
103 <version>2.6</version>
104 </plugin>
105 <plugin>
106 <artifactId>maven-site-plugin</artifactId>
107 <version>3.3</version>
108 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700112 <version>3.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700113 <configuration>
Yuta HIGUCHI641d9992013-12-18 16:40:45 -0800114 <source>1.7</source>
115 <target>1.7</target>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700116 <encoding>UTF-8</encoding>
Yuta HIGUCHIe636d472014-04-25 09:43:44 -0700117 <showDeprecation>true</showDeprecation>
118 <showWarnings>true</showWarnings>
Yuta HIGUCHI593ee4c2014-05-12 21:31:39 -0700119 <compilerArgs>
120 <arg>-Xlint:all</arg>
121 <arg>-Xlint:-serial</arg>
Ray Milkeyff735142014-05-22 19:06:02 -0700122 <arg>-Werror</arg>
Yuta HIGUCHI593ee4c2014-05-12 21:31:39 -0700123 </compilerArgs>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700124 </configuration>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700125 <executions>
126 </executions>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700127 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700128 <plugin>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHIcd2eb112014-07-21 23:20:23 -0700131 <version>${maven.surefire.plugin.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700132 <configuration>
Yuta HIGUCHI0b7c19e2014-07-21 23:33:20 -0700133 <argLine>-XX:MaxPermSize=256m -Dhazelcast.logging.type=slf4j</argLine>
134 <redirectTestOutputToFile>false</redirectTestOutputToFile>
Ray Milkey10643572014-06-10 15:17:39 -0700135 <excludedGroups>net.onrc.onos.core.util.IntegrationTest</excludedGroups>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700136 </configuration>
137 </plugin>
Yuta HIGUCHI34a66462014-06-17 16:05:30 -0700138 <!-- TODO exec:java no longer used remove at some point? -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700139 <plugin>
140 <groupId>org.codehaus.mojo</groupId>
141 <artifactId>exec-maven-plugin</artifactId>
142 <version>1.2.1</version>
143 <configuration>
Jonathan Hart51f6f5b2014-04-03 10:32:10 -0700144 <mainClass>net.onrc.onos.core.main.Main</mainClass>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700145 </configuration>
146 <executions>
147 </executions>
148 </plugin>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700149 <plugin>
150 <groupId>org.apache.maven.plugins</groupId>
151 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700152 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700153 <configuration>
154 <charset>UTF-8</charset>
155 <locale>en</locale>
Yuta HIGUCHIf4f9b282014-06-10 10:50:49 -0700156 <author>false</author>
Yuta HIGUCHIccab05d2014-07-26 22:42:28 -0700157 <excludePackageNames>net.floodlightcontroller.*:org.openflow.*:net.onrc.onos.core.datastore.serializers</excludePackageNames>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700158 </configuration>
159 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700160<!-- Remove me when we're sure that system test no longer need JaCoCo
timlindberg8b13e702013-07-17 14:45:50 -0700161 <plugin>
162 <groupId>org.jacoco</groupId>
163 <artifactId>jacoco-maven-plugin</artifactId>
164 <version>0.6.3.201306030806</version>
timlindberg8b13e702013-07-17 14:45:50 -0700165 <executions>
166 <execution>
167 <id>jacoco-initialize</id>
168 <goals>
169 <goal>prepare-agent</goal>
170 </goals>
171 </execution>
172 <execution>
173 <id>jacoco-site</id>
174 <phase>package</phase>
175 <goals>
176 <goal>report</goal>
177 </goals>
178 </execution>
179 </executions>
180 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700181-->
Yuta HIGUCHI34a66462014-06-17 16:05:30 -0700182 <!-- Uncomment when publishing javadoc to github in the future.
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700183 <plugin>
184 <groupId>com.github.github</groupId>
185 <artifactId>site-maven-plugin</artifactId>
186 <version>0.8</version>
187 <configuration>
188 <message>Creating site for ${project.version}</message>
189 <dryRun>true</dryRun>
190 <repositoryName>ONOS</repositoryName>
191 <repositoryOwner>OPENNETWORKINGLAB</repositoryOwner>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800192 <path>javadoc/${project.version}/</path>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700193 </configuration>
194 <executions>
195 <execution>
196 <goals>
197 <goal>site</goal>
198 </goals>
199 <phase>site</phase>
200 </execution>
201 </executions>
202 </plugin>
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800203 -->
Jonathan Hart2c61a502013-10-18 18:12:26 -0700204 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700205 <artifactId>maven-assembly-plugin</artifactId>
Yuta HIGUCHI34a66462014-06-17 16:05:30 -0700206 <version>2.4</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700207 <configuration>
208 <descriptorRefs>
209 <descriptorRef>jar-with-dependencies</descriptorRef>
210 </descriptorRefs>
211 </configuration>
Jonathan Hart2c61a502013-10-18 18:12:26 -0700212 </plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800213 <plugin>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700214 <!-- Using groovy script to set maven property ${hostname}.
215 This is a workaround to get hostname as a property inside pom file,
216 which current Maven does not provide. -->
217 <groupId>org.codehaus.gmaven</groupId>
218 <artifactId>groovy-maven-plugin</artifactId>
219 <version>2.0</version>
220 <executions>
221 <execution>
222 <phase>initialize</phase>
223 <goals>
224 <goal>execute</goal>
225 </goals>
226 <configuration>
227 <source>
228 project.properties["hostname"] = InetAddress.getLocalHost().getHostName()
229 </source>
230 </configuration>
231 </execution>
232 </executions>
233 </plugin>
234 <plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-dependency-plugin</artifactId>
237 <version>2.8</version>
238 <executions>
239 <execution>
240 <id>build-classpath</id>
Yuta HIGUCHIb6734602014-07-29 11:53:06 -0700241 <phase>compile</phase>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800242 <goals>
243 <goal>build-classpath</goal>
244 </goals>
245 <configuration>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700246 <outputFile>${project.basedir}/.javacp.${hostname}</outputFile>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800247 </configuration>
248 </execution>
249 </executions>
250 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700251 <plugin>
252 <groupId>org.codehaus.mojo</groupId>
253 <artifactId>cobertura-maven-plugin</artifactId>
254 <version>${cobertura-maven-plugin.version}</version>
255 <configuration>
256 <instrumentation>
257 <ignores>
258 <ignore>org.slf4j.*</ignore>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700259 </ignores>
260 <excludes>
Yuta HIGUCHIee818992014-06-18 10:10:10 -0700261 <exclude>edu/stanford/ramcloud/**/*.class</exclude>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700262 <exclude>org/openflow/**/*.class</exclude>
263 <exclude>net/floodlightcontroller/**/web/**/*.class</exclude>
264 </excludes>
265 </instrumentation>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700266 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700267 </configuration>
268 <executions>
269 <execution>
270 <goals>
271 <goal>clean</goal>
272 </goals>
273 </execution>
274 </executions>
275 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700276 <!-- Note: the findbugs configuration is also in the reporting section -->
277 <plugin>
278 <groupId>org.codehaus.mojo</groupId>
279 <artifactId>findbugs-maven-plugin</artifactId>
280 <version>${findbugs-plugin.version}</version>
281 <configuration>
282 <effort>${findbugs.effort}</effort>
283 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
284 </configuration>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700285 <executions>
286 <execution>
287 <id>validate-findbugs</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700288 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700289 <goals>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700290 <goal>check</goal>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700291 </goals>
292 </execution>
293 </executions>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700294 </plugin>
295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-pmd-plugin</artifactId>
298 <version>3.1</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700299 <configuration>
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700300 <!--
301 Note: Exclusion definition exists in multiple places.
302 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700303 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700304 - maven-pmd-plugin configuration in pom.xml
305 (under build and reporting)
306 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700307 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700308 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700309 <exclude>**/edu/stanford/**</exclude>
310 <exclude>**/net/floodlightcontroller/**</exclude>
311 <exclude>**/org/openflow/**</exclude>
312 </excludes>
313 <rulesets>
314 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
315 </rulesets>
316 </configuration>
317 <executions>
318 <execution>
319 <id>validate-pmd</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700320 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700321 <goals>
322 <!-- Uncomment this goal to make the build fail on pmd errors -->
323 <!--<goal>check</goal>-->
324 </goals>
325 </execution>
326 </executions>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700327 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700328 </plugins>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800329 <pluginManagement>
330 <plugins>
331 <!--This plugin's configuration is used to store Eclipse m2e settings
332 only. It has no influence on the Maven build itself. -->
333 <plugin>
334 <groupId>org.eclipse.m2e</groupId>
335 <artifactId>lifecycle-mapping</artifactId>
336 <version>1.0.0</version>
337 <configuration>
338 <lifecycleMappingMetadata>
339 <pluginExecutions>
340 <pluginExecution>
341 <pluginExecutionFilter>
342 <groupId>
343 org.apache.maven.plugins
344 </groupId>
345 <artifactId>
346 maven-dependency-plugin
347 </artifactId>
348 <versionRange>[2.8,)</versionRange>
349 <goals>
350 <goal>build-classpath</goal>
351 </goals>
352 </pluginExecutionFilter>
353 <action>
354 <ignore></ignore>
355 </action>
356 </pluginExecution>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700357 <pluginExecution>
358 <pluginExecutionFilter>
359 <groupId>org.codehaus.gmaven</groupId>
360 <artifactId>groovy-maven-plugin</artifactId>
361 <versionRange>[2.0,)</versionRange>
362 <goals>
363 <goal>execute</goal>
364 </goals>
365 </pluginExecutionFilter>
366 <action>
367 <ignore></ignore>
368 </action>
369 </pluginExecution>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800370 </pluginExecutions>
371 </lifecycleMappingMetadata>
372 </configuration>
373 </plugin>
374 </plugins>
375 </pluginManagement>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700376 </build>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700377 <!-- for getting visualization reporting -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700378 <reporting>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700379 <excludeDefaults>true</excludeDefaults>
380 <outputDirectory>${project.build.directory}/site</outputDirectory>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700381 <plugins>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700382 <plugin>
383 <groupId>org.apache.maven.plugins</groupId>
384 <artifactId>maven-project-info-reports-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700385 <version>2.7</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700386 <configuration>
387 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
388 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
389 </configuration>
390 <reportSets>
391 <reportSet>
392 <reports>
393 <report>dependencies</report>
394 <report>scm</report>
395 </reports>
396 </reportSet>
397 </reportSets>
398 </plugin>
399 <plugin>
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700402 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700403 <configuration>
404 <charset>UTF-8</charset>
405 <locale>en</locale>
Yuta HIGUCHIf4f9b282014-06-10 10:50:49 -0700406 <author>false</author>
407 <excludePackageNames>net.floodlightcontroller.*:net.onrc.onos.core.datastore.serializers</excludePackageNames>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700408 </configuration>
409 </plugin>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800410 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700411 <!-- Note: the checkstyle configuration is also in the build section -->
412 <groupId>org.apache.maven.plugins</groupId>
413 <artifactId>maven-checkstyle-plugin</artifactId>
414 <version>${checkstyle-plugin.version}</version>
415 <configuration>
416 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700417 <!--
418 Note: Exclusion definition exists in multiple places.
419 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
420 - maven-checkstyle-plugin configuration in pom.xml
421 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700422 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700423 -->
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -0700424 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Yuta HIGUCHI91a8f502014-06-17 10:15:29 -0700425 <includeTestSourceDirectory>true</includeTestSourceDirectory>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700426 </configuration>
427 <reportSets>
428 <reportSet>
429 <reports>
430 <report>checkstyle</report>
431 </reports>
432 </reportSet>
433 </reportSets>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800434 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700435 <!-- Note: the findbugs configuration is also in the build section -->
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800436 <plugin>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700437 <groupId>org.codehaus.mojo</groupId>
438 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700439 <version>${findbugs-plugin.version}</version>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700440 <configuration>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700441 <effort>${findbugs.effort}</effort>
442 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700443 <reportPlugins>
444 <plugin>
445 <groupId>org.codehaus.mojo</groupId>
446 <artifactId>findbugs-maven-plugin</artifactId>
447 </plugin>
448 </reportPlugins>
449 </configuration>
450 </plugin>
451 <plugin>
452 <groupId>org.apache.maven.plugins</groupId>
453 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700454 <version>3.1</version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700455 <configuration>
456 <!--
457 Note: Exclusion definition exists in multiple places.
458 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700459 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700460 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700461 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700462 -->
463 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700464 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700465 <exclude>**/edu/stanford/**</exclude>
466 <exclude>**/net/floodlightcontroller/**</exclude>
467 <exclude>**/org/openflow/**</exclude>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700468 </excludes>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700469 <rulesets>
470 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
471 </rulesets>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700472 </configuration>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700473 </plugin>
474 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700475 <groupId>org.apache.maven.plugins</groupId>
476 <artifactId>maven-jxr-plugin</artifactId>
477 <version>2.4</version>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800478 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700479 <plugin>
480 <groupId>org.codehaus.mojo</groupId>
481 <artifactId>cobertura-maven-plugin</artifactId>
482 <version>${cobertura-maven-plugin.version}</version>
483 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700484 </plugins>
485 </reporting>
486 <dependencies>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800487 <!-- ONOS's direct dependencies -->
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700488 <dependency>
489 <groupId>com.esotericsoftware.kryo</groupId>
490 <artifactId>kryo</artifactId>
Yuta HIGUCHI6a518df2014-05-07 20:40:23 -0700491 <version>2.24.0</version>
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700492 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700493 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800494 <groupId>com.google.protobuf</groupId>
495 <artifactId>protobuf-java</artifactId>
496 <version>2.5.0</version>
yoshi28bac132014-01-22 11:00:17 -0800497 </dependency>
498 <dependency>
yoshi2fd4c7e2013-11-22 15:47:55 -0800499 <groupId>com.hazelcast</groupId>
500 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700501 <version>${hazelcast.version}</version>
502 </dependency>
503 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700504 <!-- Required for backend datastore as Hazelcast -->
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700505 <groupId>com.hazelcast</groupId>
506 <artifactId>hazelcast-client</artifactId>
507 <version>${hazelcast.version}</version>
yoshi2fd4c7e2013-11-22 15:47:55 -0800508 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700509 <dependency>
Pavlin Radoslavovde4c3892014-07-06 23:19:59 -0700510 <groupId>javax.websocket</groupId>
511 <artifactId>javax.websocket-api</artifactId>
512 <version>1.0</version>
513 </dependency>
514 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700515 <groupId>net.sf.json-lib</groupId>
516 <artifactId>json-lib</artifactId>
517 <version>2.4</version>
518 <classifier>jdk15</classifier>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700519 </dependency>
520 <dependency>
Pavlin Radoslavovde4c3892014-07-06 23:19:59 -0700521 <groupId>org.eclipse.jetty</groupId>
522 <artifactId>jetty-server</artifactId>
523 <version>9.2.1.v20140609</version>
524 </dependency>
525 <dependency>
526 <groupId>org.eclipse.jetty</groupId>
527 <artifactId>jetty-servlet</artifactId>
528 <version>9.2.1.v20140609</version>
529 </dependency>
530 <dependency>
531 <groupId>org.eclipse.jetty.websocket</groupId>
532 <artifactId>javax-websocket-server-impl</artifactId>
533 <version>9.2.1.v20140609</version>
534 </dependency>
535 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700536 <groupId>org.restlet.jse</groupId>
537 <artifactId>org.restlet</artifactId>
538 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700539 </dependency>
540 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700541 <groupId>org.restlet.jse</groupId>
542 <artifactId>org.restlet.ext.slf4j</artifactId>
543 <version>${restlet.version}</version>
Yuta HIGUCHIaa2131f2014-07-28 23:45:47 -0700544 <scope>runtime</scope>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700545 </dependency>
546 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700547 <groupId>org.restlet.jse</groupId>
Ray Milkey3aeda4f2014-05-21 14:38:58 -0700548 <artifactId>org.restlet.ext.json</artifactId>
549 <version>${restlet.version}</version>
Yuta HIGUCHIaa2131f2014-07-28 23:45:47 -0700550 <scope>runtime</scope>
551 </dependency>
552 <dependency>
553 <groupId>org.restlet.jse</groupId>
554 <artifactId>org.restlet.lib.org.json</artifactId>
555 <version>2.0</version>
Ray Milkey3aeda4f2014-05-21 14:38:58 -0700556 </dependency>
557 <dependency>
558 <groupId>org.restlet.jse</groupId>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700559 <artifactId>org.restlet.ext.jackson</artifactId>
560 <version>${restlet.version}</version>
561 </dependency>
562 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700563 <groupId>org.codehaus.jackson</groupId>
564 <artifactId>jackson-core-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700565 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700566 </dependency>
567 <dependency>
568 <groupId>org.codehaus.jackson</groupId>
569 <artifactId>jackson-mapper-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700570 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700571 </dependency>
572 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700573 <groupId>org.restlet.jse</groupId>
574 <artifactId>org.restlet.ext.simple</artifactId>
575 <version>${restlet.version}</version>
Yuta HIGUCHIaa2131f2014-07-28 23:45:47 -0700576 <scope>runtime</scope>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700577 </dependency>
578 <dependency>
579 <groupId>org.simpleframework</groupId>
580 <artifactId>simple</artifactId>
581 <version>4.1.21</version>
Yuta HIGUCHIaa2131f2014-07-28 23:45:47 -0700582 <scope>runtime</scope>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700583 </dependency>
584 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700585 <groupId>ch.qos.logback</groupId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700586 <artifactId>logback-classic</artifactId>
Yuta HIGUCHI001159d2014-07-23 11:53:32 -0700587 <version>1.1.2</version>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700588 <scope>runtime</scope>
589 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800590 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700591 <groupId>org.slf4j</groupId>
592 <artifactId>slf4j-api</artifactId>
593 <version>1.7.5</version>
594 </dependency>
595 <dependency>
596 <groupId>com.google.guava</groupId>
597 <artifactId>guava</artifactId>
Sho SHIMIZU00ec3512014-07-22 21:02:56 -0700598 <version>17.0</version>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700599 </dependency>
600 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800601 <groupId>commons-configuration</groupId>
602 <artifactId>commons-configuration</artifactId>
Yuta HIGUCHI56f294e2014-07-23 11:09:06 -0700603 <version>1.10</version>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800604 </dependency>
605 <dependency>
Yuta HIGUCHI850b0042014-04-16 15:10:31 -0700606 <groupId>commons-lang</groupId>
607 <artifactId>commons-lang</artifactId>
608 <version>2.6</version>
609 </dependency>
610 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800611 <groupId>commons-httpclient</groupId>
612 <artifactId>commons-httpclient</artifactId>
613 <version>3.1</version>
614 </dependency>
615 <dependency>
Yuta HIGUCHI0c883d02014-07-23 10:59:17 -0700616 <groupId>org.apache.commons</groupId>
617 <artifactId>commons-collections4</artifactId>
618 <version>4.0</version>
Yuta HIGUCHId395b932014-05-01 15:15:20 -0700619 </dependency>
620 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800621 <groupId>org.apache.zookeeper</groupId>
622 <artifactId>zookeeper</artifactId>
Yuta HIGUCHIfb1905a2014-06-09 14:07:34 -0700623 <version>3.4.6</version>
Yuta HIGUCHI6d935e52014-03-28 10:34:26 -0700624 <scope>runtime</scope>
Yuta HIGUCHIffdb9132014-06-23 09:30:38 -0700625 <!-- Excluding log4j. ONOS uses logback-classic for SLF4J. -->
626 <exclusions>
627 <exclusion>
628 <artifactId>slf4j-log4j12</artifactId>
629 <groupId>org.slf4j</groupId>
630 </exclusion>
631 <exclusion>
632 <artifactId>log4j</artifactId>
633 <groupId>log4j</groupId>
634 </exclusion>
635 </exclusions>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800636 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800637 <dependency>
Jonathan Hartf6978ce2014-06-23 11:20:04 -0700638 <groupId>com.googlecode.concurrent-trees</groupId>
639 <artifactId>concurrent-trees</artifactId>
640 <version>2.4.0</version>
641 </dependency>
642 <dependency>
Jonathan Hart116b1fe2014-03-14 18:53:47 -0700643 <groupId>org.apache.curator</groupId>
644 <artifactId>curator-framework</artifactId>
645 <version>2.4.1</version>
646 </dependency>
647 <dependency>
648 <groupId>org.apache.curator</groupId>
649 <artifactId>curator-client</artifactId>
650 <version>2.4.1</version>
651 </dependency>
652 <dependency>
653 <groupId>org.apache.curator</groupId>
654 <artifactId>curator-recipes</artifactId>
655 <version>2.4.1</version>
656 </dependency>
657 <dependency>
658 <groupId>org.apache.curator</groupId>
659 <artifactId>curator-x-discovery</artifactId>
660 <version>2.4.1</version>
661 </dependency>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700662 <dependency>
Yuta HIGUCHI042e82a2014-04-25 22:37:03 -0700663 <!-- findbugs suppression annotation -->
664 <groupId>com.google.code.findbugs</groupId>
665 <artifactId>findbugs</artifactId>
666 <version>${findbugs.version}</version>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700667 </dependency>
Ray Milkey26921af2014-06-30 16:27:40 -0700668 <dependency>
669 <groupId>com.codahale.metrics</groupId>
670 <artifactId>metrics-core</artifactId>
671 <version>${metrics.version}</version>
672 </dependency>
673 <dependency>
674 <groupId>com.codahale.metrics</groupId>
675 <artifactId>metrics-json</artifactId>
676 <version>${metrics.version}</version>
677 </dependency>
Yuta HIGUCHIaa2131f2014-07-28 23:45:47 -0700678 <dependency>
679 <groupId>com.fasterxml.jackson.core</groupId>
680 <artifactId>jackson-databind</artifactId>
681 <version>2.2.2</version>
682 </dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700683 <!-- Floodlight's dependencies -->
684 <dependency>
685 <groupId>args4j</groupId>
686 <artifactId>args4j</artifactId>
687 <version>2.0.25</version>
688 </dependency>
689 <dependency>
690 <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
691 <artifactId>concurrentlinkedhashmap-lru</artifactId>
692 <version>1.4</version>
693 </dependency>
694 <dependency>
695 <!-- dependency to old version of netty? -->
Yuta HIGUCHIaa2131f2014-07-28 23:45:47 -0700696 <groupId>io.netty</groupId>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700697 <artifactId>netty</artifactId>
Yuta HIGUCHI29af9b52014-07-29 00:13:54 -0700698 <version>3.9.2.Final</version>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700699 </dependency>
700 <!-- Dependency for libraries used for testing -->
701 <dependency>
702 <groupId>junit</groupId>
703 <artifactId>junit</artifactId>
704 <version>4.11</version>
705 <scope>test</scope>
706 </dependency>
707 <dependency>
708 <groupId>org.hamcrest</groupId>
709 <artifactId>hamcrest-core</artifactId>
710 <version>1.3</version>
711 <scope>test</scope>
712 </dependency>
713 <dependency>
714 <groupId>org.hamcrest</groupId>
715 <artifactId>hamcrest-library</artifactId>
716 <version>1.3</version>
717 <scope>test</scope>
718 </dependency>
719 <dependency>
720 <groupId>org.easymock</groupId>
721 <artifactId>easymock</artifactId>
Yuta HIGUCHI08469962014-07-22 17:52:22 -0700722 <version>3.2</version>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700723 <scope>test</scope>
724 </dependency>
725 <dependency>
726 <groupId>org.powermock</groupId>
727 <artifactId>powermock-module-junit4</artifactId>
728 <version>${powermock.version}</version>
729 <scope>test</scope>
730 </dependency>
731 <dependency>
732 <groupId>org.powermock</groupId>
733 <artifactId>powermock-api-easymock</artifactId>
734 <version>${powermock.version}</version>
735 <scope>test</scope>
736 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700737 </dependencies>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700738 <profiles>
739 <!-- Jenkins by default defines a property BUILD_NUMBER which is used to
740 enable the profile. -->
741 <profile>
742 <id>jenkins</id>
743 <activation>
744 <property>
745 <name>env.BUILD_NUMBER</name>
746 </property>
747 </activation>
748 <build>
749 <plugins>
750 <plugin>
751 <groupId>org.codehaus.mojo</groupId>
752 <artifactId>cobertura-maven-plugin</artifactId>
753 <version>${cobertura-maven-plugin.version}</version>
754 <configuration>
755 <formats>
756 <format>xml</format>
757 </formats>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700758 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700759 </configuration>
760 <executions>
761 <execution>
762 <phase>package</phase>
763 <goals>
764 <goal>cobertura</goal>
765 </goals>
766 </execution>
767 </executions>
768 </plugin>
769 </plugins>
770 </build>
771 </profile>
Yuta HIGUCHIcd2eb112014-07-21 23:20:23 -0700772 <profile>
773 <id>all-tests</id>
774 <build>
775 <plugins>
776 <plugin>
777 <groupId>org.apache.maven.plugins</groupId>
778 <artifactId>maven-surefire-plugin</artifactId>
779 <version>${maven.surefire.plugin.version}</version>
780 <configuration combine.self="merge">
781 <excludedGroups></excludedGroups>
782 </configuration>
783 </plugin>
784 </plugins>
785 </build>
786 </profile>
Yuta HIGUCHIee0c5b62014-07-22 23:22:47 -0700787 <profile>
788 <id>error-prone</id>
789 <build>
790 <plugins>
791 <plugin>
792 <groupId>org.apache.maven.plugins</groupId>
793 <artifactId>maven-compiler-plugin</artifactId>
794 <version>3.1</version>
795 <configuration>
796 <compilerArgs combine.children="append">
797 <!-- FIXME -Xlint:-path required when using findbugs + error-prone -->
798 <arg>-Xlint:-path</arg>
799 </compilerArgs>
800 <!-- Turn on error-prone -->
801 <compilerId>javac-with-errorprone</compilerId>
802 <forceJavacCompilerUse>true</forceJavacCompilerUse>
803 </configuration>
804 <dependencies combine.children="append">
805 <dependency>
806 <groupId>com.google.errorprone</groupId>
807 <artifactId>error_prone_core</artifactId>
808 <version>1.1.2</version>
809 </dependency>
810 <dependency>
811 <groupId>org.codehaus.plexus</groupId>
812 <artifactId>plexus-compiler-javac</artifactId>
813 <version>2.3</version>
814 </dependency>
815 <dependency>
816 <groupId>org.codehaus.plexus</groupId>
817 <artifactId>plexus-compiler-javac-errorprone</artifactId>
818 <version>2.3</version>
819 </dependency>
820 </dependencies>
821 </plugin>
822 </plugins>
823 </build>
824 </profile>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700825 </profiles>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700826</project>