blob: 2209d2fa15e0c938c1827102fc2363b49cfc2957 [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>
Ray Milkey10643572014-06-10 15:17:39 -0700114 <excludedGroups>net.onrc.onos.core.util.IntegrationTest</excludedGroups>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700115 </configuration>
116 </plugin>
117 <!-- exec:java -->
118 <plugin>
119 <groupId>org.codehaus.mojo</groupId>
120 <artifactId>exec-maven-plugin</artifactId>
121 <version>1.2.1</version>
122 <configuration>
Jonathan Hart51f6f5b2014-04-03 10:32:10 -0700123 <mainClass>net.onrc.onos.core.main.Main</mainClass>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700124 </configuration>
125 <executions>
126 </executions>
127 </plugin>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700128 <!--
129 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700130 <groupId>org.codehaus.mojo</groupId>
131 <artifactId>build-helper-maven-plugin</artifactId>
132 <version>1.7</version>
133 <executions>
134 <execution>
135 <id>add-source</id>
136 <phase>generate-sources</phase>
137 <goals>
138 <goal>add-source</goal>
139 </goals>
140 <configuration>
141 <sources>
142 <source>lib/gen-java</source>
143 </sources>
144 </configuration>
145 </execution>
146 </executions>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700147 </plugin>
148 -->
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>
157 <excludePackageNames>net.floodlightcontroller.*: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-->
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800182 <!--
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>
206 <configuration>
207 <descriptorRefs>
208 <descriptorRef>jar-with-dependencies</descriptorRef>
209 </descriptorRefs>
210 </configuration>
Jonathan Hart2c61a502013-10-18 18:12:26 -0700211 </plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800212 <plugin>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700213 <!-- Using groovy script to set maven property ${hostname}.
214 This is a workaround to get hostname as a property inside pom file,
215 which current Maven does not provide. -->
216 <groupId>org.codehaus.gmaven</groupId>
217 <artifactId>groovy-maven-plugin</artifactId>
218 <version>2.0</version>
219 <executions>
220 <execution>
221 <phase>initialize</phase>
222 <goals>
223 <goal>execute</goal>
224 </goals>
225 <configuration>
226 <source>
227 project.properties["hostname"] = InetAddress.getLocalHost().getHostName()
228 </source>
229 </configuration>
230 </execution>
231 </executions>
232 </plugin>
233 <plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-dependency-plugin</artifactId>
236 <version>2.8</version>
237 <executions>
238 <execution>
239 <id>build-classpath</id>
240 <phase>generate-sources</phase>
241 <goals>
242 <goal>build-classpath</goal>
243 </goals>
244 <configuration>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700245 <outputFile>${project.basedir}/.javacp.${hostname}</outputFile>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800246 </configuration>
247 </execution>
248 </executions>
249 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700250 <plugin>
251 <groupId>org.codehaus.mojo</groupId>
252 <artifactId>cobertura-maven-plugin</artifactId>
253 <version>${cobertura-maven-plugin.version}</version>
254 <configuration>
255 <instrumentation>
256 <ignores>
257 <ignore>org.slf4j.*</ignore>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700258 </ignores>
259 <excludes>
260 <exclude>org/openflow/**/*.class</exclude>
261 <exclude>net/floodlightcontroller/**/web/**/*.class</exclude>
262 </excludes>
263 </instrumentation>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700264 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700265 </configuration>
266 <executions>
267 <execution>
268 <goals>
269 <goal>clean</goal>
270 </goals>
271 </execution>
272 </executions>
273 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700274 <!-- Note: the findbugs configuration is also in the reporting section -->
275 <plugin>
276 <groupId>org.codehaus.mojo</groupId>
277 <artifactId>findbugs-maven-plugin</artifactId>
278 <version>${findbugs-plugin.version}</version>
279 <configuration>
280 <effort>${findbugs.effort}</effort>
281 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
282 </configuration>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700283 <executions>
284 <execution>
285 <id>validate-findbugs</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700286 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700287 <goals>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700288 <goal>check</goal>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700289 </goals>
290 </execution>
291 </executions>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700292 </plugin>
293 <plugin>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-pmd-plugin</artifactId>
296 <version>3.1</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700297 <configuration>
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700298 <!--
299 Note: Exclusion definition exists in multiple places.
300 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700301 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700302 - maven-pmd-plugin configuration in pom.xml
303 (under build and reporting)
304 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700305 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700306 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700307 <exclude>**/edu/stanford/**</exclude>
308 <exclude>**/net/floodlightcontroller/**</exclude>
309 <exclude>**/org/openflow/**</exclude>
310 </excludes>
311 <rulesets>
312 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
313 </rulesets>
314 </configuration>
315 <executions>
316 <execution>
317 <id>validate-pmd</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700318 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700319 <goals>
320 <!-- Uncomment this goal to make the build fail on pmd errors -->
321 <!--<goal>check</goal>-->
322 </goals>
323 </execution>
324 </executions>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700325 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700326 </plugins>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800327 <pluginManagement>
328 <plugins>
329 <!--This plugin's configuration is used to store Eclipse m2e settings
330 only. It has no influence on the Maven build itself. -->
331 <plugin>
332 <groupId>org.eclipse.m2e</groupId>
333 <artifactId>lifecycle-mapping</artifactId>
334 <version>1.0.0</version>
335 <configuration>
336 <lifecycleMappingMetadata>
337 <pluginExecutions>
338 <pluginExecution>
339 <pluginExecutionFilter>
340 <groupId>
341 org.apache.maven.plugins
342 </groupId>
343 <artifactId>
344 maven-dependency-plugin
345 </artifactId>
346 <versionRange>[2.8,)</versionRange>
347 <goals>
348 <goal>build-classpath</goal>
349 </goals>
350 </pluginExecutionFilter>
351 <action>
352 <ignore></ignore>
353 </action>
354 </pluginExecution>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700355 <pluginExecution>
356 <pluginExecutionFilter>
357 <groupId>org.codehaus.gmaven</groupId>
358 <artifactId>groovy-maven-plugin</artifactId>
359 <versionRange>[2.0,)</versionRange>
360 <goals>
361 <goal>execute</goal>
362 </goals>
363 </pluginExecutionFilter>
364 <action>
365 <ignore></ignore>
366 </action>
367 </pluginExecution>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800368 </pluginExecutions>
369 </lifecycleMappingMetadata>
370 </configuration>
371 </plugin>
372 </plugins>
373 </pluginManagement>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700374 </build>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700375 <!-- for getting visualization reporting -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700376 <reporting>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700377 <excludeDefaults>true</excludeDefaults>
378 <outputDirectory>${project.build.directory}/site</outputDirectory>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700379 <plugins>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700380 <!--
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700381 <plugin>
382 <groupId>org.apache.camel</groupId>
383 <artifactId>guice-maven-plugin</artifactId>
384 <version>2.11.0</version>
385 </plugin>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700386 -->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700387 <plugin>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-project-info-reports-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700390 <version>2.7</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700391 <configuration>
392 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
393 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
394 </configuration>
395 <reportSets>
396 <reportSet>
397 <reports>
398 <report>dependencies</report>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700399 <!--report>maven-emma-plugin</report-->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700400 <report>scm</report>
401 </reports>
402 </reportSet>
403 </reportSets>
404 </plugin>
405 <plugin>
406 <groupId>org.apache.maven.plugins</groupId>
407 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700408 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700409 <configuration>
410 <charset>UTF-8</charset>
411 <locale>en</locale>
Yuta HIGUCHIf4f9b282014-06-10 10:50:49 -0700412 <author>false</author>
413 <excludePackageNames>net.floodlightcontroller.*:net.onrc.onos.core.datastore.serializers</excludePackageNames>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700414 </configuration>
415 </plugin>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800416 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700417 <!-- Note: the checkstyle configuration is also in the build section -->
418 <groupId>org.apache.maven.plugins</groupId>
419 <artifactId>maven-checkstyle-plugin</artifactId>
420 <version>${checkstyle-plugin.version}</version>
421 <configuration>
422 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700423 <!--
424 Note: Exclusion definition exists in multiple places.
425 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
426 - maven-checkstyle-plugin configuration in pom.xml
427 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700428 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700429 -->
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -0700430 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700431 </configuration>
432 <reportSets>
433 <reportSet>
434 <reports>
435 <report>checkstyle</report>
436 </reports>
437 </reportSet>
438 </reportSets>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800439 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700440 <!-- Note: the findbugs configuration is also in the build section -->
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800441 <plugin>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700442 <groupId>org.codehaus.mojo</groupId>
443 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700444 <version>${findbugs-plugin.version}</version>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700445 <configuration>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700446 <effort>${findbugs.effort}</effort>
447 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700448 <reportPlugins>
449 <plugin>
450 <groupId>org.codehaus.mojo</groupId>
451 <artifactId>findbugs-maven-plugin</artifactId>
452 </plugin>
453 </reportPlugins>
454 </configuration>
455 </plugin>
456 <plugin>
457 <groupId>org.apache.maven.plugins</groupId>
458 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700459 <version>3.1</version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700460 <configuration>
461 <!--
462 Note: Exclusion definition exists in multiple places.
463 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700464 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700465 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700466 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700467 -->
468 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700469 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700470 <exclude>**/edu/stanford/**</exclude>
471 <exclude>**/net/floodlightcontroller/**</exclude>
472 <exclude>**/org/openflow/**</exclude>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700473 </excludes>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700474 <rulesets>
475 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
476 </rulesets>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700477 </configuration>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700478 </plugin>
479 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700480 <groupId>org.apache.maven.plugins</groupId>
481 <artifactId>maven-jxr-plugin</artifactId>
482 <version>2.4</version>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800483 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700484 <plugin>
485 <groupId>org.codehaus.mojo</groupId>
486 <artifactId>cobertura-maven-plugin</artifactId>
487 <version>${cobertura-maven-plugin.version}</version>
488 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700489 </plugins>
490 </reporting>
491 <dependencies>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800492 <!-- ONOS's direct dependencies -->
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700493 <dependency>
494 <groupId>com.esotericsoftware.kryo</groupId>
495 <artifactId>kryo</artifactId>
Yuta HIGUCHI6a518df2014-05-07 20:40:23 -0700496 <version>2.24.0</version>
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700497 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700498 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800499 <groupId>com.google.protobuf</groupId>
500 <artifactId>protobuf-java</artifactId>
501 <version>2.5.0</version>
yoshi28bac132014-01-22 11:00:17 -0800502 </dependency>
503 <dependency>
yoshi2fd4c7e2013-11-22 15:47:55 -0800504 <groupId>com.hazelcast</groupId>
505 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700506 <version>${hazelcast.version}</version>
507 </dependency>
508 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700509 <!-- Required for backend datastore as Hazelcast -->
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700510 <groupId>com.hazelcast</groupId>
511 <artifactId>hazelcast-client</artifactId>
512 <version>${hazelcast.version}</version>
yoshi2fd4c7e2013-11-22 15:47:55 -0800513 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700514 <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>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700521 <groupId>org.restlet.jse</groupId>
522 <artifactId>org.restlet</artifactId>
523 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700524 </dependency>
525 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700526 <groupId>org.restlet.jse</groupId>
527 <artifactId>org.restlet.ext.slf4j</artifactId>
528 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700529 </dependency>
530 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700531 <groupId>org.restlet.jse</groupId>
Ray Milkey3aeda4f2014-05-21 14:38:58 -0700532 <artifactId>org.restlet.ext.json</artifactId>
533 <version>${restlet.version}</version>
534 </dependency>
535 <dependency>
536 <groupId>org.restlet.jse</groupId>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700537 <artifactId>org.restlet.ext.jackson</artifactId>
538 <version>${restlet.version}</version>
539 </dependency>
540 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700541 <groupId>org.codehaus.jackson</groupId>
542 <artifactId>jackson-core-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700543 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700544 </dependency>
545 <dependency>
546 <groupId>org.codehaus.jackson</groupId>
547 <artifactId>jackson-mapper-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700548 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700549 </dependency>
550 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700551 <groupId>org.restlet.jse</groupId>
552 <artifactId>org.restlet.ext.simple</artifactId>
553 <version>${restlet.version}</version>
554 </dependency>
555 <dependency>
556 <groupId>org.simpleframework</groupId>
557 <artifactId>simple</artifactId>
558 <version>4.1.21</version>
559 </dependency>
560 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700561 <groupId>ch.qos.logback</groupId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700562 <artifactId>logback-classic</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700563 <version>1.0.13</version>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700564 <scope>runtime</scope>
565 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800566 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700567 <groupId>org.slf4j</groupId>
568 <artifactId>slf4j-api</artifactId>
569 <version>1.7.5</version>
570 </dependency>
571 <dependency>
572 <groupId>com.google.guava</groupId>
573 <artifactId>guava</artifactId>
574 <version>16.0.1</version>
575 </dependency>
576 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800577 <groupId>commons-configuration</groupId>
578 <artifactId>commons-configuration</artifactId>
579 <version>1.6</version>
580 </dependency>
581 <dependency>
Yuta HIGUCHI850b0042014-04-16 15:10:31 -0700582 <groupId>commons-lang</groupId>
583 <artifactId>commons-lang</artifactId>
584 <version>2.6</version>
585 </dependency>
586 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800587 <groupId>commons-httpclient</groupId>
588 <artifactId>commons-httpclient</artifactId>
589 <version>3.1</version>
590 </dependency>
591 <dependency>
Yuta HIGUCHId395b932014-05-01 15:15:20 -0700592 <groupId>commons-collections</groupId>
593 <artifactId>commons-collections</artifactId>
594 <version>3.2.1</version>
595 </dependency>
596 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800597 <groupId>org.apache.zookeeper</groupId>
598 <artifactId>zookeeper</artifactId>
Yuta HIGUCHIfb1905a2014-06-09 14:07:34 -0700599 <version>3.4.6</version>
Yuta HIGUCHI6d935e52014-03-28 10:34:26 -0700600 <scope>runtime</scope>
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>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700703 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700704 </configuration>
705 <executions>
706 <execution>
707 <phase>package</phase>
708 <goals>
709 <goal>cobertura</goal>
710 </goals>
711 </execution>
712 </executions>
713 </plugin>
714 </plugins>
715 </build>
716 </profile>
717 </profiles>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700718</project>