blob: b181b150e9f500ef54fab1a9aa2c935b59545a47 [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>
Yuta HIGUCHI388a6b42014-07-22 17:29:47 -070033 <powermock.version>1.5.5</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>
Yuta HIGUCHIcd2eb112014-07-21 23:20:23 -070050 <maven.surefire.plugin.version>2.16</maven.surefire.plugin.version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070051 </properties>
52 <build>
53 <plugins>
54 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -070055 <!-- Note: the checkstyle configuration is also in the reporting section -->
56 <groupId>org.apache.maven.plugins</groupId>
57 <artifactId>maven-checkstyle-plugin</artifactId>
58 <version>${checkstyle-plugin.version}</version>
59 <configuration>
60 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -070061 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Ray Milkeyb5716c52014-04-07 11:38:27 -070062 <failsOnError>false</failsOnError>
63 <logViolationsToConsole>true</logViolationsToConsole>
Yuta HIGUCHI91a8f502014-06-17 10:15:29 -070064 <includeTestSourceDirectory>true</includeTestSourceDirectory>
Ray Milkeyb5716c52014-04-07 11:38:27 -070065 </configuration>
66 <executions>
67 <execution>
68 <id>validate-checkstyle</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -070069 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -070070 <goals>
71 <goal>check</goal>
72 </goals>
73 </execution>
74 </executions>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -080075 </plugin>
76 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070077 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-install-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070079 <version>2.5.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070080 <executions>
81 </executions>
82 </plugin>
83 <!-- guice maven plugin for dependency injection inside maven -->
84 <plugin>
85 <groupId>org.apache.camel</groupId>
86 <artifactId>guice-maven-plugin</artifactId>
87 <version>2.11.0</version>
88 </plugin>
Yuta HIGUCHI34a66462014-06-17 16:05:30 -070089 <plugin>
90 <artifactId>maven-clean-plugin</artifactId>
91 <version>2.5</version>
92 </plugin>
93 <plugin>
94 <artifactId>maven-deploy-plugin</artifactId>
95 <version>2.8</version>
96 </plugin>
97 <plugin>
98 <artifactId>maven-jar-plugin</artifactId>
99 <version>2.4</version>
100 </plugin>
101 <plugin>
102 <artifactId>maven-resources-plugin</artifactId>
103 <version>2.6</version>
104 </plugin>
105 <plugin>
106 <artifactId>maven-site-plugin</artifactId>
107 <version>3.3</version>
108 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700112 <version>3.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700113 <configuration>
Yuta HIGUCHI641d9992013-12-18 16:40:45 -0800114 <source>1.7</source>
115 <target>1.7</target>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700116 <encoding>UTF-8</encoding>
Yuta HIGUCHIe636d472014-04-25 09:43:44 -0700117 <showDeprecation>true</showDeprecation>
118 <showWarnings>true</showWarnings>
Yuta HIGUCHI593ee4c2014-05-12 21:31:39 -0700119 <compilerArgs>
120 <arg>-Xlint:all</arg>
121 <arg>-Xlint:-serial</arg>
Ray Milkeyff735142014-05-22 19:06:02 -0700122 <arg>-Werror</arg>
Yuta HIGUCHI593ee4c2014-05-12 21:31:39 -0700123 </compilerArgs>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700124 </configuration>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700125 <executions>
126 </executions>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700127 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700128 <plugin>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHIcd2eb112014-07-21 23:20:23 -0700131 <version>${maven.surefire.plugin.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700132 <configuration>
Yuta HIGUCHI0b7c19e2014-07-21 23:33:20 -0700133 <argLine>-XX:MaxPermSize=256m -Dhazelcast.logging.type=slf4j</argLine>
134 <redirectTestOutputToFile>false</redirectTestOutputToFile>
Ray Milkey10643572014-06-10 15:17:39 -0700135 <excludedGroups>net.onrc.onos.core.util.IntegrationTest</excludedGroups>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700136 </configuration>
137 </plugin>
Yuta HIGUCHI34a66462014-06-17 16:05:30 -0700138 <!-- TODO exec:java no longer used remove at some point? -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700139 <plugin>
140 <groupId>org.codehaus.mojo</groupId>
141 <artifactId>exec-maven-plugin</artifactId>
142 <version>1.2.1</version>
143 <configuration>
Jonathan Hart51f6f5b2014-04-03 10:32:10 -0700144 <mainClass>net.onrc.onos.core.main.Main</mainClass>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700145 </configuration>
146 <executions>
147 </executions>
148 </plugin>
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>
Yuta HIGUCHIccab05d2014-07-26 22:42:28 -0700157 <excludePackageNames>net.floodlightcontroller.*:org.openflow.*: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-->
Yuta HIGUCHI34a66462014-06-17 16:05:30 -0700182 <!-- Uncomment when publishing javadoc to github in the future.
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>
Yuta HIGUCHI34a66462014-06-17 16:05:30 -0700206 <version>2.4</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700207 <configuration>
208 <descriptorRefs>
209 <descriptorRef>jar-with-dependencies</descriptorRef>
210 </descriptorRefs>
211 </configuration>
Jonathan Hart2c61a502013-10-18 18:12:26 -0700212 </plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800213 <plugin>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700214 <!-- Using groovy script to set maven property ${hostname}.
215 This is a workaround to get hostname as a property inside pom file,
216 which current Maven does not provide. -->
217 <groupId>org.codehaus.gmaven</groupId>
218 <artifactId>groovy-maven-plugin</artifactId>
219 <version>2.0</version>
220 <executions>
221 <execution>
222 <phase>initialize</phase>
223 <goals>
224 <goal>execute</goal>
225 </goals>
226 <configuration>
227 <source>
228 project.properties["hostname"] = InetAddress.getLocalHost().getHostName()
229 </source>
230 </configuration>
231 </execution>
232 </executions>
233 </plugin>
234 <plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-dependency-plugin</artifactId>
237 <version>2.8</version>
238 <executions>
239 <execution>
240 <id>build-classpath</id>
241 <phase>generate-sources</phase>
242 <goals>
243 <goal>build-classpath</goal>
244 </goals>
245 <configuration>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700246 <outputFile>${project.basedir}/.javacp.${hostname}</outputFile>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800247 </configuration>
248 </execution>
249 </executions>
250 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700251 <plugin>
252 <groupId>org.codehaus.mojo</groupId>
253 <artifactId>cobertura-maven-plugin</artifactId>
254 <version>${cobertura-maven-plugin.version}</version>
255 <configuration>
256 <instrumentation>
257 <ignores>
258 <ignore>org.slf4j.*</ignore>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700259 </ignores>
260 <excludes>
Yuta HIGUCHIee818992014-06-18 10:10:10 -0700261 <exclude>edu/stanford/ramcloud/**/*.class</exclude>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700262 <exclude>org/openflow/**/*.class</exclude>
263 <exclude>net/floodlightcontroller/**/web/**/*.class</exclude>
264 </excludes>
265 </instrumentation>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700266 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700267 </configuration>
268 <executions>
269 <execution>
270 <goals>
271 <goal>clean</goal>
272 </goals>
273 </execution>
274 </executions>
275 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700276 <!-- Note: the findbugs configuration is also in the reporting section -->
277 <plugin>
278 <groupId>org.codehaus.mojo</groupId>
279 <artifactId>findbugs-maven-plugin</artifactId>
280 <version>${findbugs-plugin.version}</version>
281 <configuration>
282 <effort>${findbugs.effort}</effort>
283 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
284 </configuration>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700285 <executions>
286 <execution>
287 <id>validate-findbugs</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700288 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700289 <goals>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700290 <goal>check</goal>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700291 </goals>
292 </execution>
293 </executions>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700294 </plugin>
295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-pmd-plugin</artifactId>
298 <version>3.1</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700299 <configuration>
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700300 <!--
301 Note: Exclusion definition exists in multiple places.
302 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700303 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700304 - maven-pmd-plugin configuration in pom.xml
305 (under build and reporting)
306 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700307 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700308 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700309 <exclude>**/edu/stanford/**</exclude>
310 <exclude>**/net/floodlightcontroller/**</exclude>
311 <exclude>**/org/openflow/**</exclude>
312 </excludes>
313 <rulesets>
314 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
315 </rulesets>
316 </configuration>
317 <executions>
318 <execution>
319 <id>validate-pmd</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700320 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700321 <goals>
322 <!-- Uncomment this goal to make the build fail on pmd errors -->
323 <!--<goal>check</goal>-->
324 </goals>
325 </execution>
326 </executions>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700327 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700328 </plugins>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800329 <pluginManagement>
330 <plugins>
331 <!--This plugin's configuration is used to store Eclipse m2e settings
332 only. It has no influence on the Maven build itself. -->
333 <plugin>
334 <groupId>org.eclipse.m2e</groupId>
335 <artifactId>lifecycle-mapping</artifactId>
336 <version>1.0.0</version>
337 <configuration>
338 <lifecycleMappingMetadata>
339 <pluginExecutions>
340 <pluginExecution>
341 <pluginExecutionFilter>
342 <groupId>
343 org.apache.maven.plugins
344 </groupId>
345 <artifactId>
346 maven-dependency-plugin
347 </artifactId>
348 <versionRange>[2.8,)</versionRange>
349 <goals>
350 <goal>build-classpath</goal>
351 </goals>
352 </pluginExecutionFilter>
353 <action>
354 <ignore></ignore>
355 </action>
356 </pluginExecution>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700357 <pluginExecution>
358 <pluginExecutionFilter>
359 <groupId>org.codehaus.gmaven</groupId>
360 <artifactId>groovy-maven-plugin</artifactId>
361 <versionRange>[2.0,)</versionRange>
362 <goals>
363 <goal>execute</goal>
364 </goals>
365 </pluginExecutionFilter>
366 <action>
367 <ignore></ignore>
368 </action>
369 </pluginExecution>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800370 </pluginExecutions>
371 </lifecycleMappingMetadata>
372 </configuration>
373 </plugin>
374 </plugins>
375 </pluginManagement>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700376 </build>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700377 <!-- for getting visualization reporting -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700378 <reporting>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700379 <excludeDefaults>true</excludeDefaults>
380 <outputDirectory>${project.build.directory}/site</outputDirectory>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700381 <plugins>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700382 <plugin>
383 <groupId>org.apache.maven.plugins</groupId>
384 <artifactId>maven-project-info-reports-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700385 <version>2.7</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700386 <configuration>
387 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
388 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
389 </configuration>
390 <reportSets>
391 <reportSet>
392 <reports>
393 <report>dependencies</report>
394 <report>scm</report>
395 </reports>
396 </reportSet>
397 </reportSets>
398 </plugin>
399 <plugin>
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700402 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700403 <configuration>
404 <charset>UTF-8</charset>
405 <locale>en</locale>
Yuta HIGUCHIf4f9b282014-06-10 10:50:49 -0700406 <author>false</author>
407 <excludePackageNames>net.floodlightcontroller.*:net.onrc.onos.core.datastore.serializers</excludePackageNames>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700408 </configuration>
409 </plugin>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800410 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700411 <!-- Note: the checkstyle configuration is also in the build section -->
412 <groupId>org.apache.maven.plugins</groupId>
413 <artifactId>maven-checkstyle-plugin</artifactId>
414 <version>${checkstyle-plugin.version}</version>
415 <configuration>
416 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700417 <!--
418 Note: Exclusion definition exists in multiple places.
419 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
420 - maven-checkstyle-plugin configuration in pom.xml
421 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700422 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700423 -->
Yuta HIGUCHIcbbaed32014-05-14 20:27:43 -0700424 <propertiesLocation>${basedir}/conf/checkstyle/checkstyle_maven.properties</propertiesLocation>
Yuta HIGUCHI91a8f502014-06-17 10:15:29 -0700425 <includeTestSourceDirectory>true</includeTestSourceDirectory>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700426 </configuration>
427 <reportSets>
428 <reportSet>
429 <reports>
430 <report>checkstyle</report>
431 </reports>
432 </reportSet>
433 </reportSets>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800434 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700435 <!-- Note: the findbugs configuration is also in the build section -->
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800436 <plugin>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700437 <groupId>org.codehaus.mojo</groupId>
438 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700439 <version>${findbugs-plugin.version}</version>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700440 <configuration>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700441 <effort>${findbugs.effort}</effort>
442 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700443 <reportPlugins>
444 <plugin>
445 <groupId>org.codehaus.mojo</groupId>
446 <artifactId>findbugs-maven-plugin</artifactId>
447 </plugin>
448 </reportPlugins>
449 </configuration>
450 </plugin>
451 <plugin>
452 <groupId>org.apache.maven.plugins</groupId>
453 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700454 <version>3.1</version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700455 <configuration>
456 <!--
457 Note: Exclusion definition exists in multiple places.
458 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700459 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700460 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700461 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700462 -->
463 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700464 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700465 <exclude>**/edu/stanford/**</exclude>
466 <exclude>**/net/floodlightcontroller/**</exclude>
467 <exclude>**/org/openflow/**</exclude>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700468 </excludes>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700469 <rulesets>
470 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
471 </rulesets>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700472 </configuration>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700473 </plugin>
474 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700475 <groupId>org.apache.maven.plugins</groupId>
476 <artifactId>maven-jxr-plugin</artifactId>
477 <version>2.4</version>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800478 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700479 <plugin>
480 <groupId>org.codehaus.mojo</groupId>
481 <artifactId>cobertura-maven-plugin</artifactId>
482 <version>${cobertura-maven-plugin.version}</version>
483 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700484 </plugins>
485 </reporting>
486 <dependencies>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800487 <!-- ONOS's direct dependencies -->
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700488 <dependency>
489 <groupId>com.esotericsoftware.kryo</groupId>
490 <artifactId>kryo</artifactId>
Yuta HIGUCHI6a518df2014-05-07 20:40:23 -0700491 <version>2.24.0</version>
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700492 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700493 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800494 <groupId>com.google.protobuf</groupId>
495 <artifactId>protobuf-java</artifactId>
496 <version>2.5.0</version>
yoshi28bac132014-01-22 11:00:17 -0800497 </dependency>
498 <dependency>
yoshi2fd4c7e2013-11-22 15:47:55 -0800499 <groupId>com.hazelcast</groupId>
500 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700501 <version>${hazelcast.version}</version>
502 </dependency>
503 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700504 <!-- Required for backend datastore as Hazelcast -->
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700505 <groupId>com.hazelcast</groupId>
506 <artifactId>hazelcast-client</artifactId>
507 <version>${hazelcast.version}</version>
yoshi2fd4c7e2013-11-22 15:47:55 -0800508 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700509 <dependency>
Pavlin Radoslavovde4c3892014-07-06 23:19:59 -0700510 <groupId>javax.websocket</groupId>
511 <artifactId>javax.websocket-api</artifactId>
512 <version>1.0</version>
513 </dependency>
514 <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>
Pavlin Radoslavovde4c3892014-07-06 23:19:59 -0700521 <groupId>org.eclipse.jetty</groupId>
522 <artifactId>jetty-server</artifactId>
523 <version>9.2.1.v20140609</version>
524 </dependency>
525 <dependency>
526 <groupId>org.eclipse.jetty</groupId>
527 <artifactId>jetty-servlet</artifactId>
528 <version>9.2.1.v20140609</version>
529 </dependency>
530 <dependency>
531 <groupId>org.eclipse.jetty.websocket</groupId>
532 <artifactId>javax-websocket-server-impl</artifactId>
533 <version>9.2.1.v20140609</version>
534 </dependency>
535 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700536 <groupId>org.restlet.jse</groupId>
537 <artifactId>org.restlet</artifactId>
538 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700539 </dependency>
540 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700541 <groupId>org.restlet.jse</groupId>
542 <artifactId>org.restlet.ext.slf4j</artifactId>
543 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700544 </dependency>
545 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700546 <groupId>org.restlet.jse</groupId>
Ray Milkey3aeda4f2014-05-21 14:38:58 -0700547 <artifactId>org.restlet.ext.json</artifactId>
548 <version>${restlet.version}</version>
549 </dependency>
550 <dependency>
551 <groupId>org.restlet.jse</groupId>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700552 <artifactId>org.restlet.ext.jackson</artifactId>
553 <version>${restlet.version}</version>
554 </dependency>
555 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700556 <groupId>org.codehaus.jackson</groupId>
557 <artifactId>jackson-core-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700558 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700559 </dependency>
560 <dependency>
561 <groupId>org.codehaus.jackson</groupId>
562 <artifactId>jackson-mapper-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700563 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700564 </dependency>
565 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700566 <groupId>org.restlet.jse</groupId>
567 <artifactId>org.restlet.ext.simple</artifactId>
568 <version>${restlet.version}</version>
569 </dependency>
570 <dependency>
571 <groupId>org.simpleframework</groupId>
572 <artifactId>simple</artifactId>
573 <version>4.1.21</version>
574 </dependency>
575 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700576 <groupId>ch.qos.logback</groupId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700577 <artifactId>logback-classic</artifactId>
Yuta HIGUCHI001159d2014-07-23 11:53:32 -0700578 <version>1.1.2</version>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700579 <scope>runtime</scope>
580 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800581 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700582 <groupId>org.slf4j</groupId>
583 <artifactId>slf4j-api</artifactId>
584 <version>1.7.5</version>
585 </dependency>
586 <dependency>
587 <groupId>com.google.guava</groupId>
588 <artifactId>guava</artifactId>
589 <version>16.0.1</version>
590 </dependency>
591 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800592 <groupId>commons-configuration</groupId>
593 <artifactId>commons-configuration</artifactId>
Yuta HIGUCHI56f294e2014-07-23 11:09:06 -0700594 <version>1.10</version>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800595 </dependency>
596 <dependency>
Yuta HIGUCHI850b0042014-04-16 15:10:31 -0700597 <groupId>commons-lang</groupId>
598 <artifactId>commons-lang</artifactId>
599 <version>2.6</version>
600 </dependency>
601 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800602 <groupId>commons-httpclient</groupId>
603 <artifactId>commons-httpclient</artifactId>
604 <version>3.1</version>
605 </dependency>
606 <dependency>
Yuta HIGUCHId395b932014-05-01 15:15:20 -0700607 <groupId>commons-collections</groupId>
608 <artifactId>commons-collections</artifactId>
609 <version>3.2.1</version>
610 </dependency>
611 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800612 <groupId>org.apache.zookeeper</groupId>
613 <artifactId>zookeeper</artifactId>
Yuta HIGUCHIfb1905a2014-06-09 14:07:34 -0700614 <version>3.4.6</version>
Yuta HIGUCHI6d935e52014-03-28 10:34:26 -0700615 <scope>runtime</scope>
Yuta HIGUCHIffdb9132014-06-23 09:30:38 -0700616 <!-- Excluding log4j. ONOS uses logback-classic for SLF4J. -->
617 <exclusions>
618 <exclusion>
619 <artifactId>slf4j-log4j12</artifactId>
620 <groupId>org.slf4j</groupId>
621 </exclusion>
622 <exclusion>
623 <artifactId>log4j</artifactId>
624 <groupId>log4j</groupId>
625 </exclusion>
626 </exclusions>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800627 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800628 <dependency>
Jonathan Hartf6978ce2014-06-23 11:20:04 -0700629 <groupId>com.googlecode.concurrent-trees</groupId>
630 <artifactId>concurrent-trees</artifactId>
631 <version>2.4.0</version>
632 </dependency>
633 <dependency>
Jonathan Hart116b1fe2014-03-14 18:53:47 -0700634 <groupId>org.apache.curator</groupId>
635 <artifactId>curator-framework</artifactId>
636 <version>2.4.1</version>
637 </dependency>
638 <dependency>
639 <groupId>org.apache.curator</groupId>
640 <artifactId>curator-client</artifactId>
641 <version>2.4.1</version>
642 </dependency>
643 <dependency>
644 <groupId>org.apache.curator</groupId>
645 <artifactId>curator-recipes</artifactId>
646 <version>2.4.1</version>
647 </dependency>
648 <dependency>
649 <groupId>org.apache.curator</groupId>
650 <artifactId>curator-x-discovery</artifactId>
651 <version>2.4.1</version>
652 </dependency>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700653 <dependency>
Yuta HIGUCHI042e82a2014-04-25 22:37:03 -0700654 <!-- findbugs suppression annotation -->
655 <groupId>com.google.code.findbugs</groupId>
656 <artifactId>findbugs</artifactId>
657 <version>${findbugs.version}</version>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700658 </dependency>
Ray Milkey26921af2014-06-30 16:27:40 -0700659 <dependency>
660 <groupId>com.codahale.metrics</groupId>
661 <artifactId>metrics-core</artifactId>
662 <version>${metrics.version}</version>
663 </dependency>
664 <dependency>
665 <groupId>com.codahale.metrics</groupId>
666 <artifactId>metrics-json</artifactId>
667 <version>${metrics.version}</version>
668 </dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700669 <!-- Floodlight's dependencies -->
670 <dependency>
671 <groupId>args4j</groupId>
672 <artifactId>args4j</artifactId>
673 <version>2.0.25</version>
674 </dependency>
675 <dependency>
676 <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
677 <artifactId>concurrentlinkedhashmap-lru</artifactId>
678 <version>1.4</version>
679 </dependency>
680 <dependency>
681 <!-- dependency to old version of netty? -->
682 <groupId>org.jboss.netty</groupId>
683 <artifactId>netty</artifactId>
684 <version>3.2.7.Final</version>
685 </dependency>
686 <!-- Dependency for libraries used for testing -->
687 <dependency>
688 <groupId>junit</groupId>
689 <artifactId>junit</artifactId>
690 <version>4.11</version>
691 <scope>test</scope>
692 </dependency>
693 <dependency>
694 <groupId>org.hamcrest</groupId>
695 <artifactId>hamcrest-core</artifactId>
696 <version>1.3</version>
697 <scope>test</scope>
698 </dependency>
699 <dependency>
700 <groupId>org.hamcrest</groupId>
701 <artifactId>hamcrest-library</artifactId>
702 <version>1.3</version>
703 <scope>test</scope>
704 </dependency>
705 <dependency>
706 <groupId>org.easymock</groupId>
707 <artifactId>easymock</artifactId>
Yuta HIGUCHI08469962014-07-22 17:52:22 -0700708 <version>3.2</version>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700709 <scope>test</scope>
710 </dependency>
711 <dependency>
712 <groupId>org.powermock</groupId>
713 <artifactId>powermock-module-junit4</artifactId>
714 <version>${powermock.version}</version>
715 <scope>test</scope>
716 </dependency>
717 <dependency>
718 <groupId>org.powermock</groupId>
719 <artifactId>powermock-api-easymock</artifactId>
720 <version>${powermock.version}</version>
721 <scope>test</scope>
722 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700723 </dependencies>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700724 <profiles>
725 <!-- Jenkins by default defines a property BUILD_NUMBER which is used to
726 enable the profile. -->
727 <profile>
728 <id>jenkins</id>
729 <activation>
730 <property>
731 <name>env.BUILD_NUMBER</name>
732 </property>
733 </activation>
734 <build>
735 <plugins>
736 <plugin>
737 <groupId>org.codehaus.mojo</groupId>
738 <artifactId>cobertura-maven-plugin</artifactId>
739 <version>${cobertura-maven-plugin.version}</version>
740 <configuration>
741 <formats>
742 <format>xml</format>
743 </formats>
Yuta HIGUCHI2d624d32014-06-03 00:09:10 -0700744 <quiet>true</quiet>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700745 </configuration>
746 <executions>
747 <execution>
748 <phase>package</phase>
749 <goals>
750 <goal>cobertura</goal>
751 </goals>
752 </execution>
753 </executions>
754 </plugin>
755 </plugins>
756 </build>
757 </profile>
Yuta HIGUCHIcd2eb112014-07-21 23:20:23 -0700758 <profile>
759 <id>all-tests</id>
760 <build>
761 <plugins>
762 <plugin>
763 <groupId>org.apache.maven.plugins</groupId>
764 <artifactId>maven-surefire-plugin</artifactId>
765 <version>${maven.surefire.plugin.version}</version>
766 <configuration combine.self="merge">
767 <excludedGroups></excludedGroups>
768 </configuration>
769 </plugin>
770 </plugins>
771 </build>
772 </profile>
Yuta HIGUCHIee0c5b62014-07-22 23:22:47 -0700773 <profile>
774 <id>error-prone</id>
775 <build>
776 <plugins>
777 <plugin>
778 <groupId>org.apache.maven.plugins</groupId>
779 <artifactId>maven-compiler-plugin</artifactId>
780 <version>3.1</version>
781 <configuration>
782 <compilerArgs combine.children="append">
783 <!-- FIXME -Xlint:-path required when using findbugs + error-prone -->
784 <arg>-Xlint:-path</arg>
785 </compilerArgs>
786 <!-- Turn on error-prone -->
787 <compilerId>javac-with-errorprone</compilerId>
788 <forceJavacCompilerUse>true</forceJavacCompilerUse>
789 </configuration>
790 <dependencies combine.children="append">
791 <dependency>
792 <groupId>com.google.errorprone</groupId>
793 <artifactId>error_prone_core</artifactId>
794 <version>1.1.2</version>
795 </dependency>
796 <dependency>
797 <groupId>org.codehaus.plexus</groupId>
798 <artifactId>plexus-compiler-javac</artifactId>
799 <version>2.3</version>
800 </dependency>
801 <dependency>
802 <groupId>org.codehaus.plexus</groupId>
803 <artifactId>plexus-compiler-javac-errorprone</artifactId>
804 <version>2.3</version>
805 </dependency>
806 </dependencies>
807 </plugin>
808 </plugins>
809 </build>
810 </profile>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700811 </profiles>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700812</project>