blob: 786ecb9258bd71eb444b8b238ee71ed7ab091de1 [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>
13 <repositories>
14 <repository>
15 <id>central</id>
16 <name>Maven Central repository</name>
17 <url>http://repo1.maven.org/maven2</url>
18 </repository>
19 <repository>
20 <id>maven-restlet</id>
21 <name>Public online Restlet repository</name>
22 <url>http://maven.restlet.org</url>
23 </repository>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070024 </repositories>
25 <properties>
26 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
yoshi2fd4c7e2013-11-22 15:47:55 -080027 <powermock.version>1.5.1</powermock.version>
Pankaj Berde37d6d4d2013-12-03 10:12:56 -080028 <restlet.version>2.1.4</restlet.version>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -070029 <cobertura-maven-plugin.version>2.6</cobertura-maven-plugin.version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -070030 <findbugs-plugin.version>2.5.3</findbugs-plugin.version>
31 <findbugs.effort>Max</findbugs.effort>
32 <findbugs.excludeFilterFile>conf/findbugs/exclude.xml</findbugs.excludeFilterFile>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070033 <checkstyle-plugin.version>2.12</checkstyle-plugin.version>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -080034 <!-- To publish javadoc to github,
35 uncomment com.github.github site-maven-plugin and
36 see https://github.com/OPENNETWORKINGLAB/ONOS/pull/425
37 <github.global.server>github</github.global.server>
38 -->
Yuta HIGUCHI6a643132014-03-18 22:39:27 -070039 <hazelcast.version>3.0.2</hazelcast.version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070040 </properties>
41 <build>
42 <plugins>
43 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -070044 <!-- Note: the checkstyle configuration is also in the reporting section -->
45 <groupId>org.apache.maven.plugins</groupId>
46 <artifactId>maven-checkstyle-plugin</artifactId>
47 <version>${checkstyle-plugin.version}</version>
48 <configuration>
49 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
50 <suppressionsLocation>
51 ${basedir}/conf/checkstyle/onos_suppressions.xml
52 </suppressionsLocation>
53 <failsOnError>false</failsOnError>
54 <logViolationsToConsole>true</logViolationsToConsole>
55 </configuration>
56 <executions>
57 <execution>
58 <id>validate-checkstyle</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -070059 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -070060 <goals>
61 <goal>check</goal>
62 </goals>
63 </execution>
64 </executions>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -080065 </plugin>
66 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070067 <groupId>org.apache.maven.plugins</groupId>
68 <artifactId>maven-install-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070069 <version>2.5.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070070 <executions>
71 </executions>
72 </plugin>
73 <!-- guice maven plugin for dependency injection inside maven -->
74 <plugin>
75 <groupId>org.apache.camel</groupId>
76 <artifactId>guice-maven-plugin</artifactId>
77 <version>2.11.0</version>
78 </plugin>
79 <!-- compile -->
80 <plugin>
81 <groupId>org.apache.maven.plugins</groupId>
82 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070083 <version>3.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070084 <configuration>
Yuta HIGUCHI641d9992013-12-18 16:40:45 -080085 <source>1.7</source>
86 <target>1.7</target>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070087 <encoding>UTF-8</encoding>
88 </configuration>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -070089 <executions>
90 </executions>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070091 </plugin>
92 <!-- test -->
93 <plugin>
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070096 <version>2.16</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070097 <configuration>
98 <excludes>
99 <!-- exclude all test cases for now -->
100 <!-- <exclude>**/storage/tests/StorageTest.java</exclude> -->
101 <!-- <exclude>**/test/*</exclude> -->
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700102 <!--
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700103 <exclude>**/test/*</exclude>
104 <exclude>**/Test*.java</exclude>
105 <exclude>**/*Test.java</exclude>
106 <exclude>**/*TestCase.java</exclude>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700107 -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700108 </excludes>
HIGUCHI Yuta71c96dd2013-10-20 17:15:56 -0700109 <argLine>-XX:MaxPermSize=256m</argLine>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800110 <redirectTestOutputToFile>true</redirectTestOutputToFile>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700111 </configuration>
112 </plugin>
113 <!-- exec:java -->
114 <plugin>
115 <groupId>org.codehaus.mojo</groupId>
116 <artifactId>exec-maven-plugin</artifactId>
117 <version>1.2.1</version>
118 <configuration>
Jonathan Hart51f6f5b2014-04-03 10:32:10 -0700119 <mainClass>net.onrc.onos.core.main.Main</mainClass>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700120 </configuration>
121 <executions>
122 </executions>
123 </plugin>
Jonathan Hart72f72f62013-06-12 09:54:19 +1200124 <!--<plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700125 <groupId>org.codehaus.mojo</groupId>
126 <artifactId>build-helper-maven-plugin</artifactId>
127 <version>1.7</version>
128 <executions>
129 <execution>
130 <id>add-source</id>
131 <phase>generate-sources</phase>
132 <goals>
133 <goal>add-source</goal>
134 </goals>
135 <configuration>
136 <sources>
137 <source>lib/gen-java</source>
138 </sources>
139 </configuration>
140 </execution>
141 </executions>
Jonathan Hart72f72f62013-06-12 09:54:19 +1200142 </plugin>-->
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>
366 <!-- for getting visualization reporting -->
367 <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 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700419 <suppressionsLocation>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700420 ${basedir}/conf/checkstyle/onos_suppressions.xml
421 </suppressionsLocation>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700422 </configuration>
423 <reportSets>
424 <reportSet>
425 <reports>
426 <report>checkstyle</report>
427 </reports>
428 </reportSet>
429 </reportSets>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800430 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700431 <!-- Note: the findbugs configuration is also in the build section -->
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800432 <plugin>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700433 <groupId>org.codehaus.mojo</groupId>
434 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700435 <version>${findbugs-plugin.version}</version>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700436 <configuration>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700437 <effort>${findbugs.effort}</effort>
438 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700439 <reportPlugins>
440 <plugin>
441 <groupId>org.codehaus.mojo</groupId>
442 <artifactId>findbugs-maven-plugin</artifactId>
443 </plugin>
444 </reportPlugins>
445 </configuration>
446 </plugin>
447 <plugin>
448 <groupId>org.apache.maven.plugins</groupId>
449 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700450 <version>3.1</version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700451 <configuration>
452 <!--
453 Note: Exclusion definition exists in multiple places.
454 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700455 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700456 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700457 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700458 -->
459 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700460 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700461 <exclude>**/edu/stanford/**</exclude>
462 <exclude>**/net/floodlightcontroller/**</exclude>
463 <exclude>**/org/openflow/**</exclude>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700464 </excludes>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700465 <rulesets>
466 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
467 </rulesets>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700468 </configuration>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700469 </plugin>
470 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700471 <groupId>org.apache.maven.plugins</groupId>
472 <artifactId>maven-jxr-plugin</artifactId>
473 <version>2.4</version>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800474 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700475 <plugin>
476 <groupId>org.codehaus.mojo</groupId>
477 <artifactId>cobertura-maven-plugin</artifactId>
478 <version>${cobertura-maven-plugin.version}</version>
479 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700480 </plugins>
481 </reporting>
482 <dependencies>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800483 <!-- ONOS's direct dependencies -->
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700484 <dependency>
485 <groupId>com.esotericsoftware.kryo</groupId>
486 <artifactId>kryo</artifactId>
487 <version>2.22</version>
488 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700489 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800490 <groupId>com.google.protobuf</groupId>
491 <artifactId>protobuf-java</artifactId>
492 <version>2.5.0</version>
yoshi28bac132014-01-22 11:00:17 -0800493 </dependency>
494 <dependency>
yoshi2fd4c7e2013-11-22 15:47:55 -0800495 <groupId>com.hazelcast</groupId>
496 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700497 <version>${hazelcast.version}</version>
498 </dependency>
499 <dependency>
500 <groupId>com.hazelcast</groupId>
501 <artifactId>hazelcast-client</artifactId>
502 <version>${hazelcast.version}</version>
yoshi2fd4c7e2013-11-22 15:47:55 -0800503 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700504 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700505 <groupId>net.sf.json-lib</groupId>
506 <artifactId>json-lib</artifactId>
507 <version>2.4</version>
508 <classifier>jdk15</classifier>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700509 </dependency>
510 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700511 <groupId>org.restlet.jse</groupId>
512 <artifactId>org.restlet</artifactId>
513 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700514 </dependency>
515 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700516 <groupId>org.restlet.jse</groupId>
517 <artifactId>org.restlet.ext.slf4j</artifactId>
518 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700519 </dependency>
520 <dependency>
521 <groupId>org.codehaus.jackson</groupId>
522 <artifactId>jackson-core-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700523 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700524 </dependency>
525 <dependency>
526 <groupId>org.codehaus.jackson</groupId>
527 <artifactId>jackson-mapper-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700528 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700529 </dependency>
530 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700531 <groupId>ch.qos.logback</groupId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700532 <artifactId>logback-classic</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700533 <version>1.0.13</version>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700534 <scope>runtime</scope>
535 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800536 <dependency>
537 <groupId>commons-configuration</groupId>
538 <artifactId>commons-configuration</artifactId>
539 <version>1.6</version>
540 </dependency>
541 <dependency>
Yuta HIGUCHI850b0042014-04-16 15:10:31 -0700542 <groupId>commons-lang</groupId>
543 <artifactId>commons-lang</artifactId>
544 <version>2.6</version>
545 </dependency>
546 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800547 <groupId>com.google.guava</groupId>
548 <artifactId>guava</artifactId>
549 <version>14.0.1</version>
550 </dependency>
551 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800552 <groupId>commons-httpclient</groupId>
553 <artifactId>commons-httpclient</artifactId>
554 <version>3.1</version>
555 </dependency>
556 <dependency>
557 <groupId>org.apache.zookeeper</groupId>
558 <artifactId>zookeeper</artifactId>
559 <version>3.4.5</version>
Yuta HIGUCHI6d935e52014-03-28 10:34:26 -0700560 <scope>runtime</scope>
561 <!-- Following workaround exclusions can be removed,
562 when we're ready to switch to ZooKeeper 3.4.6 -->
563 <exclusions>
564 <exclusion>
565 <groupId>com.sun.jmx</groupId>
566 <artifactId>jmxri</artifactId>
567 </exclusion>
568 <exclusion>
569 <groupId>com.sun.jdmk</groupId>
570 <artifactId>jmxtools</artifactId>
571 </exclusion>
572 <exclusion>
573 <groupId>javax.jms</groupId>
574 <artifactId>jms</artifactId>
575 </exclusion>
576 </exclusions>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800577 </dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700578 <!-- Floodlight's dependencies -->
579 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700580 <groupId>org.slf4j</groupId>
581 <artifactId>slf4j-api</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700582 <version>1.7.5</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700583 </dependency>
584 <dependency>
585 <groupId>org.restlet.jse</groupId>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700586 <artifactId>org.restlet.ext.jackson</artifactId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700587 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700588 </dependency>
589 <dependency>
590 <groupId>org.restlet.jse</groupId>
591 <artifactId>org.restlet.ext.simple</artifactId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700592 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700593 </dependency>
594 <dependency>
595 <groupId>org.simpleframework</groupId>
596 <artifactId>simple</artifactId>
597 <version>4.1.21</version>
598 </dependency>
599 <dependency>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700600 <groupId>io.netty</groupId>
601 <artifactId>netty-all</artifactId>
602 <version>4.0.8.Final</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700603 </dependency>
604 <dependency>
605 <groupId>args4j</groupId>
606 <artifactId>args4j</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700607 <version>2.0.25</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700608 </dependency>
609 <dependency>
610 <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
611 <artifactId>concurrentlinkedhashmap-lru</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700612 <version>1.4</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700613 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700614 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700615 <groupId>com.google.inject</groupId>
616 <artifactId>guice</artifactId>
617 <version>3.0</version>
618 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800619 <dependency>
620 <!-- dependency to old version of netty? -->
621 <groupId>org.jboss.netty</groupId>
622 <artifactId>netty</artifactId>
623 <version>3.2.7.Final</version>
624 </dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700625 <!-- Dependency for libraries used for testing -->
626 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700627 <groupId>junit</groupId>
628 <artifactId>junit</artifactId>
HIGUCHI Yutae4b07222013-06-08 02:17:30 -0700629 <version>4.11</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700630 <scope>test</scope>
631 </dependency>
632 <dependency>
Ray Milkey6688cd82014-03-11 16:40:46 -0700633 <groupId>org.hamcrest</groupId>
634 <artifactId>hamcrest-core</artifactId>
635 <version>1.3</version>
636 <scope>test</scope>
637 </dependency>
638 <dependency>
639 <groupId>org.hamcrest</groupId>
640 <artifactId>hamcrest-library</artifactId>
641 <version>1.3</version>
642 <scope>test</scope>
643 </dependency>
644 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700645 <groupId>org.easymock</groupId>
646 <artifactId>easymock</artifactId>
yoshif5a6a502013-11-25 09:30:35 -0800647 <version>3.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700648 <scope>test</scope>
649 </dependency>
650 <dependency>
HIGUCHI Yutae4b07222013-06-08 02:17:30 -0700651 <groupId>org.powermock</groupId>
652 <artifactId>powermock-module-junit4</artifactId>
653 <version>${powermock.version}</version>
654 <scope>test</scope>
655 </dependency>
656 <dependency>
657 <groupId>org.powermock</groupId>
658 <artifactId>powermock-api-easymock</artifactId>
659 <version>${powermock.version}</version>
660 <scope>test</scope>
661 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800662 <dependency>
663 <groupId>commons-io</groupId>
664 <artifactId>commons-io</artifactId>
665 <version>2.1</version>
666 <scope>test</scope>
667 </dependency>
Jonathan Hart116b1fe2014-03-14 18:53:47 -0700668 <dependency>
669 <groupId>org.apache.curator</groupId>
670 <artifactId>curator-framework</artifactId>
671 <version>2.4.1</version>
672 </dependency>
673 <dependency>
674 <groupId>org.apache.curator</groupId>
675 <artifactId>curator-client</artifactId>
676 <version>2.4.1</version>
677 </dependency>
678 <dependency>
679 <groupId>org.apache.curator</groupId>
680 <artifactId>curator-recipes</artifactId>
681 <version>2.4.1</version>
682 </dependency>
683 <dependency>
684 <groupId>org.apache.curator</groupId>
685 <artifactId>curator-x-discovery</artifactId>
686 <version>2.4.1</version>
687 </dependency>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700688 <dependency>
689 <groupId>org.codehaus.mojo</groupId>
690 <artifactId>findbugs-maven-plugin</artifactId>
691 <version>${findbugs-plugin.version}</version>
692 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700693 </dependencies>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700694 <profiles>
695 <!-- Jenkins by default defines a property BUILD_NUMBER which is used to
696 enable the profile. -->
697 <profile>
698 <id>jenkins</id>
699 <activation>
700 <property>
701 <name>env.BUILD_NUMBER</name>
702 </property>
703 </activation>
704 <build>
705 <plugins>
706 <plugin>
707 <groupId>org.codehaus.mojo</groupId>
708 <artifactId>cobertura-maven-plugin</artifactId>
709 <version>${cobertura-maven-plugin.version}</version>
710 <configuration>
711 <formats>
712 <format>xml</format>
713 </formats>
714 </configuration>
715 <executions>
716 <execution>
717 <phase>package</phase>
718 <goals>
719 <goal>cobertura</goal>
720 </goals>
721 </execution>
722 </executions>
723 </plugin>
724 </plugins>
725 </build>
726 </profile>
727 </profiles>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700728</project>