blob: 4a7fc59baf0eef06b9b6ea1252145ff6bdce31f0 [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 -->
Yuta HIGUCHI0fe749a2014-05-27 09:35:16 -070038 <findbugs.version>2.0.3</findbugs.version>
39 <findbugs-plugin.version>2.5.4</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 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>
Yuta HIGUCHI593ee4c2014-05-12 21:31:39 -070097 <compilerArgs>
98 <arg>-Xlint:all</arg>
99 <arg>-Xlint:-serial</arg>
Ray Milkeyff735142014-05-22 19:06:02 -0700100 <arg>-Werror</arg>
Yuta HIGUCHI593ee4c2014-05-12 21:31:39 -0700101 </compilerArgs>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700102 </configuration>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700103 <executions>
104 </executions>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700105 </plugin>
106 <!-- test -->
107 <plugin>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700110 <version>2.16</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700111 <configuration>
HIGUCHI Yuta71c96dd2013-10-20 17:15:56 -0700112 <argLine>-XX:MaxPermSize=256m</argLine>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800113 <redirectTestOutputToFile>true</redirectTestOutputToFile>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700114 </configuration>
115 </plugin>
116 <!-- exec:java -->
117 <plugin>
118 <groupId>org.codehaus.mojo</groupId>
119 <artifactId>exec-maven-plugin</artifactId>
120 <version>1.2.1</version>
121 <configuration>
Jonathan Hart51f6f5b2014-04-03 10:32:10 -0700122 <mainClass>net.onrc.onos.core.main.Main</mainClass>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700123 </configuration>
124 <executions>
125 </executions>
126 </plugin>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700127 <!--
128 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700129 <groupId>org.codehaus.mojo</groupId>
130 <artifactId>build-helper-maven-plugin</artifactId>
131 <version>1.7</version>
132 <executions>
133 <execution>
134 <id>add-source</id>
135 <phase>generate-sources</phase>
136 <goals>
137 <goal>add-source</goal>
138 </goals>
139 <configuration>
140 <sources>
141 <source>lib/gen-java</source>
142 </sources>
143 </configuration>
144 </execution>
145 </executions>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700146 </plugin>
147 -->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700148 <plugin>
149 <groupId>org.apache.maven.plugins</groupId>
150 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700151 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700152 <configuration>
153 <charset>UTF-8</charset>
154 <locale>en</locale>
Yuta HIGUCHIf4f9b282014-06-10 10:50:49 -0700155 <author>false</author>
156 <excludePackageNames>net.floodlightcontroller.*:net.onrc.onos.core.datastore.serializers</excludePackageNames>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700157 </configuration>
158 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700159<!-- Remove me when we're sure that system test no longer need JaCoCo
timlindberg8b13e702013-07-17 14:45:50 -0700160 <plugin>
161 <groupId>org.jacoco</groupId>
162 <artifactId>jacoco-maven-plugin</artifactId>
163 <version>0.6.3.201306030806</version>
timlindberg8b13e702013-07-17 14:45:50 -0700164 <executions>
165 <execution>
166 <id>jacoco-initialize</id>
167 <goals>
168 <goal>prepare-agent</goal>
169 </goals>
170 </execution>
171 <execution>
172 <id>jacoco-site</id>
173 <phase>package</phase>
174 <goals>
175 <goal>report</goal>
176 </goals>
177 </execution>
178 </executions>
179 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700180-->
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800181 <!--
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700182 <plugin>
183 <groupId>com.github.github</groupId>
184 <artifactId>site-maven-plugin</artifactId>
185 <version>0.8</version>
186 <configuration>
187 <message>Creating site for ${project.version}</message>
188 <dryRun>true</dryRun>
189 <repositoryName>ONOS</repositoryName>
190 <repositoryOwner>OPENNETWORKINGLAB</repositoryOwner>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800191 <path>javadoc/${project.version}/</path>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700192 </configuration>
193 <executions>
194 <execution>
195 <goals>
196 <goal>site</goal>
197 </goals>
198 <phase>site</phase>
199 </execution>
200 </executions>
201 </plugin>
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800202 -->
Jonathan Hart2c61a502013-10-18 18:12:26 -0700203 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700204 <artifactId>maven-assembly-plugin</artifactId>
205 <configuration>
206 <descriptorRefs>
207 <descriptorRef>jar-with-dependencies</descriptorRef>
208 </descriptorRefs>
209 </configuration>
Jonathan Hart2c61a502013-10-18 18:12:26 -0700210 </plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800211 <plugin>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700212 <!-- Using groovy script to set maven property ${hostname}.
213 This is a workaround to get hostname as a property inside pom file,
214 which current Maven does not provide. -->
215 <groupId>org.codehaus.gmaven</groupId>
216 <artifactId>groovy-maven-plugin</artifactId>
217 <version>2.0</version>
218 <executions>
219 <execution>
220 <phase>initialize</phase>
221 <goals>
222 <goal>execute</goal>
223 </goals>
224 <configuration>
225 <source>
226 project.properties["hostname"] = InetAddress.getLocalHost().getHostName()
227 </source>
228 </configuration>
229 </execution>
230 </executions>
231 </plugin>
232 <plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-dependency-plugin</artifactId>
235 <version>2.8</version>
236 <executions>
237 <execution>
238 <id>build-classpath</id>
239 <phase>generate-sources</phase>
240 <goals>
241 <goal>build-classpath</goal>
242 </goals>
243 <configuration>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700244 <outputFile>${project.basedir}/.javacp.${hostname}</outputFile>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800245 </configuration>
246 </execution>
247 </executions>
248 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700249 <plugin>
250 <groupId>org.codehaus.mojo</groupId>
251 <artifactId>cobertura-maven-plugin</artifactId>
252 <version>${cobertura-maven-plugin.version}</version>
253 <configuration>
254 <instrumentation>
255 <ignores>
256 <ignore>org.slf4j.*</ignore>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700257 </ignores>
258 <excludes>
259 <exclude>org/openflow/**/*.class</exclude>
260 <exclude>net/floodlightcontroller/**/web/**/*.class</exclude>
261 </excludes>
262 </instrumentation>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700263 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700264 </configuration>
265 <executions>
266 <execution>
267 <goals>
268 <goal>clean</goal>
269 </goals>
270 </execution>
271 </executions>
272 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700273 <!-- Note: the findbugs configuration is also in the reporting section -->
274 <plugin>
275 <groupId>org.codehaus.mojo</groupId>
276 <artifactId>findbugs-maven-plugin</artifactId>
277 <version>${findbugs-plugin.version}</version>
278 <configuration>
279 <effort>${findbugs.effort}</effort>
280 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
281 </configuration>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700282 <executions>
283 <execution>
284 <id>validate-findbugs</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700285 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700286 <goals>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700287 <goal>check</goal>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700288 </goals>
289 </execution>
290 </executions>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700291 </plugin>
292 <plugin>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-pmd-plugin</artifactId>
295 <version>3.1</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700296 <configuration>
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700297 <!--
298 Note: Exclusion definition exists in multiple places.
299 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700300 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700301 - maven-pmd-plugin configuration in pom.xml
302 (under build and reporting)
303 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700304 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700305 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700306 <exclude>**/edu/stanford/**</exclude>
307 <exclude>**/net/floodlightcontroller/**</exclude>
308 <exclude>**/org/openflow/**</exclude>
309 </excludes>
310 <rulesets>
311 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
312 </rulesets>
313 </configuration>
314 <executions>
315 <execution>
316 <id>validate-pmd</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700317 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700318 <goals>
319 <!-- Uncomment this goal to make the build fail on pmd errors -->
320 <!--<goal>check</goal>-->
321 </goals>
322 </execution>
323 </executions>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700324 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700325 </plugins>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800326 <pluginManagement>
327 <plugins>
328 <!--This plugin's configuration is used to store Eclipse m2e settings
329 only. It has no influence on the Maven build itself. -->
330 <plugin>
331 <groupId>org.eclipse.m2e</groupId>
332 <artifactId>lifecycle-mapping</artifactId>
333 <version>1.0.0</version>
334 <configuration>
335 <lifecycleMappingMetadata>
336 <pluginExecutions>
337 <pluginExecution>
338 <pluginExecutionFilter>
339 <groupId>
340 org.apache.maven.plugins
341 </groupId>
342 <artifactId>
343 maven-dependency-plugin
344 </artifactId>
345 <versionRange>[2.8,)</versionRange>
346 <goals>
347 <goal>build-classpath</goal>
348 </goals>
349 </pluginExecutionFilter>
350 <action>
351 <ignore></ignore>
352 </action>
353 </pluginExecution>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700354 <pluginExecution>
355 <pluginExecutionFilter>
356 <groupId>org.codehaus.gmaven</groupId>
357 <artifactId>groovy-maven-plugin</artifactId>
358 <versionRange>[2.0,)</versionRange>
359 <goals>
360 <goal>execute</goal>
361 </goals>
362 </pluginExecutionFilter>
363 <action>
364 <ignore></ignore>
365 </action>
366 </pluginExecution>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800367 </pluginExecutions>
368 </lifecycleMappingMetadata>
369 </configuration>
370 </plugin>
371 </plugins>
372 </pluginManagement>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700373 </build>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700374 <!-- for getting visualization reporting -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700375 <reporting>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700376 <excludeDefaults>true</excludeDefaults>
377 <outputDirectory>${project.build.directory}/site</outputDirectory>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700378 <plugins>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700379 <!--
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700380 <plugin>
381 <groupId>org.apache.camel</groupId>
382 <artifactId>guice-maven-plugin</artifactId>
383 <version>2.11.0</version>
384 </plugin>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700385 -->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700386 <plugin>
387 <groupId>org.apache.maven.plugins</groupId>
388 <artifactId>maven-project-info-reports-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700389 <version>2.7</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700390 <configuration>
391 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
392 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
393 </configuration>
394 <reportSets>
395 <reportSet>
396 <reports>
397 <report>dependencies</report>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700398 <!--report>maven-emma-plugin</report-->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700399 <report>scm</report>
400 </reports>
401 </reportSet>
402 </reportSets>
403 </plugin>
404 <plugin>
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700407 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700408 <configuration>
409 <charset>UTF-8</charset>
410 <locale>en</locale>
Yuta HIGUCHIf4f9b282014-06-10 10:50:49 -0700411 <author>false</author>
412 <excludePackageNames>net.floodlightcontroller.*:net.onrc.onos.core.datastore.serializers</excludePackageNames>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700413 </configuration>
414 </plugin>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800415 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700416 <!-- Note: the checkstyle configuration is also in the build section -->
417 <groupId>org.apache.maven.plugins</groupId>
418 <artifactId>maven-checkstyle-plugin</artifactId>
419 <version>${checkstyle-plugin.version}</version>
420 <configuration>
421 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700422 <!--
423 Note: Exclusion definition exists in multiple places.
424 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
425 - maven-checkstyle-plugin configuration in pom.xml
426 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700427 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700428 -->
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -0700429 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700430 </configuration>
431 <reportSets>
432 <reportSet>
433 <reports>
434 <report>checkstyle</report>
435 </reports>
436 </reportSet>
437 </reportSets>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800438 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700439 <!-- Note: the findbugs configuration is also in the build section -->
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800440 <plugin>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700441 <groupId>org.codehaus.mojo</groupId>
442 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700443 <version>${findbugs-plugin.version}</version>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700444 <configuration>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700445 <effort>${findbugs.effort}</effort>
446 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700447 <reportPlugins>
448 <plugin>
449 <groupId>org.codehaus.mojo</groupId>
450 <artifactId>findbugs-maven-plugin</artifactId>
451 </plugin>
452 </reportPlugins>
453 </configuration>
454 </plugin>
455 <plugin>
456 <groupId>org.apache.maven.plugins</groupId>
457 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700458 <version>3.1</version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700459 <configuration>
460 <!--
461 Note: Exclusion definition exists in multiple places.
462 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700463 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700464 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700465 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700466 -->
467 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700468 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700469 <exclude>**/edu/stanford/**</exclude>
470 <exclude>**/net/floodlightcontroller/**</exclude>
471 <exclude>**/org/openflow/**</exclude>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700472 </excludes>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700473 <rulesets>
474 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
475 </rulesets>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700476 </configuration>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700477 </plugin>
478 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700479 <groupId>org.apache.maven.plugins</groupId>
480 <artifactId>maven-jxr-plugin</artifactId>
481 <version>2.4</version>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800482 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700483 <plugin>
484 <groupId>org.codehaus.mojo</groupId>
485 <artifactId>cobertura-maven-plugin</artifactId>
486 <version>${cobertura-maven-plugin.version}</version>
487 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700488 </plugins>
489 </reporting>
490 <dependencies>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800491 <!-- ONOS's direct dependencies -->
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700492 <dependency>
493 <groupId>com.esotericsoftware.kryo</groupId>
494 <artifactId>kryo</artifactId>
Yuta HIGUCHI6a518df2014-05-07 20:40:23 -0700495 <version>2.24.0</version>
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700496 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700497 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800498 <groupId>com.google.protobuf</groupId>
499 <artifactId>protobuf-java</artifactId>
500 <version>2.5.0</version>
yoshi28bac132014-01-22 11:00:17 -0800501 </dependency>
502 <dependency>
yoshi2fd4c7e2013-11-22 15:47:55 -0800503 <groupId>com.hazelcast</groupId>
504 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700505 <version>${hazelcast.version}</version>
506 </dependency>
507 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700508 <!-- Required for backend datastore as Hazelcast -->
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700509 <groupId>com.hazelcast</groupId>
510 <artifactId>hazelcast-client</artifactId>
511 <version>${hazelcast.version}</version>
yoshi2fd4c7e2013-11-22 15:47:55 -0800512 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700513 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700514 <groupId>net.sf.json-lib</groupId>
515 <artifactId>json-lib</artifactId>
516 <version>2.4</version>
517 <classifier>jdk15</classifier>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700518 </dependency>
519 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700520 <groupId>org.restlet.jse</groupId>
521 <artifactId>org.restlet</artifactId>
522 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700523 </dependency>
524 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700525 <groupId>org.restlet.jse</groupId>
526 <artifactId>org.restlet.ext.slf4j</artifactId>
527 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700528 </dependency>
529 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700530 <groupId>org.restlet.jse</groupId>
Ray Milkey3aeda4f2014-05-21 14:38:58 -0700531 <artifactId>org.restlet.ext.json</artifactId>
532 <version>${restlet.version}</version>
533 </dependency>
534 <dependency>
535 <groupId>org.restlet.jse</groupId>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700536 <artifactId>org.restlet.ext.jackson</artifactId>
537 <version>${restlet.version}</version>
538 </dependency>
539 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700540 <groupId>org.codehaus.jackson</groupId>
541 <artifactId>jackson-core-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700542 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700543 </dependency>
544 <dependency>
545 <groupId>org.codehaus.jackson</groupId>
546 <artifactId>jackson-mapper-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700547 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700548 </dependency>
549 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700550 <groupId>org.restlet.jse</groupId>
551 <artifactId>org.restlet.ext.simple</artifactId>
552 <version>${restlet.version}</version>
553 </dependency>
554 <dependency>
555 <groupId>org.simpleframework</groupId>
556 <artifactId>simple</artifactId>
557 <version>4.1.21</version>
558 </dependency>
559 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700560 <groupId>ch.qos.logback</groupId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700561 <artifactId>logback-classic</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700562 <version>1.0.13</version>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700563 <scope>runtime</scope>
564 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800565 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700566 <groupId>org.slf4j</groupId>
567 <artifactId>slf4j-api</artifactId>
568 <version>1.7.5</version>
569 </dependency>
570 <dependency>
571 <groupId>com.google.guava</groupId>
572 <artifactId>guava</artifactId>
573 <version>16.0.1</version>
574 </dependency>
575 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800576 <groupId>commons-configuration</groupId>
577 <artifactId>commons-configuration</artifactId>
578 <version>1.6</version>
579 </dependency>
580 <dependency>
Yuta HIGUCHI850b0042014-04-16 15:10:31 -0700581 <groupId>commons-lang</groupId>
582 <artifactId>commons-lang</artifactId>
583 <version>2.6</version>
584 </dependency>
585 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800586 <groupId>commons-httpclient</groupId>
587 <artifactId>commons-httpclient</artifactId>
588 <version>3.1</version>
589 </dependency>
590 <dependency>
Yuta HIGUCHId395b932014-05-01 15:15:20 -0700591 <groupId>commons-collections</groupId>
592 <artifactId>commons-collections</artifactId>
593 <version>3.2.1</version>
594 </dependency>
595 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800596 <groupId>org.apache.zookeeper</groupId>
597 <artifactId>zookeeper</artifactId>
Yuta HIGUCHIfb1905a2014-06-09 14:07:34 -0700598 <version>3.4.6</version>
Yuta HIGUCHI6d935e52014-03-28 10:34:26 -0700599 <scope>runtime</scope>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800600 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800601 <dependency>
Jonathan Hart116b1fe2014-03-14 18:53:47 -0700602 <groupId>org.apache.curator</groupId>
603 <artifactId>curator-framework</artifactId>
604 <version>2.4.1</version>
605 </dependency>
606 <dependency>
607 <groupId>org.apache.curator</groupId>
608 <artifactId>curator-client</artifactId>
609 <version>2.4.1</version>
610 </dependency>
611 <dependency>
612 <groupId>org.apache.curator</groupId>
613 <artifactId>curator-recipes</artifactId>
614 <version>2.4.1</version>
615 </dependency>
616 <dependency>
617 <groupId>org.apache.curator</groupId>
618 <artifactId>curator-x-discovery</artifactId>
619 <version>2.4.1</version>
620 </dependency>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700621 <dependency>
Yuta HIGUCHI042e82a2014-04-25 22:37:03 -0700622 <!-- findbugs suppression annotation -->
623 <groupId>com.google.code.findbugs</groupId>
624 <artifactId>findbugs</artifactId>
625 <version>${findbugs.version}</version>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700626 </dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700627 <!-- Floodlight's dependencies -->
628 <dependency>
629 <groupId>args4j</groupId>
630 <artifactId>args4j</artifactId>
631 <version>2.0.25</version>
632 </dependency>
633 <dependency>
634 <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
635 <artifactId>concurrentlinkedhashmap-lru</artifactId>
636 <version>1.4</version>
637 </dependency>
638 <dependency>
639 <!-- dependency to old version of netty? -->
640 <groupId>org.jboss.netty</groupId>
641 <artifactId>netty</artifactId>
642 <version>3.2.7.Final</version>
643 </dependency>
644 <!-- Dependency for libraries used for testing -->
645 <dependency>
646 <groupId>junit</groupId>
647 <artifactId>junit</artifactId>
648 <version>4.11</version>
649 <scope>test</scope>
650 </dependency>
651 <dependency>
652 <groupId>org.hamcrest</groupId>
653 <artifactId>hamcrest-core</artifactId>
654 <version>1.3</version>
655 <scope>test</scope>
656 </dependency>
657 <dependency>
658 <groupId>org.hamcrest</groupId>
659 <artifactId>hamcrest-library</artifactId>
660 <version>1.3</version>
661 <scope>test</scope>
662 </dependency>
663 <dependency>
664 <groupId>org.easymock</groupId>
665 <artifactId>easymock</artifactId>
666 <version>3.1</version>
667 <scope>test</scope>
668 </dependency>
669 <dependency>
670 <groupId>org.powermock</groupId>
671 <artifactId>powermock-module-junit4</artifactId>
672 <version>${powermock.version}</version>
673 <scope>test</scope>
674 </dependency>
675 <dependency>
676 <groupId>org.powermock</groupId>
677 <artifactId>powermock-api-easymock</artifactId>
678 <version>${powermock.version}</version>
679 <scope>test</scope>
680 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700681 </dependencies>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700682 <profiles>
683 <!-- Jenkins by default defines a property BUILD_NUMBER which is used to
684 enable the profile. -->
685 <profile>
686 <id>jenkins</id>
687 <activation>
688 <property>
689 <name>env.BUILD_NUMBER</name>
690 </property>
691 </activation>
692 <build>
693 <plugins>
694 <plugin>
695 <groupId>org.codehaus.mojo</groupId>
696 <artifactId>cobertura-maven-plugin</artifactId>
697 <version>${cobertura-maven-plugin.version}</version>
698 <configuration>
699 <formats>
700 <format>xml</format>
701 </formats>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700702 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700703 </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>