blob: 243894033bbadd4127221e0c5daf216e0d406ad0 [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>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -07009 <version>0.1.0</version>
10 <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>
yoshi2fd4c7e2013-11-22 15:47:55 -080033 <powermock.version>1.5.1</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 -->
38 <findbugs.version>2.0.2</findbugs.version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -070039 <findbugs-plugin.version>2.5.3</findbugs-plugin.version>
40 <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 HIGUCHI6a643132014-03-18 22:39:27 -070048 <hazelcast.version>3.0.2</hazelcast.version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070049 </properties>
50 <build>
51 <plugins>
52 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -070053 <!-- Note: the checkstyle configuration is also in the reporting section -->
54 <groupId>org.apache.maven.plugins</groupId>
55 <artifactId>maven-checkstyle-plugin</artifactId>
56 <version>${checkstyle-plugin.version}</version>
57 <configuration>
58 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -070059 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Ray Milkeyb5716c52014-04-07 11:38:27 -070060 <failsOnError>false</failsOnError>
61 <logViolationsToConsole>true</logViolationsToConsole>
62 </configuration>
63 <executions>
64 <execution>
65 <id>validate-checkstyle</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -070066 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -070067 <goals>
68 <goal>check</goal>
69 </goals>
70 </execution>
71 </executions>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -080072 </plugin>
73 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070074 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-install-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070076 <version>2.5.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070077 <executions>
78 </executions>
79 </plugin>
80 <!-- guice maven plugin for dependency injection inside maven -->
81 <plugin>
82 <groupId>org.apache.camel</groupId>
83 <artifactId>guice-maven-plugin</artifactId>
84 <version>2.11.0</version>
85 </plugin>
86 <!-- compile -->
87 <plugin>
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070090 <version>3.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070091 <configuration>
Yuta HIGUCHI641d9992013-12-18 16:40:45 -080092 <source>1.7</source>
93 <target>1.7</target>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070094 <encoding>UTF-8</encoding>
Yuta HIGUCHIe636d472014-04-25 09:43:44 -070095 <showDeprecation>true</showDeprecation>
96 <showWarnings>true</showWarnings>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070097 </configuration>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -070098 <executions>
99 </executions>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700100 </plugin>
101 <!-- test -->
102 <plugin>
103 <groupId>org.apache.maven.plugins</groupId>
104 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700105 <version>2.16</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700106 <configuration>
HIGUCHI Yuta71c96dd2013-10-20 17:15:56 -0700107 <argLine>-XX:MaxPermSize=256m</argLine>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800108 <redirectTestOutputToFile>true</redirectTestOutputToFile>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700109 </configuration>
110 </plugin>
111 <!-- exec:java -->
112 <plugin>
113 <groupId>org.codehaus.mojo</groupId>
114 <artifactId>exec-maven-plugin</artifactId>
115 <version>1.2.1</version>
116 <configuration>
Jonathan Hart51f6f5b2014-04-03 10:32:10 -0700117 <mainClass>net.onrc.onos.core.main.Main</mainClass>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700118 </configuration>
119 <executions>
120 </executions>
121 </plugin>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700122 <!--
123 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700124 <groupId>org.codehaus.mojo</groupId>
125 <artifactId>build-helper-maven-plugin</artifactId>
126 <version>1.7</version>
127 <executions>
128 <execution>
129 <id>add-source</id>
130 <phase>generate-sources</phase>
131 <goals>
132 <goal>add-source</goal>
133 </goals>
134 <configuration>
135 <sources>
136 <source>lib/gen-java</source>
137 </sources>
138 </configuration>
139 </execution>
140 </executions>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700141 </plugin>
142 -->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700146 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700147 <configuration>
148 <charset>UTF-8</charset>
149 <locale>en</locale>
150 </configuration>
151 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700152<!-- Remove me when we're sure that system test no longer need JaCoCo
timlindberg8b13e702013-07-17 14:45:50 -0700153 <plugin>
154 <groupId>org.jacoco</groupId>
155 <artifactId>jacoco-maven-plugin</artifactId>
156 <version>0.6.3.201306030806</version>
timlindberg8b13e702013-07-17 14:45:50 -0700157 <executions>
158 <execution>
159 <id>jacoco-initialize</id>
160 <goals>
161 <goal>prepare-agent</goal>
162 </goals>
163 </execution>
164 <execution>
165 <id>jacoco-site</id>
166 <phase>package</phase>
167 <goals>
168 <goal>report</goal>
169 </goals>
170 </execution>
171 </executions>
172 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700173-->
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800174 <!--
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700175 <plugin>
176 <groupId>com.github.github</groupId>
177 <artifactId>site-maven-plugin</artifactId>
178 <version>0.8</version>
179 <configuration>
180 <message>Creating site for ${project.version}</message>
181 <dryRun>true</dryRun>
182 <repositoryName>ONOS</repositoryName>
183 <repositoryOwner>OPENNETWORKINGLAB</repositoryOwner>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800184 <path>javadoc/${project.version}/</path>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700185 </configuration>
186 <executions>
187 <execution>
188 <goals>
189 <goal>site</goal>
190 </goals>
191 <phase>site</phase>
192 </execution>
193 </executions>
194 </plugin>
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800195 -->
Jonathan Hart2c61a502013-10-18 18:12:26 -0700196 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700197 <artifactId>maven-assembly-plugin</artifactId>
198 <configuration>
199 <descriptorRefs>
200 <descriptorRef>jar-with-dependencies</descriptorRef>
201 </descriptorRefs>
202 </configuration>
Jonathan Hart2c61a502013-10-18 18:12:26 -0700203 </plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800204 <plugin>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700205 <!-- Using groovy script to set maven property ${hostname}.
206 This is a workaround to get hostname as a property inside pom file,
207 which current Maven does not provide. -->
208 <groupId>org.codehaus.gmaven</groupId>
209 <artifactId>groovy-maven-plugin</artifactId>
210 <version>2.0</version>
211 <executions>
212 <execution>
213 <phase>initialize</phase>
214 <goals>
215 <goal>execute</goal>
216 </goals>
217 <configuration>
218 <source>
219 project.properties["hostname"] = InetAddress.getLocalHost().getHostName()
220 </source>
221 </configuration>
222 </execution>
223 </executions>
224 </plugin>
225 <plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-dependency-plugin</artifactId>
228 <version>2.8</version>
229 <executions>
230 <execution>
231 <id>build-classpath</id>
232 <phase>generate-sources</phase>
233 <goals>
234 <goal>build-classpath</goal>
235 </goals>
236 <configuration>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700237 <outputFile>${project.basedir}/.javacp.${hostname}</outputFile>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800238 </configuration>
239 </execution>
240 </executions>
241 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700242 <plugin>
243 <groupId>org.codehaus.mojo</groupId>
244 <artifactId>cobertura-maven-plugin</artifactId>
245 <version>${cobertura-maven-plugin.version}</version>
246 <configuration>
247 <instrumentation>
248 <ignores>
249 <ignore>org.slf4j.*</ignore>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700250 </ignores>
251 <excludes>
252 <exclude>org/openflow/**/*.class</exclude>
253 <exclude>net/floodlightcontroller/**/web/**/*.class</exclude>
254 </excludes>
255 </instrumentation>
256 </configuration>
257 <executions>
258 <execution>
259 <goals>
260 <goal>clean</goal>
261 </goals>
262 </execution>
263 </executions>
264 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700265 <!-- Note: the findbugs configuration is also in the reporting section -->
266 <plugin>
267 <groupId>org.codehaus.mojo</groupId>
268 <artifactId>findbugs-maven-plugin</artifactId>
269 <version>${findbugs-plugin.version}</version>
270 <configuration>
271 <effort>${findbugs.effort}</effort>
272 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
273 </configuration>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700274 <executions>
275 <execution>
276 <id>validate-findbugs</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700277 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700278 <goals>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700279 <goal>check</goal>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700280 </goals>
281 </execution>
282 </executions>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700283 </plugin>
284 <plugin>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-pmd-plugin</artifactId>
287 <version>3.1</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700288 <configuration>
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700289 <!--
290 Note: Exclusion definition exists in multiple places.
291 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700292 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700293 - maven-pmd-plugin configuration in pom.xml
294 (under build and reporting)
295 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700296 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700297 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700298 <exclude>**/edu/stanford/**</exclude>
299 <exclude>**/net/floodlightcontroller/**</exclude>
300 <exclude>**/org/openflow/**</exclude>
301 </excludes>
302 <rulesets>
303 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
304 </rulesets>
305 </configuration>
306 <executions>
307 <execution>
308 <id>validate-pmd</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700309 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700310 <goals>
311 <!-- Uncomment this goal to make the build fail on pmd errors -->
312 <!--<goal>check</goal>-->
313 </goals>
314 </execution>
315 </executions>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700316 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700317 </plugins>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800318 <pluginManagement>
319 <plugins>
320 <!--This plugin's configuration is used to store Eclipse m2e settings
321 only. It has no influence on the Maven build itself. -->
322 <plugin>
323 <groupId>org.eclipse.m2e</groupId>
324 <artifactId>lifecycle-mapping</artifactId>
325 <version>1.0.0</version>
326 <configuration>
327 <lifecycleMappingMetadata>
328 <pluginExecutions>
329 <pluginExecution>
330 <pluginExecutionFilter>
331 <groupId>
332 org.apache.maven.plugins
333 </groupId>
334 <artifactId>
335 maven-dependency-plugin
336 </artifactId>
337 <versionRange>[2.8,)</versionRange>
338 <goals>
339 <goal>build-classpath</goal>
340 </goals>
341 </pluginExecutionFilter>
342 <action>
343 <ignore></ignore>
344 </action>
345 </pluginExecution>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700346 <pluginExecution>
347 <pluginExecutionFilter>
348 <groupId>org.codehaus.gmaven</groupId>
349 <artifactId>groovy-maven-plugin</artifactId>
350 <versionRange>[2.0,)</versionRange>
351 <goals>
352 <goal>execute</goal>
353 </goals>
354 </pluginExecutionFilter>
355 <action>
356 <ignore></ignore>
357 </action>
358 </pluginExecution>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800359 </pluginExecutions>
360 </lifecycleMappingMetadata>
361 </configuration>
362 </plugin>
363 </plugins>
364 </pluginManagement>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700365 </build>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700366 <!-- for getting visualization reporting -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700367 <reporting>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700368 <excludeDefaults>true</excludeDefaults>
369 <outputDirectory>${project.build.directory}/site</outputDirectory>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700370 <plugins>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700371 <!--
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700372 <plugin>
373 <groupId>org.apache.camel</groupId>
374 <artifactId>guice-maven-plugin</artifactId>
375 <version>2.11.0</version>
376 </plugin>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700377 -->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700378 <plugin>
379 <groupId>org.apache.maven.plugins</groupId>
380 <artifactId>maven-project-info-reports-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700381 <version>2.7</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700382 <configuration>
383 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
384 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
385 </configuration>
386 <reportSets>
387 <reportSet>
388 <reports>
389 <report>dependencies</report>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700390 <!--report>maven-emma-plugin</report-->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700391 <report>scm</report>
392 </reports>
393 </reportSet>
394 </reportSets>
395 </plugin>
396 <plugin>
397 <groupId>org.apache.maven.plugins</groupId>
398 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700399 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700400 <configuration>
401 <charset>UTF-8</charset>
402 <locale>en</locale>
403 </configuration>
404 </plugin>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800405 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700406 <!-- Note: the checkstyle configuration is also in the build section -->
407 <groupId>org.apache.maven.plugins</groupId>
408 <artifactId>maven-checkstyle-plugin</artifactId>
409 <version>${checkstyle-plugin.version}</version>
410 <configuration>
411 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700412 <!--
413 Note: Exclusion definition exists in multiple places.
414 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
415 - maven-checkstyle-plugin configuration in pom.xml
416 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700417 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700418 -->
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -0700419 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700420 </configuration>
421 <reportSets>
422 <reportSet>
423 <reports>
424 <report>checkstyle</report>
425 </reports>
426 </reportSet>
427 </reportSets>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800428 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700429 <!-- Note: the findbugs configuration is also in the build section -->
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800430 <plugin>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700431 <groupId>org.codehaus.mojo</groupId>
432 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700433 <version>${findbugs-plugin.version}</version>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700434 <configuration>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700435 <effort>${findbugs.effort}</effort>
436 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700437 <reportPlugins>
438 <plugin>
439 <groupId>org.codehaus.mojo</groupId>
440 <artifactId>findbugs-maven-plugin</artifactId>
441 </plugin>
442 </reportPlugins>
443 </configuration>
444 </plugin>
445 <plugin>
446 <groupId>org.apache.maven.plugins</groupId>
447 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700448 <version>3.1</version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700449 <configuration>
450 <!--
451 Note: Exclusion definition exists in multiple places.
452 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700453 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700454 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700455 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700456 -->
457 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700458 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700459 <exclude>**/edu/stanford/**</exclude>
460 <exclude>**/net/floodlightcontroller/**</exclude>
461 <exclude>**/org/openflow/**</exclude>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700462 </excludes>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700463 <rulesets>
464 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
465 </rulesets>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700466 </configuration>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700467 </plugin>
468 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700469 <groupId>org.apache.maven.plugins</groupId>
470 <artifactId>maven-jxr-plugin</artifactId>
471 <version>2.4</version>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800472 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700473 <plugin>
474 <groupId>org.codehaus.mojo</groupId>
475 <artifactId>cobertura-maven-plugin</artifactId>
476 <version>${cobertura-maven-plugin.version}</version>
477 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700478 </plugins>
479 </reporting>
480 <dependencies>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800481 <!-- ONOS's direct dependencies -->
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700482 <dependency>
483 <groupId>com.esotericsoftware.kryo</groupId>
484 <artifactId>kryo</artifactId>
Yuta HIGUCHI6a518df2014-05-07 20:40:23 -0700485 <version>2.24.0</version>
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700486 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700487 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800488 <groupId>com.google.protobuf</groupId>
489 <artifactId>protobuf-java</artifactId>
490 <version>2.5.0</version>
yoshi28bac132014-01-22 11:00:17 -0800491 </dependency>
492 <dependency>
yoshi2fd4c7e2013-11-22 15:47:55 -0800493 <groupId>com.hazelcast</groupId>
494 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700495 <version>${hazelcast.version}</version>
496 </dependency>
497 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700498 <!-- Required for backend datastore as Hazelcast -->
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700499 <groupId>com.hazelcast</groupId>
500 <artifactId>hazelcast-client</artifactId>
501 <version>${hazelcast.version}</version>
yoshi2fd4c7e2013-11-22 15:47:55 -0800502 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700503 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700504 <groupId>net.sf.json-lib</groupId>
505 <artifactId>json-lib</artifactId>
506 <version>2.4</version>
507 <classifier>jdk15</classifier>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700508 </dependency>
509 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700510 <groupId>org.restlet.jse</groupId>
511 <artifactId>org.restlet</artifactId>
512 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700513 </dependency>
514 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700515 <groupId>org.restlet.jse</groupId>
516 <artifactId>org.restlet.ext.slf4j</artifactId>
517 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700518 </dependency>
519 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700520 <groupId>org.restlet.jse</groupId>
521 <artifactId>org.restlet.ext.jackson</artifactId>
522 <version>${restlet.version}</version>
523 </dependency>
524 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700525 <groupId>org.codehaus.jackson</groupId>
526 <artifactId>jackson-core-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700527 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700528 </dependency>
529 <dependency>
530 <groupId>org.codehaus.jackson</groupId>
531 <artifactId>jackson-mapper-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700532 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700533 </dependency>
534 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700535 <groupId>org.restlet.jse</groupId>
536 <artifactId>org.restlet.ext.simple</artifactId>
537 <version>${restlet.version}</version>
538 </dependency>
539 <dependency>
540 <groupId>org.simpleframework</groupId>
541 <artifactId>simple</artifactId>
542 <version>4.1.21</version>
543 </dependency>
544 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700545 <groupId>ch.qos.logback</groupId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700546 <artifactId>logback-classic</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700547 <version>1.0.13</version>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700548 <scope>runtime</scope>
549 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800550 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700551 <groupId>org.slf4j</groupId>
552 <artifactId>slf4j-api</artifactId>
553 <version>1.7.5</version>
554 </dependency>
555 <dependency>
556 <groupId>com.google.guava</groupId>
557 <artifactId>guava</artifactId>
558 <version>16.0.1</version>
559 </dependency>
560 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800561 <groupId>commons-configuration</groupId>
562 <artifactId>commons-configuration</artifactId>
563 <version>1.6</version>
564 </dependency>
565 <dependency>
Yuta HIGUCHI850b0042014-04-16 15:10:31 -0700566 <groupId>commons-lang</groupId>
567 <artifactId>commons-lang</artifactId>
568 <version>2.6</version>
569 </dependency>
570 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800571 <groupId>commons-httpclient</groupId>
572 <artifactId>commons-httpclient</artifactId>
573 <version>3.1</version>
574 </dependency>
575 <dependency>
Yuta HIGUCHId395b932014-05-01 15:15:20 -0700576 <groupId>commons-collections</groupId>
577 <artifactId>commons-collections</artifactId>
578 <version>3.2.1</version>
579 </dependency>
580 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800581 <groupId>org.apache.zookeeper</groupId>
582 <artifactId>zookeeper</artifactId>
583 <version>3.4.5</version>
Yuta HIGUCHI6d935e52014-03-28 10:34:26 -0700584 <scope>runtime</scope>
585 <!-- Following workaround exclusions can be removed,
586 when we're ready to switch to ZooKeeper 3.4.6 -->
587 <exclusions>
588 <exclusion>
589 <groupId>com.sun.jmx</groupId>
590 <artifactId>jmxri</artifactId>
591 </exclusion>
592 <exclusion>
593 <groupId>com.sun.jdmk</groupId>
594 <artifactId>jmxtools</artifactId>
595 </exclusion>
596 <exclusion>
597 <groupId>javax.jms</groupId>
598 <artifactId>jms</artifactId>
599 </exclusion>
600 </exclusions>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800601 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800602 <dependency>
Jonathan Hart116b1fe2014-03-14 18:53:47 -0700603 <groupId>org.apache.curator</groupId>
604 <artifactId>curator-framework</artifactId>
605 <version>2.4.1</version>
606 </dependency>
607 <dependency>
608 <groupId>org.apache.curator</groupId>
609 <artifactId>curator-client</artifactId>
610 <version>2.4.1</version>
611 </dependency>
612 <dependency>
613 <groupId>org.apache.curator</groupId>
614 <artifactId>curator-recipes</artifactId>
615 <version>2.4.1</version>
616 </dependency>
617 <dependency>
618 <groupId>org.apache.curator</groupId>
619 <artifactId>curator-x-discovery</artifactId>
620 <version>2.4.1</version>
621 </dependency>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700622 <dependency>
Yuta HIGUCHI042e82a2014-04-25 22:37:03 -0700623 <!-- findbugs suppression annotation -->
624 <groupId>com.google.code.findbugs</groupId>
625 <artifactId>findbugs</artifactId>
626 <version>${findbugs.version}</version>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700627 </dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700628 <!-- Floodlight's dependencies -->
629 <dependency>
630 <groupId>args4j</groupId>
631 <artifactId>args4j</artifactId>
632 <version>2.0.25</version>
633 </dependency>
634 <dependency>
635 <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
636 <artifactId>concurrentlinkedhashmap-lru</artifactId>
637 <version>1.4</version>
638 </dependency>
639 <dependency>
640 <!-- dependency to old version of netty? -->
641 <groupId>org.jboss.netty</groupId>
642 <artifactId>netty</artifactId>
643 <version>3.2.7.Final</version>
644 </dependency>
645 <!-- Dependency for libraries used for testing -->
646 <dependency>
647 <groupId>junit</groupId>
648 <artifactId>junit</artifactId>
649 <version>4.11</version>
650 <scope>test</scope>
651 </dependency>
652 <dependency>
653 <groupId>org.hamcrest</groupId>
654 <artifactId>hamcrest-core</artifactId>
655 <version>1.3</version>
656 <scope>test</scope>
657 </dependency>
658 <dependency>
659 <groupId>org.hamcrest</groupId>
660 <artifactId>hamcrest-library</artifactId>
661 <version>1.3</version>
662 <scope>test</scope>
663 </dependency>
664 <dependency>
665 <groupId>org.easymock</groupId>
666 <artifactId>easymock</artifactId>
667 <version>3.1</version>
668 <scope>test</scope>
669 </dependency>
670 <dependency>
671 <groupId>org.powermock</groupId>
672 <artifactId>powermock-module-junit4</artifactId>
673 <version>${powermock.version}</version>
674 <scope>test</scope>
675 </dependency>
676 <dependency>
677 <groupId>org.powermock</groupId>
678 <artifactId>powermock-api-easymock</artifactId>
679 <version>${powermock.version}</version>
680 <scope>test</scope>
681 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700682 </dependencies>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700683 <profiles>
684 <!-- Jenkins by default defines a property BUILD_NUMBER which is used to
685 enable the profile. -->
686 <profile>
687 <id>jenkins</id>
688 <activation>
689 <property>
690 <name>env.BUILD_NUMBER</name>
691 </property>
692 </activation>
693 <build>
694 <plugins>
695 <plugin>
696 <groupId>org.codehaus.mojo</groupId>
697 <artifactId>cobertura-maven-plugin</artifactId>
698 <version>${cobertura-maven-plugin.version}</version>
699 <configuration>
700 <formats>
701 <format>xml</format>
702 </formats>
703 </configuration>
704 <executions>
705 <execution>
706 <phase>package</phase>
707 <goals>
708 <goal>cobertura</goal>
709 </goals>
710 </execution>
711 </executions>
712 </plugin>
713 </plugins>
714 </build>
715 </profile>
716 </profiles>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700717</project>