blob: 2c5762a54ae959b235284eaa5fa6216f808232d0 [file] [log] [blame]
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -07001<?xml version="1.0"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4 <prerequisites>
5 <maven>3.0.4</maven>
6 </prerequisites>
7 <groupId>net.onrc.onos</groupId>
Pankaj Berdebbd38612013-06-22 05:59:12 -07008 <artifactId>onos</artifactId>
Yuta HIGUCHI43653222014-06-17 18:23:32 -07009 <version>0.3.0-SNAPSHOT</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070010 <packaging>jar</packaging>
Yuta HIGUCHIf232d0f2014-04-16 09:23:02 -070011 <name>ONOS</name>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070012 <url>http://onlab.us/</url>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -070013 <licenses>
14 <license>
15 <name>Apache License, Version 2.0</name>
16 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
17 </license>
18 </licenses>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070019 <repositories>
20 <repository>
21 <id>central</id>
22 <name>Maven Central repository</name>
23 <url>http://repo1.maven.org/maven2</url>
24 </repository>
25 <repository>
26 <id>maven-restlet</id>
27 <name>Public online Restlet repository</name>
28 <url>http://maven.restlet.org</url>
29 </repository>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070030 </repositories>
31 <properties>
32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
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 HIGUCHI33a04972014-06-03 13:00:15 -070048 <hazelcast.version>3.2.3</hazelcast.version>
Ray Milkey26921af2014-06-30 16:27:40 -070049 <metrics.version>3.0.1</metrics.version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070050 </properties>
51 <build>
52 <plugins>
53 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -070054 <!-- Note: the checkstyle configuration is also in the reporting section -->
55 <groupId>org.apache.maven.plugins</groupId>
56 <artifactId>maven-checkstyle-plugin</artifactId>
57 <version>${checkstyle-plugin.version}</version>
58 <configuration>
59 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -070060 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Ray Milkeyb5716c52014-04-07 11:38:27 -070061 <failsOnError>false</failsOnError>
62 <logViolationsToConsole>true</logViolationsToConsole>
Yuta HIGUCHI91a8f502014-06-17 10:15:29 -070063 <includeTestSourceDirectory>true</includeTestSourceDirectory>
Ray Milkeyb5716c52014-04-07 11:38:27 -070064 </configuration>
65 <executions>
66 <execution>
67 <id>validate-checkstyle</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -070068 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -070069 <goals>
70 <goal>check</goal>
71 </goals>
72 </execution>
73 </executions>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -080074 </plugin>
75 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070076 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-install-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070078 <version>2.5.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070079 <executions>
80 </executions>
81 </plugin>
82 <!-- guice maven plugin for dependency injection inside maven -->
83 <plugin>
84 <groupId>org.apache.camel</groupId>
85 <artifactId>guice-maven-plugin</artifactId>
86 <version>2.11.0</version>
87 </plugin>
Yuta HIGUCHI34a66462014-06-17 16:05:30 -070088 <plugin>
89 <artifactId>maven-clean-plugin</artifactId>
90 <version>2.5</version>
91 </plugin>
92 <plugin>
93 <artifactId>maven-deploy-plugin</artifactId>
94 <version>2.8</version>
95 </plugin>
96 <plugin>
97 <artifactId>maven-jar-plugin</artifactId>
98 <version>2.4</version>
99 </plugin>
100 <plugin>
101 <artifactId>maven-resources-plugin</artifactId>
102 <version>2.6</version>
103 </plugin>
104 <plugin>
105 <artifactId>maven-site-plugin</artifactId>
106 <version>3.3</version>
107 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700108 <plugin>
109 <groupId>org.apache.maven.plugins</groupId>
110 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700111 <version>3.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700112 <configuration>
Yuta HIGUCHI641d9992013-12-18 16:40:45 -0800113 <source>1.7</source>
114 <target>1.7</target>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700115 <encoding>UTF-8</encoding>
Yuta HIGUCHIe636d472014-04-25 09:43:44 -0700116 <showDeprecation>true</showDeprecation>
117 <showWarnings>true</showWarnings>
Yuta HIGUCHI593ee4c2014-05-12 21:31:39 -0700118 <compilerArgs>
119 <arg>-Xlint:all</arg>
120 <arg>-Xlint:-serial</arg>
Ray Milkeyff735142014-05-22 19:06:02 -0700121 <arg>-Werror</arg>
Yuta HIGUCHI593ee4c2014-05-12 21:31:39 -0700122 </compilerArgs>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700123 </configuration>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700124 <executions>
125 </executions>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700126 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700127 <plugin>
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700130 <version>2.16</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700131 <configuration>
HIGUCHI Yuta71c96dd2013-10-20 17:15:56 -0700132 <argLine>-XX:MaxPermSize=256m</argLine>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800133 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Ray Milkey10643572014-06-10 15:17:39 -0700134 <excludedGroups>net.onrc.onos.core.util.IntegrationTest</excludedGroups>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700135 </configuration>
136 </plugin>
Yuta HIGUCHI34a66462014-06-17 16:05:30 -0700137 <!-- TODO exec:java no longer used remove at some point? -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700138 <plugin>
139 <groupId>org.codehaus.mojo</groupId>
140 <artifactId>exec-maven-plugin</artifactId>
141 <version>1.2.1</version>
142 <configuration>
Jonathan Hart51f6f5b2014-04-03 10:32:10 -0700143 <mainClass>net.onrc.onos.core.main.Main</mainClass>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700144 </configuration>
145 <executions>
146 </executions>
147 </plugin>
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-->
Yuta HIGUCHI34a66462014-06-17 16:05:30 -0700181 <!-- Uncomment when publishing javadoc to github in the future.
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>
Yuta HIGUCHI34a66462014-06-17 16:05:30 -0700205 <version>2.4</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700206 <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>
Yuta HIGUCHIee818992014-06-18 10:10:10 -0700260 <exclude>edu/stanford/ramcloud/**/*.class</exclude>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700261 <exclude>org/openflow/**/*.class</exclude>
262 <exclude>net/floodlightcontroller/**/web/**/*.class</exclude>
263 </excludes>
264 </instrumentation>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700265 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700266 </configuration>
267 <executions>
268 <execution>
269 <goals>
270 <goal>clean</goal>
271 </goals>
272 </execution>
273 </executions>
274 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700275 <!-- Note: the findbugs configuration is also in the reporting section -->
276 <plugin>
277 <groupId>org.codehaus.mojo</groupId>
278 <artifactId>findbugs-maven-plugin</artifactId>
279 <version>${findbugs-plugin.version}</version>
280 <configuration>
281 <effort>${findbugs.effort}</effort>
282 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
283 </configuration>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700284 <executions>
285 <execution>
286 <id>validate-findbugs</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700287 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700288 <goals>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700289 <goal>check</goal>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700290 </goals>
291 </execution>
292 </executions>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700293 </plugin>
294 <plugin>
295 <groupId>org.apache.maven.plugins</groupId>
296 <artifactId>maven-pmd-plugin</artifactId>
297 <version>3.1</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700298 <configuration>
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700299 <!--
300 Note: Exclusion definition exists in multiple places.
301 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700302 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700303 - maven-pmd-plugin configuration in pom.xml
304 (under build and reporting)
305 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700306 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700307 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700308 <exclude>**/edu/stanford/**</exclude>
309 <exclude>**/net/floodlightcontroller/**</exclude>
310 <exclude>**/org/openflow/**</exclude>
311 </excludes>
312 <rulesets>
313 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
314 </rulesets>
315 </configuration>
316 <executions>
317 <execution>
318 <id>validate-pmd</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700319 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700320 <goals>
321 <!-- Uncomment this goal to make the build fail on pmd errors -->
322 <!--<goal>check</goal>-->
323 </goals>
324 </execution>
325 </executions>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700326 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700327 </plugins>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800328 <pluginManagement>
329 <plugins>
330 <!--This plugin's configuration is used to store Eclipse m2e settings
331 only. It has no influence on the Maven build itself. -->
332 <plugin>
333 <groupId>org.eclipse.m2e</groupId>
334 <artifactId>lifecycle-mapping</artifactId>
335 <version>1.0.0</version>
336 <configuration>
337 <lifecycleMappingMetadata>
338 <pluginExecutions>
339 <pluginExecution>
340 <pluginExecutionFilter>
341 <groupId>
342 org.apache.maven.plugins
343 </groupId>
344 <artifactId>
345 maven-dependency-plugin
346 </artifactId>
347 <versionRange>[2.8,)</versionRange>
348 <goals>
349 <goal>build-classpath</goal>
350 </goals>
351 </pluginExecutionFilter>
352 <action>
353 <ignore></ignore>
354 </action>
355 </pluginExecution>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700356 <pluginExecution>
357 <pluginExecutionFilter>
358 <groupId>org.codehaus.gmaven</groupId>
359 <artifactId>groovy-maven-plugin</artifactId>
360 <versionRange>[2.0,)</versionRange>
361 <goals>
362 <goal>execute</goal>
363 </goals>
364 </pluginExecutionFilter>
365 <action>
366 <ignore></ignore>
367 </action>
368 </pluginExecution>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800369 </pluginExecutions>
370 </lifecycleMappingMetadata>
371 </configuration>
372 </plugin>
373 </plugins>
374 </pluginManagement>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700375 </build>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700376 <!-- for getting visualization reporting -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700377 <reporting>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700378 <excludeDefaults>true</excludeDefaults>
379 <outputDirectory>${project.build.directory}/site</outputDirectory>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700380 <plugins>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700381 <plugin>
382 <groupId>org.apache.maven.plugins</groupId>
383 <artifactId>maven-project-info-reports-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700384 <version>2.7</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700385 <configuration>
386 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
387 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
388 </configuration>
389 <reportSets>
390 <reportSet>
391 <reports>
392 <report>dependencies</report>
393 <report>scm</report>
394 </reports>
395 </reportSet>
396 </reportSets>
397 </plugin>
398 <plugin>
399 <groupId>org.apache.maven.plugins</groupId>
400 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700401 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700402 <configuration>
403 <charset>UTF-8</charset>
404 <locale>en</locale>
Yuta HIGUCHIf4f9b282014-06-10 10:50:49 -0700405 <author>false</author>
406 <excludePackageNames>net.floodlightcontroller.*:net.onrc.onos.core.datastore.serializers</excludePackageNames>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700407 </configuration>
408 </plugin>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800409 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700410 <!-- Note: the checkstyle configuration is also in the build section -->
411 <groupId>org.apache.maven.plugins</groupId>
412 <artifactId>maven-checkstyle-plugin</artifactId>
413 <version>${checkstyle-plugin.version}</version>
414 <configuration>
415 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700416 <!--
417 Note: Exclusion definition exists in multiple places.
418 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
419 - maven-checkstyle-plugin configuration in pom.xml
420 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700421 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700422 -->
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -0700423 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Yuta HIGUCHI91a8f502014-06-17 10:15:29 -0700424 <includeTestSourceDirectory>true</includeTestSourceDirectory>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700425 </configuration>
426 <reportSets>
427 <reportSet>
428 <reports>
429 <report>checkstyle</report>
430 </reports>
431 </reportSet>
432 </reportSets>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800433 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700434 <!-- Note: the findbugs configuration is also in the build section -->
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800435 <plugin>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700436 <groupId>org.codehaus.mojo</groupId>
437 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700438 <version>${findbugs-plugin.version}</version>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700439 <configuration>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700440 <effort>${findbugs.effort}</effort>
441 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700442 <reportPlugins>
443 <plugin>
444 <groupId>org.codehaus.mojo</groupId>
445 <artifactId>findbugs-maven-plugin</artifactId>
446 </plugin>
447 </reportPlugins>
448 </configuration>
449 </plugin>
450 <plugin>
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700453 <version>3.1</version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700454 <configuration>
455 <!--
456 Note: Exclusion definition exists in multiple places.
457 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700458 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700459 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700460 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700461 -->
462 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700463 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700464 <exclude>**/edu/stanford/**</exclude>
465 <exclude>**/net/floodlightcontroller/**</exclude>
466 <exclude>**/org/openflow/**</exclude>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700467 </excludes>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700468 <rulesets>
469 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
470 </rulesets>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700471 </configuration>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700472 </plugin>
473 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700474 <groupId>org.apache.maven.plugins</groupId>
475 <artifactId>maven-jxr-plugin</artifactId>
476 <version>2.4</version>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800477 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700478 <plugin>
479 <groupId>org.codehaus.mojo</groupId>
480 <artifactId>cobertura-maven-plugin</artifactId>
481 <version>${cobertura-maven-plugin.version}</version>
482 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700483 </plugins>
484 </reporting>
485 <dependencies>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800486 <!-- ONOS's direct dependencies -->
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700487 <dependency>
488 <groupId>com.esotericsoftware.kryo</groupId>
489 <artifactId>kryo</artifactId>
Yuta HIGUCHI6a518df2014-05-07 20:40:23 -0700490 <version>2.24.0</version>
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700491 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700492 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800493 <groupId>com.google.protobuf</groupId>
494 <artifactId>protobuf-java</artifactId>
495 <version>2.5.0</version>
yoshi28bac132014-01-22 11:00:17 -0800496 </dependency>
497 <dependency>
yoshi2fd4c7e2013-11-22 15:47:55 -0800498 <groupId>com.hazelcast</groupId>
499 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700500 <version>${hazelcast.version}</version>
501 </dependency>
502 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700503 <!-- Required for backend datastore as Hazelcast -->
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700504 <groupId>com.hazelcast</groupId>
505 <artifactId>hazelcast-client</artifactId>
506 <version>${hazelcast.version}</version>
yoshi2fd4c7e2013-11-22 15:47:55 -0800507 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700508 <dependency>
Pavlin Radoslavovde4c3892014-07-06 23:19:59 -0700509 <groupId>javax.websocket</groupId>
510 <artifactId>javax.websocket-api</artifactId>
511 <version>1.0</version>
512 </dependency>
513 <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>
Pavlin Radoslavovde4c3892014-07-06 23:19:59 -0700520 <groupId>org.eclipse.jetty</groupId>
521 <artifactId>jetty-server</artifactId>
522 <version>9.2.1.v20140609</version>
523 </dependency>
524 <dependency>
525 <groupId>org.eclipse.jetty</groupId>
526 <artifactId>jetty-servlet</artifactId>
527 <version>9.2.1.v20140609</version>
528 </dependency>
529 <dependency>
530 <groupId>org.eclipse.jetty.websocket</groupId>
531 <artifactId>javax-websocket-server-impl</artifactId>
532 <version>9.2.1.v20140609</version>
533 </dependency>
534 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700535 <groupId>org.restlet.jse</groupId>
536 <artifactId>org.restlet</artifactId>
537 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700538 </dependency>
539 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700540 <groupId>org.restlet.jse</groupId>
541 <artifactId>org.restlet.ext.slf4j</artifactId>
542 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700543 </dependency>
544 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700545 <groupId>org.restlet.jse</groupId>
Ray Milkey3aeda4f2014-05-21 14:38:58 -0700546 <artifactId>org.restlet.ext.json</artifactId>
547 <version>${restlet.version}</version>
548 </dependency>
549 <dependency>
550 <groupId>org.restlet.jse</groupId>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700551 <artifactId>org.restlet.ext.jackson</artifactId>
552 <version>${restlet.version}</version>
553 </dependency>
554 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700555 <groupId>org.codehaus.jackson</groupId>
556 <artifactId>jackson-core-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700557 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700558 </dependency>
559 <dependency>
560 <groupId>org.codehaus.jackson</groupId>
561 <artifactId>jackson-mapper-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700562 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700563 </dependency>
564 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700565 <groupId>org.restlet.jse</groupId>
566 <artifactId>org.restlet.ext.simple</artifactId>
567 <version>${restlet.version}</version>
568 </dependency>
569 <dependency>
570 <groupId>org.simpleframework</groupId>
571 <artifactId>simple</artifactId>
572 <version>4.1.21</version>
573 </dependency>
574 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700575 <groupId>ch.qos.logback</groupId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700576 <artifactId>logback-classic</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700577 <version>1.0.13</version>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700578 <scope>runtime</scope>
579 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800580 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700581 <groupId>org.slf4j</groupId>
582 <artifactId>slf4j-api</artifactId>
583 <version>1.7.5</version>
584 </dependency>
585 <dependency>
586 <groupId>com.google.guava</groupId>
587 <artifactId>guava</artifactId>
588 <version>16.0.1</version>
589 </dependency>
590 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800591 <groupId>commons-configuration</groupId>
592 <artifactId>commons-configuration</artifactId>
593 <version>1.6</version>
594 </dependency>
595 <dependency>
Yuta HIGUCHI850b0042014-04-16 15:10:31 -0700596 <groupId>commons-lang</groupId>
597 <artifactId>commons-lang</artifactId>
598 <version>2.6</version>
599 </dependency>
600 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800601 <groupId>commons-httpclient</groupId>
602 <artifactId>commons-httpclient</artifactId>
603 <version>3.1</version>
604 </dependency>
605 <dependency>
Yuta HIGUCHId395b932014-05-01 15:15:20 -0700606 <groupId>commons-collections</groupId>
607 <artifactId>commons-collections</artifactId>
608 <version>3.2.1</version>
609 </dependency>
610 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800611 <groupId>org.apache.zookeeper</groupId>
612 <artifactId>zookeeper</artifactId>
Yuta HIGUCHIfb1905a2014-06-09 14:07:34 -0700613 <version>3.4.6</version>
Yuta HIGUCHI6d935e52014-03-28 10:34:26 -0700614 <scope>runtime</scope>
Yuta HIGUCHIffdb9132014-06-23 09:30:38 -0700615 <!-- Excluding log4j. ONOS uses logback-classic for SLF4J. -->
616 <exclusions>
617 <exclusion>
618 <artifactId>slf4j-log4j12</artifactId>
619 <groupId>org.slf4j</groupId>
620 </exclusion>
621 <exclusion>
622 <artifactId>log4j</artifactId>
623 <groupId>log4j</groupId>
624 </exclusion>
625 </exclusions>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800626 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800627 <dependency>
Jonathan Hartf6978ce2014-06-23 11:20:04 -0700628 <groupId>com.googlecode.concurrent-trees</groupId>
629 <artifactId>concurrent-trees</artifactId>
630 <version>2.4.0</version>
631 </dependency>
632 <dependency>
Jonathan Hart116b1fe2014-03-14 18:53:47 -0700633 <groupId>org.apache.curator</groupId>
634 <artifactId>curator-framework</artifactId>
635 <version>2.4.1</version>
636 </dependency>
637 <dependency>
638 <groupId>org.apache.curator</groupId>
639 <artifactId>curator-client</artifactId>
640 <version>2.4.1</version>
641 </dependency>
642 <dependency>
643 <groupId>org.apache.curator</groupId>
644 <artifactId>curator-recipes</artifactId>
645 <version>2.4.1</version>
646 </dependency>
647 <dependency>
648 <groupId>org.apache.curator</groupId>
649 <artifactId>curator-x-discovery</artifactId>
650 <version>2.4.1</version>
651 </dependency>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700652 <dependency>
Yuta HIGUCHI042e82a2014-04-25 22:37:03 -0700653 <!-- findbugs suppression annotation -->
654 <groupId>com.google.code.findbugs</groupId>
655 <artifactId>findbugs</artifactId>
656 <version>${findbugs.version}</version>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700657 </dependency>
Ray Milkey26921af2014-06-30 16:27:40 -0700658 <dependency>
659 <groupId>com.codahale.metrics</groupId>
660 <artifactId>metrics-core</artifactId>
661 <version>${metrics.version}</version>
662 </dependency>
663 <dependency>
664 <groupId>com.codahale.metrics</groupId>
665 <artifactId>metrics-json</artifactId>
666 <version>${metrics.version}</version>
667 </dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700668 <!-- Floodlight's dependencies -->
669 <dependency>
670 <groupId>args4j</groupId>
671 <artifactId>args4j</artifactId>
672 <version>2.0.25</version>
673 </dependency>
674 <dependency>
675 <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
676 <artifactId>concurrentlinkedhashmap-lru</artifactId>
677 <version>1.4</version>
678 </dependency>
679 <dependency>
680 <!-- dependency to old version of netty? -->
681 <groupId>org.jboss.netty</groupId>
682 <artifactId>netty</artifactId>
683 <version>3.2.7.Final</version>
684 </dependency>
685 <!-- Dependency for libraries used for testing -->
686 <dependency>
687 <groupId>junit</groupId>
688 <artifactId>junit</artifactId>
689 <version>4.11</version>
690 <scope>test</scope>
691 </dependency>
692 <dependency>
693 <groupId>org.hamcrest</groupId>
694 <artifactId>hamcrest-core</artifactId>
695 <version>1.3</version>
696 <scope>test</scope>
697 </dependency>
698 <dependency>
699 <groupId>org.hamcrest</groupId>
700 <artifactId>hamcrest-library</artifactId>
701 <version>1.3</version>
702 <scope>test</scope>
703 </dependency>
704 <dependency>
705 <groupId>org.easymock</groupId>
706 <artifactId>easymock</artifactId>
707 <version>3.1</version>
708 <scope>test</scope>
709 </dependency>
710 <dependency>
711 <groupId>org.powermock</groupId>
712 <artifactId>powermock-module-junit4</artifactId>
713 <version>${powermock.version}</version>
714 <scope>test</scope>
715 </dependency>
716 <dependency>
717 <groupId>org.powermock</groupId>
718 <artifactId>powermock-api-easymock</artifactId>
719 <version>${powermock.version}</version>
720 <scope>test</scope>
721 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700722 </dependencies>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700723 <profiles>
724 <!-- Jenkins by default defines a property BUILD_NUMBER which is used to
725 enable the profile. -->
726 <profile>
727 <id>jenkins</id>
728 <activation>
729 <property>
730 <name>env.BUILD_NUMBER</name>
731 </property>
732 </activation>
733 <build>
734 <plugins>
735 <plugin>
736 <groupId>org.codehaus.mojo</groupId>
737 <artifactId>cobertura-maven-plugin</artifactId>
738 <version>${cobertura-maven-plugin.version}</version>
739 <configuration>
740 <formats>
741 <format>xml</format>
742 </formats>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700743 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700744 </configuration>
745 <executions>
746 <execution>
747 <phase>package</phase>
748 <goals>
749 <goal>cobertura</goal>
750 </goals>
751 </execution>
752 </executions>
753 </plugin>
754 </plugins>
755 </build>
756 </profile>
757 </profiles>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700758</project>