blob: 472f64438d70b4fabaab183391b2c4bcdc6a1add [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 -->
38 <findbugs.version>2.0.2</findbugs.version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -070039 <findbugs-plugin.version>2.5.3</findbugs-plugin.version>
40 <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>
100 </compilerArgs>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700101 </configuration>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700102 <executions>
103 </executions>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700104 </plugin>
105 <!-- test -->
106 <plugin>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700109 <version>2.16</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700110 <configuration>
HIGUCHI Yuta71c96dd2013-10-20 17:15:56 -0700111 <argLine>-XX:MaxPermSize=256m</argLine>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800112 <redirectTestOutputToFile>true</redirectTestOutputToFile>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700113 </configuration>
114 </plugin>
115 <!-- exec:java -->
116 <plugin>
117 <groupId>org.codehaus.mojo</groupId>
118 <artifactId>exec-maven-plugin</artifactId>
119 <version>1.2.1</version>
120 <configuration>
Jonathan Hart51f6f5b2014-04-03 10:32:10 -0700121 <mainClass>net.onrc.onos.core.main.Main</mainClass>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700122 </configuration>
123 <executions>
124 </executions>
125 </plugin>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700126 <!--
127 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700128 <groupId>org.codehaus.mojo</groupId>
129 <artifactId>build-helper-maven-plugin</artifactId>
130 <version>1.7</version>
131 <executions>
132 <execution>
133 <id>add-source</id>
134 <phase>generate-sources</phase>
135 <goals>
136 <goal>add-source</goal>
137 </goals>
138 <configuration>
139 <sources>
140 <source>lib/gen-java</source>
141 </sources>
142 </configuration>
143 </execution>
144 </executions>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700145 </plugin>
146 -->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700147 <plugin>
148 <groupId>org.apache.maven.plugins</groupId>
149 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700150 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700151 <configuration>
152 <charset>UTF-8</charset>
153 <locale>en</locale>
154 </configuration>
155 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700156<!-- Remove me when we're sure that system test no longer need JaCoCo
timlindberg8b13e702013-07-17 14:45:50 -0700157 <plugin>
158 <groupId>org.jacoco</groupId>
159 <artifactId>jacoco-maven-plugin</artifactId>
160 <version>0.6.3.201306030806</version>
timlindberg8b13e702013-07-17 14:45:50 -0700161 <executions>
162 <execution>
163 <id>jacoco-initialize</id>
164 <goals>
165 <goal>prepare-agent</goal>
166 </goals>
167 </execution>
168 <execution>
169 <id>jacoco-site</id>
170 <phase>package</phase>
171 <goals>
172 <goal>report</goal>
173 </goals>
174 </execution>
175 </executions>
176 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700177-->
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800178 <!--
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700179 <plugin>
180 <groupId>com.github.github</groupId>
181 <artifactId>site-maven-plugin</artifactId>
182 <version>0.8</version>
183 <configuration>
184 <message>Creating site for ${project.version}</message>
185 <dryRun>true</dryRun>
186 <repositoryName>ONOS</repositoryName>
187 <repositoryOwner>OPENNETWORKINGLAB</repositoryOwner>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800188 <path>javadoc/${project.version}/</path>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700189 </configuration>
190 <executions>
191 <execution>
192 <goals>
193 <goal>site</goal>
194 </goals>
195 <phase>site</phase>
196 </execution>
197 </executions>
198 </plugin>
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800199 -->
Jonathan Hart2c61a502013-10-18 18:12:26 -0700200 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700201 <artifactId>maven-assembly-plugin</artifactId>
202 <configuration>
203 <descriptorRefs>
204 <descriptorRef>jar-with-dependencies</descriptorRef>
205 </descriptorRefs>
206 </configuration>
Jonathan Hart2c61a502013-10-18 18:12:26 -0700207 </plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800208 <plugin>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700209 <!-- Using groovy script to set maven property ${hostname}.
210 This is a workaround to get hostname as a property inside pom file,
211 which current Maven does not provide. -->
212 <groupId>org.codehaus.gmaven</groupId>
213 <artifactId>groovy-maven-plugin</artifactId>
214 <version>2.0</version>
215 <executions>
216 <execution>
217 <phase>initialize</phase>
218 <goals>
219 <goal>execute</goal>
220 </goals>
221 <configuration>
222 <source>
223 project.properties["hostname"] = InetAddress.getLocalHost().getHostName()
224 </source>
225 </configuration>
226 </execution>
227 </executions>
228 </plugin>
229 <plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800230 <groupId>org.apache.maven.plugins</groupId>
231 <artifactId>maven-dependency-plugin</artifactId>
232 <version>2.8</version>
233 <executions>
234 <execution>
235 <id>build-classpath</id>
236 <phase>generate-sources</phase>
237 <goals>
238 <goal>build-classpath</goal>
239 </goals>
240 <configuration>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700241 <outputFile>${project.basedir}/.javacp.${hostname}</outputFile>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800242 </configuration>
243 </execution>
244 </executions>
245 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700246 <plugin>
247 <groupId>org.codehaus.mojo</groupId>
248 <artifactId>cobertura-maven-plugin</artifactId>
249 <version>${cobertura-maven-plugin.version}</version>
250 <configuration>
251 <instrumentation>
252 <ignores>
253 <ignore>org.slf4j.*</ignore>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700254 </ignores>
255 <excludes>
256 <exclude>org/openflow/**/*.class</exclude>
257 <exclude>net/floodlightcontroller/**/web/**/*.class</exclude>
258 </excludes>
259 </instrumentation>
260 </configuration>
261 <executions>
262 <execution>
263 <goals>
264 <goal>clean</goal>
265 </goals>
266 </execution>
267 </executions>
268 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700269 <!-- Note: the findbugs configuration is also in the reporting section -->
270 <plugin>
271 <groupId>org.codehaus.mojo</groupId>
272 <artifactId>findbugs-maven-plugin</artifactId>
273 <version>${findbugs-plugin.version}</version>
274 <configuration>
275 <effort>${findbugs.effort}</effort>
276 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
277 </configuration>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700278 <executions>
279 <execution>
280 <id>validate-findbugs</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700281 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700282 <goals>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700283 <goal>check</goal>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700284 </goals>
285 </execution>
286 </executions>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700287 </plugin>
288 <plugin>
289 <groupId>org.apache.maven.plugins</groupId>
290 <artifactId>maven-pmd-plugin</artifactId>
291 <version>3.1</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700292 <configuration>
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700293 <!--
294 Note: Exclusion definition exists in multiple places.
295 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700296 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700297 - maven-pmd-plugin configuration in pom.xml
298 (under build and reporting)
299 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700300 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700301 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700302 <exclude>**/edu/stanford/**</exclude>
303 <exclude>**/net/floodlightcontroller/**</exclude>
304 <exclude>**/org/openflow/**</exclude>
305 </excludes>
306 <rulesets>
307 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
308 </rulesets>
309 </configuration>
310 <executions>
311 <execution>
312 <id>validate-pmd</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700313 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700314 <goals>
315 <!-- Uncomment this goal to make the build fail on pmd errors -->
316 <!--<goal>check</goal>-->
317 </goals>
318 </execution>
319 </executions>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700320 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700321 </plugins>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800322 <pluginManagement>
323 <plugins>
324 <!--This plugin's configuration is used to store Eclipse m2e settings
325 only. It has no influence on the Maven build itself. -->
326 <plugin>
327 <groupId>org.eclipse.m2e</groupId>
328 <artifactId>lifecycle-mapping</artifactId>
329 <version>1.0.0</version>
330 <configuration>
331 <lifecycleMappingMetadata>
332 <pluginExecutions>
333 <pluginExecution>
334 <pluginExecutionFilter>
335 <groupId>
336 org.apache.maven.plugins
337 </groupId>
338 <artifactId>
339 maven-dependency-plugin
340 </artifactId>
341 <versionRange>[2.8,)</versionRange>
342 <goals>
343 <goal>build-classpath</goal>
344 </goals>
345 </pluginExecutionFilter>
346 <action>
347 <ignore></ignore>
348 </action>
349 </pluginExecution>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700350 <pluginExecution>
351 <pluginExecutionFilter>
352 <groupId>org.codehaus.gmaven</groupId>
353 <artifactId>groovy-maven-plugin</artifactId>
354 <versionRange>[2.0,)</versionRange>
355 <goals>
356 <goal>execute</goal>
357 </goals>
358 </pluginExecutionFilter>
359 <action>
360 <ignore></ignore>
361 </action>
362 </pluginExecution>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800363 </pluginExecutions>
364 </lifecycleMappingMetadata>
365 </configuration>
366 </plugin>
367 </plugins>
368 </pluginManagement>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700369 </build>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700370 <!-- for getting visualization reporting -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700371 <reporting>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700372 <excludeDefaults>true</excludeDefaults>
373 <outputDirectory>${project.build.directory}/site</outputDirectory>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700374 <plugins>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700375 <!--
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700376 <plugin>
377 <groupId>org.apache.camel</groupId>
378 <artifactId>guice-maven-plugin</artifactId>
379 <version>2.11.0</version>
380 </plugin>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700381 -->
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>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700394 <!--report>maven-emma-plugin</report-->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700395 <report>scm</report>
396 </reports>
397 </reportSet>
398 </reportSets>
399 </plugin>
400 <plugin>
401 <groupId>org.apache.maven.plugins</groupId>
402 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700403 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700404 <configuration>
405 <charset>UTF-8</charset>
406 <locale>en</locale>
407 </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>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700424 </configuration>
425 <reportSets>
426 <reportSet>
427 <reports>
428 <report>checkstyle</report>
429 </reports>
430 </reportSet>
431 </reportSets>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800432 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700433 <!-- Note: the findbugs configuration is also in the build section -->
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800434 <plugin>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700435 <groupId>org.codehaus.mojo</groupId>
436 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700437 <version>${findbugs-plugin.version}</version>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700438 <configuration>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700439 <effort>${findbugs.effort}</effort>
440 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700441 <reportPlugins>
442 <plugin>
443 <groupId>org.codehaus.mojo</groupId>
444 <artifactId>findbugs-maven-plugin</artifactId>
445 </plugin>
446 </reportPlugins>
447 </configuration>
448 </plugin>
449 <plugin>
450 <groupId>org.apache.maven.plugins</groupId>
451 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700452 <version>3.1</version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700453 <configuration>
454 <!--
455 Note: Exclusion definition exists in multiple places.
456 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700457 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700458 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700459 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700460 -->
461 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700462 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700463 <exclude>**/edu/stanford/**</exclude>
464 <exclude>**/net/floodlightcontroller/**</exclude>
465 <exclude>**/org/openflow/**</exclude>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700466 </excludes>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700467 <rulesets>
468 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
469 </rulesets>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700470 </configuration>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700471 </plugin>
472 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700473 <groupId>org.apache.maven.plugins</groupId>
474 <artifactId>maven-jxr-plugin</artifactId>
475 <version>2.4</version>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800476 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700477 <plugin>
478 <groupId>org.codehaus.mojo</groupId>
479 <artifactId>cobertura-maven-plugin</artifactId>
480 <version>${cobertura-maven-plugin.version}</version>
481 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700482 </plugins>
483 </reporting>
484 <dependencies>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800485 <!-- ONOS's direct dependencies -->
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700486 <dependency>
487 <groupId>com.esotericsoftware.kryo</groupId>
488 <artifactId>kryo</artifactId>
Yuta HIGUCHI6a518df2014-05-07 20:40:23 -0700489 <version>2.24.0</version>
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700490 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700491 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800492 <groupId>com.google.protobuf</groupId>
493 <artifactId>protobuf-java</artifactId>
494 <version>2.5.0</version>
yoshi28bac132014-01-22 11:00:17 -0800495 </dependency>
496 <dependency>
yoshi2fd4c7e2013-11-22 15:47:55 -0800497 <groupId>com.hazelcast</groupId>
498 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700499 <version>${hazelcast.version}</version>
500 </dependency>
501 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700502 <!-- Required for backend datastore as Hazelcast -->
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700503 <groupId>com.hazelcast</groupId>
504 <artifactId>hazelcast-client</artifactId>
505 <version>${hazelcast.version}</version>
yoshi2fd4c7e2013-11-22 15:47:55 -0800506 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700507 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700508 <groupId>net.sf.json-lib</groupId>
509 <artifactId>json-lib</artifactId>
510 <version>2.4</version>
511 <classifier>jdk15</classifier>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700512 </dependency>
513 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700514 <groupId>org.restlet.jse</groupId>
515 <artifactId>org.restlet</artifactId>
516 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700517 </dependency>
518 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700519 <groupId>org.restlet.jse</groupId>
520 <artifactId>org.restlet.ext.slf4j</artifactId>
521 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700522 </dependency>
523 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700524 <groupId>org.restlet.jse</groupId>
Ray Milkey3aeda4f2014-05-21 14:38:58 -0700525 <artifactId>org.restlet.ext.json</artifactId>
526 <version>${restlet.version}</version>
527 </dependency>
528 <dependency>
529 <groupId>org.restlet.jse</groupId>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700530 <artifactId>org.restlet.ext.jackson</artifactId>
531 <version>${restlet.version}</version>
532 </dependency>
533 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700534 <groupId>org.codehaus.jackson</groupId>
535 <artifactId>jackson-core-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700536 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700537 </dependency>
538 <dependency>
539 <groupId>org.codehaus.jackson</groupId>
540 <artifactId>jackson-mapper-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700541 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700542 </dependency>
543 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700544 <groupId>org.restlet.jse</groupId>
545 <artifactId>org.restlet.ext.simple</artifactId>
546 <version>${restlet.version}</version>
547 </dependency>
548 <dependency>
549 <groupId>org.simpleframework</groupId>
550 <artifactId>simple</artifactId>
551 <version>4.1.21</version>
552 </dependency>
553 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700554 <groupId>ch.qos.logback</groupId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700555 <artifactId>logback-classic</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700556 <version>1.0.13</version>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700557 <scope>runtime</scope>
558 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800559 <dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700560 <groupId>org.slf4j</groupId>
561 <artifactId>slf4j-api</artifactId>
562 <version>1.7.5</version>
563 </dependency>
564 <dependency>
565 <groupId>com.google.guava</groupId>
566 <artifactId>guava</artifactId>
567 <version>16.0.1</version>
568 </dependency>
569 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800570 <groupId>commons-configuration</groupId>
571 <artifactId>commons-configuration</artifactId>
572 <version>1.6</version>
573 </dependency>
574 <dependency>
Yuta HIGUCHI850b0042014-04-16 15:10:31 -0700575 <groupId>commons-lang</groupId>
576 <artifactId>commons-lang</artifactId>
577 <version>2.6</version>
578 </dependency>
579 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800580 <groupId>commons-httpclient</groupId>
581 <artifactId>commons-httpclient</artifactId>
582 <version>3.1</version>
583 </dependency>
584 <dependency>
Yuta HIGUCHId395b932014-05-01 15:15:20 -0700585 <groupId>commons-collections</groupId>
586 <artifactId>commons-collections</artifactId>
587 <version>3.2.1</version>
588 </dependency>
589 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800590 <groupId>org.apache.zookeeper</groupId>
591 <artifactId>zookeeper</artifactId>
592 <version>3.4.5</version>
Yuta HIGUCHI6d935e52014-03-28 10:34:26 -0700593 <scope>runtime</scope>
594 <!-- Following workaround exclusions can be removed,
595 when we're ready to switch to ZooKeeper 3.4.6 -->
596 <exclusions>
597 <exclusion>
598 <groupId>com.sun.jmx</groupId>
599 <artifactId>jmxri</artifactId>
600 </exclusion>
601 <exclusion>
602 <groupId>com.sun.jdmk</groupId>
603 <artifactId>jmxtools</artifactId>
604 </exclusion>
605 <exclusion>
606 <groupId>javax.jms</groupId>
607 <artifactId>jms</artifactId>
608 </exclusion>
609 </exclusions>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800610 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800611 <dependency>
Jonathan Hart116b1fe2014-03-14 18:53:47 -0700612 <groupId>org.apache.curator</groupId>
613 <artifactId>curator-framework</artifactId>
614 <version>2.4.1</version>
615 </dependency>
616 <dependency>
617 <groupId>org.apache.curator</groupId>
618 <artifactId>curator-client</artifactId>
619 <version>2.4.1</version>
620 </dependency>
621 <dependency>
622 <groupId>org.apache.curator</groupId>
623 <artifactId>curator-recipes</artifactId>
624 <version>2.4.1</version>
625 </dependency>
626 <dependency>
627 <groupId>org.apache.curator</groupId>
628 <artifactId>curator-x-discovery</artifactId>
629 <version>2.4.1</version>
630 </dependency>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700631 <dependency>
Yuta HIGUCHI042e82a2014-04-25 22:37:03 -0700632 <!-- findbugs suppression annotation -->
633 <groupId>com.google.code.findbugs</groupId>
634 <artifactId>findbugs</artifactId>
635 <version>${findbugs.version}</version>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700636 </dependency>
Yuta HIGUCHId209c0b2014-04-25 23:33:27 -0700637 <!-- Floodlight's dependencies -->
638 <dependency>
639 <groupId>args4j</groupId>
640 <artifactId>args4j</artifactId>
641 <version>2.0.25</version>
642 </dependency>
643 <dependency>
644 <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
645 <artifactId>concurrentlinkedhashmap-lru</artifactId>
646 <version>1.4</version>
647 </dependency>
648 <dependency>
649 <!-- dependency to old version of netty? -->
650 <groupId>org.jboss.netty</groupId>
651 <artifactId>netty</artifactId>
652 <version>3.2.7.Final</version>
653 </dependency>
654 <!-- Dependency for libraries used for testing -->
655 <dependency>
656 <groupId>junit</groupId>
657 <artifactId>junit</artifactId>
658 <version>4.11</version>
659 <scope>test</scope>
660 </dependency>
661 <dependency>
662 <groupId>org.hamcrest</groupId>
663 <artifactId>hamcrest-core</artifactId>
664 <version>1.3</version>
665 <scope>test</scope>
666 </dependency>
667 <dependency>
668 <groupId>org.hamcrest</groupId>
669 <artifactId>hamcrest-library</artifactId>
670 <version>1.3</version>
671 <scope>test</scope>
672 </dependency>
673 <dependency>
674 <groupId>org.easymock</groupId>
675 <artifactId>easymock</artifactId>
676 <version>3.1</version>
677 <scope>test</scope>
678 </dependency>
679 <dependency>
680 <groupId>org.powermock</groupId>
681 <artifactId>powermock-module-junit4</artifactId>
682 <version>${powermock.version}</version>
683 <scope>test</scope>
684 </dependency>
685 <dependency>
686 <groupId>org.powermock</groupId>
687 <artifactId>powermock-api-easymock</artifactId>
688 <version>${powermock.version}</version>
689 <scope>test</scope>
690 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700691 </dependencies>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700692 <profiles>
693 <!-- Jenkins by default defines a property BUILD_NUMBER which is used to
694 enable the profile. -->
695 <profile>
696 <id>jenkins</id>
697 <activation>
698 <property>
699 <name>env.BUILD_NUMBER</name>
700 </property>
701 </activation>
702 <build>
703 <plugins>
704 <plugin>
705 <groupId>org.codehaus.mojo</groupId>
706 <artifactId>cobertura-maven-plugin</artifactId>
707 <version>${cobertura-maven-plugin.version}</version>
708 <configuration>
709 <formats>
710 <format>xml</format>
711 </formats>
712 </configuration>
713 <executions>
714 <execution>
715 <phase>package</phase>
716 <goals>
717 <goal>cobertura</goal>
718 </goals>
719 </execution>
720 </executions>
721 </plugin>
722 </plugins>
723 </build>
724 </profile>
725 </profiles>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700726</project>