blob: d64574a01612f48dcab5b55f96c32f9a42083d88 [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>
13 <repositories>
14 <repository>
15 <id>central</id>
16 <name>Maven Central repository</name>
17 <url>http://repo1.maven.org/maven2</url>
18 </repository>
19 <repository>
20 <id>maven-restlet</id>
21 <name>Public online Restlet repository</name>
22 <url>http://maven.restlet.org</url>
23 </repository>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070024 </repositories>
25 <properties>
26 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
yoshi2fd4c7e2013-11-22 15:47:55 -080027 <powermock.version>1.5.1</powermock.version>
Pankaj Berde37d6d4d2013-12-03 10:12:56 -080028 <restlet.version>2.1.4</restlet.version>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -070029 <cobertura-maven-plugin.version>2.6</cobertura-maven-plugin.version>
Yuta HIGUCHI042e82a2014-04-25 22:37:03 -070030 <!-- Following 2 findbugs version needs to be updated in sync to match the
31 findbugs version used in findbugs-plugin -->
32 <findbugs.version>2.0.2</findbugs.version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -070033 <findbugs-plugin.version>2.5.3</findbugs-plugin.version>
34 <findbugs.effort>Max</findbugs.effort>
35 <findbugs.excludeFilterFile>conf/findbugs/exclude.xml</findbugs.excludeFilterFile>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070036 <checkstyle-plugin.version>2.12</checkstyle-plugin.version>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -080037 <!-- To publish javadoc to github,
38 uncomment com.github.github site-maven-plugin and
39 see https://github.com/OPENNETWORKINGLAB/ONOS/pull/425
40 <github.global.server>github</github.global.server>
41 -->
Yuta HIGUCHI6a643132014-03-18 22:39:27 -070042 <hazelcast.version>3.0.2</hazelcast.version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070043 </properties>
44 <build>
45 <plugins>
46 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -070047 <!-- Note: the checkstyle configuration is also in the reporting section -->
48 <groupId>org.apache.maven.plugins</groupId>
49 <artifactId>maven-checkstyle-plugin</artifactId>
50 <version>${checkstyle-plugin.version}</version>
51 <configuration>
52 <configLocation>conf/checkstyle/sun_checks.xml</configLocation>
53 <suppressionsLocation>
54 ${basedir}/conf/checkstyle/onos_suppressions.xml
55 </suppressionsLocation>
56 <failsOnError>false</failsOnError>
57 <logViolationsToConsole>true</logViolationsToConsole>
58 </configuration>
59 <executions>
60 <execution>
61 <id>validate-checkstyle</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -070062 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -070063 <goals>
64 <goal>check</goal>
65 </goals>
66 </execution>
67 </executions>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -080068 </plugin>
69 <plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070070 <groupId>org.apache.maven.plugins</groupId>
71 <artifactId>maven-install-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070072 <version>2.5.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070073 <executions>
74 </executions>
75 </plugin>
76 <!-- guice maven plugin for dependency injection inside maven -->
77 <plugin>
78 <groupId>org.apache.camel</groupId>
79 <artifactId>guice-maven-plugin</artifactId>
80 <version>2.11.0</version>
81 </plugin>
82 <!-- compile -->
83 <plugin>
84 <groupId>org.apache.maven.plugins</groupId>
85 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -070086 <version>3.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070087 <configuration>
Yuta HIGUCHI641d9992013-12-18 16:40:45 -080088 <source>1.7</source>
89 <target>1.7</target>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070090 <encoding>UTF-8</encoding>
Yuta HIGUCHIe636d472014-04-25 09:43:44 -070091 <showDeprecation>true</showDeprecation>
92 <showWarnings>true</showWarnings>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070093 </configuration>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -070094 <executions>
95 </executions>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -070096 </plugin>
97 <!-- test -->
98 <plugin>
99 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700101 <version>2.16</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700102 <configuration>
103 <excludes>
104 <!-- exclude all test cases for now -->
105 <!-- <exclude>**/storage/tests/StorageTest.java</exclude> -->
106 <!-- <exclude>**/test/*</exclude> -->
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700107 <!--
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700108 <exclude>**/test/*</exclude>
109 <exclude>**/Test*.java</exclude>
110 <exclude>**/*Test.java</exclude>
111 <exclude>**/*TestCase.java</exclude>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700112 -->
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700113 </excludes>
HIGUCHI Yuta71c96dd2013-10-20 17:15:56 -0700114 <argLine>-XX:MaxPermSize=256m</argLine>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800115 <redirectTestOutputToFile>true</redirectTestOutputToFile>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700116 </configuration>
117 </plugin>
118 <!-- exec:java -->
119 <plugin>
120 <groupId>org.codehaus.mojo</groupId>
121 <artifactId>exec-maven-plugin</artifactId>
122 <version>1.2.1</version>
123 <configuration>
Jonathan Hart51f6f5b2014-04-03 10:32:10 -0700124 <mainClass>net.onrc.onos.core.main.Main</mainClass>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700125 </configuration>
126 <executions>
127 </executions>
128 </plugin>
Jonathan Hart72f72f62013-06-12 09:54:19 +1200129 <!--<plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700130 <groupId>org.codehaus.mojo</groupId>
131 <artifactId>build-helper-maven-plugin</artifactId>
132 <version>1.7</version>
133 <executions>
134 <execution>
135 <id>add-source</id>
136 <phase>generate-sources</phase>
137 <goals>
138 <goal>add-source</goal>
139 </goals>
140 <configuration>
141 <sources>
142 <source>lib/gen-java</source>
143 </sources>
144 </configuration>
145 </execution>
146 </executions>
Jonathan Hart72f72f62013-06-12 09:54:19 +1200147 </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>
155 </configuration>
156 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700157<!-- Remove me when we're sure that system test no longer need JaCoCo
timlindberg8b13e702013-07-17 14:45:50 -0700158 <plugin>
159 <groupId>org.jacoco</groupId>
160 <artifactId>jacoco-maven-plugin</artifactId>
161 <version>0.6.3.201306030806</version>
timlindberg8b13e702013-07-17 14:45:50 -0700162 <executions>
163 <execution>
164 <id>jacoco-initialize</id>
165 <goals>
166 <goal>prepare-agent</goal>
167 </goals>
168 </execution>
169 <execution>
170 <id>jacoco-site</id>
171 <phase>package</phase>
172 <goals>
173 <goal>report</goal>
174 </goals>
175 </execution>
176 </executions>
177 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700178-->
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800179 <!--
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700180 <plugin>
181 <groupId>com.github.github</groupId>
182 <artifactId>site-maven-plugin</artifactId>
183 <version>0.8</version>
184 <configuration>
185 <message>Creating site for ${project.version}</message>
186 <dryRun>true</dryRun>
187 <repositoryName>ONOS</repositoryName>
188 <repositoryOwner>OPENNETWORKINGLAB</repositoryOwner>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800189 <path>javadoc/${project.version}/</path>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700190 </configuration>
191 <executions>
192 <execution>
193 <goals>
194 <goal>site</goal>
195 </goals>
196 <phase>site</phase>
197 </execution>
198 </executions>
199 </plugin>
Pavlin Radoslavova463e462013-12-13 15:18:50 -0800200 -->
Jonathan Hart2c61a502013-10-18 18:12:26 -0700201 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700202 <artifactId>maven-assembly-plugin</artifactId>
203 <configuration>
204 <descriptorRefs>
205 <descriptorRef>jar-with-dependencies</descriptorRef>
206 </descriptorRefs>
207 </configuration>
Jonathan Hart2c61a502013-10-18 18:12:26 -0700208 </plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800209 <plugin>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700210 <!-- Using groovy script to set maven property ${hostname}.
211 This is a workaround to get hostname as a property inside pom file,
212 which current Maven does not provide. -->
213 <groupId>org.codehaus.gmaven</groupId>
214 <artifactId>groovy-maven-plugin</artifactId>
215 <version>2.0</version>
216 <executions>
217 <execution>
218 <phase>initialize</phase>
219 <goals>
220 <goal>execute</goal>
221 </goals>
222 <configuration>
223 <source>
224 project.properties["hostname"] = InetAddress.getLocalHost().getHostName()
225 </source>
226 </configuration>
227 </execution>
228 </executions>
229 </plugin>
230 <plugin>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800231 <groupId>org.apache.maven.plugins</groupId>
232 <artifactId>maven-dependency-plugin</artifactId>
233 <version>2.8</version>
234 <executions>
235 <execution>
236 <id>build-classpath</id>
237 <phase>generate-sources</phase>
238 <goals>
239 <goal>build-classpath</goal>
240 </goals>
241 <configuration>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700242 <outputFile>${project.basedir}/.javacp.${hostname}</outputFile>
Yuta HIGUCHIb561efa2013-12-20 01:35:04 -0800243 </configuration>
244 </execution>
245 </executions>
246 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700247 <plugin>
248 <groupId>org.codehaus.mojo</groupId>
249 <artifactId>cobertura-maven-plugin</artifactId>
250 <version>${cobertura-maven-plugin.version}</version>
251 <configuration>
252 <instrumentation>
253 <ignores>
254 <ignore>org.slf4j.*</ignore>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700255 </ignores>
256 <excludes>
257 <exclude>org/openflow/**/*.class</exclude>
258 <exclude>net/floodlightcontroller/**/web/**/*.class</exclude>
259 </excludes>
260 </instrumentation>
261 </configuration>
262 <executions>
263 <execution>
264 <goals>
265 <goal>clean</goal>
266 </goals>
267 </execution>
268 </executions>
269 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700270 <!-- Note: the findbugs configuration is also in the reporting section -->
271 <plugin>
272 <groupId>org.codehaus.mojo</groupId>
273 <artifactId>findbugs-maven-plugin</artifactId>
274 <version>${findbugs-plugin.version}</version>
275 <configuration>
276 <effort>${findbugs.effort}</effort>
277 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
278 </configuration>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700279 <executions>
280 <execution>
281 <id>validate-findbugs</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700282 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700283 <goals>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700284 <goal>check</goal>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700285 </goals>
286 </execution>
287 </executions>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700288 </plugin>
289 <plugin>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-pmd-plugin</artifactId>
292 <version>3.1</version>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700293 <configuration>
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700294 <!--
295 Note: Exclusion definition exists in multiple places.
296 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700297 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700298 - maven-pmd-plugin configuration in pom.xml
299 (under build and reporting)
300 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700301 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700302 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700303 <exclude>**/edu/stanford/**</exclude>
304 <exclude>**/net/floodlightcontroller/**</exclude>
305 <exclude>**/org/openflow/**</exclude>
306 </excludes>
307 <rulesets>
308 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
309 </rulesets>
310 </configuration>
311 <executions>
312 <execution>
313 <id>validate-pmd</id>
Yuta HIGUCHI82566512014-04-16 09:44:17 -0700314 <phase>verify</phase>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700315 <goals>
316 <!-- Uncomment this goal to make the build fail on pmd errors -->
317 <!--<goal>check</goal>-->
318 </goals>
319 </execution>
320 </executions>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700321 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700322 </plugins>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800323 <pluginManagement>
324 <plugins>
325 <!--This plugin's configuration is used to store Eclipse m2e settings
326 only. It has no influence on the Maven build itself. -->
327 <plugin>
328 <groupId>org.eclipse.m2e</groupId>
329 <artifactId>lifecycle-mapping</artifactId>
330 <version>1.0.0</version>
331 <configuration>
332 <lifecycleMappingMetadata>
333 <pluginExecutions>
334 <pluginExecution>
335 <pluginExecutionFilter>
336 <groupId>
337 org.apache.maven.plugins
338 </groupId>
339 <artifactId>
340 maven-dependency-plugin
341 </artifactId>
342 <versionRange>[2.8,)</versionRange>
343 <goals>
344 <goal>build-classpath</goal>
345 </goals>
346 </pluginExecutionFilter>
347 <action>
348 <ignore></ignore>
349 </action>
350 </pluginExecution>
Yuta HIGUCHIfbd9a7e2014-03-23 00:18:50 -0700351 <pluginExecution>
352 <pluginExecutionFilter>
353 <groupId>org.codehaus.gmaven</groupId>
354 <artifactId>groovy-maven-plugin</artifactId>
355 <versionRange>[2.0,)</versionRange>
356 <goals>
357 <goal>execute</goal>
358 </goals>
359 </pluginExecutionFilter>
360 <action>
361 <ignore></ignore>
362 </action>
363 </pluginExecution>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800364 </pluginExecutions>
365 </lifecycleMappingMetadata>
366 </configuration>
367 </plugin>
368 </plugins>
369 </pluginManagement>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700370 </build>
371 <!-- for getting visualization reporting -->
372 <reporting>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700373 <excludeDefaults>true</excludeDefaults>
374 <outputDirectory>${project.build.directory}/site</outputDirectory>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700375 <plugins>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700376 <!--
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700377 <plugin>
378 <groupId>org.apache.camel</groupId>
379 <artifactId>guice-maven-plugin</artifactId>
380 <version>2.11.0</version>
381 </plugin>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700382 -->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700383 <plugin>
384 <groupId>org.apache.maven.plugins</groupId>
385 <artifactId>maven-project-info-reports-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700386 <version>2.7</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700387 <configuration>
388 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
389 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
390 </configuration>
391 <reportSets>
392 <reportSet>
393 <reports>
394 <report>dependencies</report>
HIGUCHI Yuta842b6f72013-10-08 14:19:48 -0700395 <!--report>maven-emma-plugin</report-->
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700396 <report>scm</report>
397 </reports>
398 </reportSet>
399 </reportSets>
400 </plugin>
401 <plugin>
402 <groupId>org.apache.maven.plugins</groupId>
403 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700404 <version>2.9.1</version>
Naoki Shiota1c393ce2013-06-28 22:55:14 -0700405 <configuration>
406 <charset>UTF-8</charset>
407 <locale>en</locale>
408 </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 -->
Ray Milkeyb5716c52014-04-07 11:38:27 -0700424 <suppressionsLocation>
Ray Milkey70d91cc2014-03-18 15:22:27 -0700425 ${basedir}/conf/checkstyle/onos_suppressions.xml
426 </suppressionsLocation>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700427 </configuration>
428 <reportSets>
429 <reportSet>
430 <reports>
431 <report>checkstyle</report>
432 </reports>
433 </reportSet>
434 </reportSets>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800435 </plugin>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700436 <!-- Note: the findbugs configuration is also in the build section -->
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800437 <plugin>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700438 <groupId>org.codehaus.mojo</groupId>
439 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700440 <version>${findbugs-plugin.version}</version>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700441 <configuration>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700442 <effort>${findbugs.effort}</effort>
443 <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700444 <reportPlugins>
445 <plugin>
446 <groupId>org.codehaus.mojo</groupId>
447 <artifactId>findbugs-maven-plugin</artifactId>
448 </plugin>
449 </reportPlugins>
450 </configuration>
451 </plugin>
452 <plugin>
453 <groupId>org.apache.maven.plugins</groupId>
454 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHI01c5ed92014-03-18 11:08:22 -0700455 <version>3.1</version>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700456 <configuration>
457 <!--
458 Note: Exclusion definition exists in multiple places.
459 - In file ${findbugs.excludeFilterFile} defined at top of pom.xml
Yuta HIGUCHI057f7bc2014-04-16 17:37:41 -0700460 - In file conf/checkstyle/onos_suppressions.xml
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700461 - maven-pmd-plugin configuration in pom.xml
Yuta HIGUCHIabdb3562014-03-27 13:37:36 -0700462 (under build and reporting)
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700463 -->
464 <excludes>
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700465 <exclude>**/datastore/serializers/**</exclude>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700466 <exclude>**/edu/stanford/**</exclude>
467 <exclude>**/net/floodlightcontroller/**</exclude>
468 <exclude>**/org/openflow/**</exclude>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700469 </excludes>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700470 <rulesets>
471 <ruleset>${basedir}/conf/pmd/onos_ruleset.xml</ruleset>
472 </rulesets>
Yuta HIGUCHI6cab6382014-03-17 13:47:38 -0700473 </configuration>
Ray Milkey8d3a2f02014-03-10 18:13:35 -0700474 </plugin>
475 <plugin>
Ray Milkeyb5716c52014-04-07 11:38:27 -0700476 <groupId>org.apache.maven.plugins</groupId>
477 <artifactId>maven-jxr-plugin</artifactId>
478 <version>2.4</version>
Pavlin Radoslavov4f090a82013-12-13 18:45:45 -0800479 </plugin>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700480 <plugin>
481 <groupId>org.codehaus.mojo</groupId>
482 <artifactId>cobertura-maven-plugin</artifactId>
483 <version>${cobertura-maven-plugin.version}</version>
484 </plugin>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700485 </plugins>
486 </reporting>
487 <dependencies>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800488 <!-- ONOS's direct dependencies -->
Yuta HIGUCHI5548a492013-10-24 00:39:23 -0700489 <dependency>
490 <groupId>com.esotericsoftware.kryo</groupId>
491 <artifactId>kryo</artifactId>
492 <version>2.22</version>
493 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700494 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800495 <groupId>com.google.protobuf</groupId>
496 <artifactId>protobuf-java</artifactId>
497 <version>2.5.0</version>
yoshi28bac132014-01-22 11:00:17 -0800498 </dependency>
499 <dependency>
yoshi2fd4c7e2013-11-22 15:47:55 -0800500 <groupId>com.hazelcast</groupId>
501 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI6a643132014-03-18 22:39:27 -0700502 <version>${hazelcast.version}</version>
503 </dependency>
504 <dependency>
505 <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>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700510 <groupId>net.sf.json-lib</groupId>
511 <artifactId>json-lib</artifactId>
512 <version>2.4</version>
513 <classifier>jdk15</classifier>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700514 </dependency>
515 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700516 <groupId>org.restlet.jse</groupId>
517 <artifactId>org.restlet</artifactId>
518 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700519 </dependency>
520 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700521 <groupId>org.restlet.jse</groupId>
522 <artifactId>org.restlet.ext.slf4j</artifactId>
523 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700524 </dependency>
525 <dependency>
526 <groupId>org.codehaus.jackson</groupId>
527 <artifactId>jackson-core-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700528 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700529 </dependency>
530 <dependency>
531 <groupId>org.codehaus.jackson</groupId>
532 <artifactId>jackson-mapper-asl</artifactId>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700533 <version>1.9.13</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700534 </dependency>
535 <dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700536 <groupId>ch.qos.logback</groupId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700537 <artifactId>logback-classic</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700538 <version>1.0.13</version>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700539 <scope>runtime</scope>
540 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800541 <dependency>
542 <groupId>commons-configuration</groupId>
543 <artifactId>commons-configuration</artifactId>
544 <version>1.6</version>
545 </dependency>
546 <dependency>
Yuta HIGUCHI850b0042014-04-16 15:10:31 -0700547 <groupId>commons-lang</groupId>
548 <artifactId>commons-lang</artifactId>
549 <version>2.6</version>
550 </dependency>
551 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800552 <groupId>com.google.guava</groupId>
553 <artifactId>guava</artifactId>
Jonathan Hart0487c712014-04-18 14:52:04 -0700554 <version>16.0.1</version>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800555 </dependency>
556 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800557 <groupId>commons-httpclient</groupId>
558 <artifactId>commons-httpclient</artifactId>
559 <version>3.1</version>
560 </dependency>
561 <dependency>
562 <groupId>org.apache.zookeeper</groupId>
563 <artifactId>zookeeper</artifactId>
564 <version>3.4.5</version>
Yuta HIGUCHI6d935e52014-03-28 10:34:26 -0700565 <scope>runtime</scope>
566 <!-- Following workaround exclusions can be removed,
567 when we're ready to switch to ZooKeeper 3.4.6 -->
568 <exclusions>
569 <exclusion>
570 <groupId>com.sun.jmx</groupId>
571 <artifactId>jmxri</artifactId>
572 </exclusion>
573 <exclusion>
574 <groupId>com.sun.jdmk</groupId>
575 <artifactId>jmxtools</artifactId>
576 </exclusion>
577 <exclusion>
578 <groupId>javax.jms</groupId>
579 <artifactId>jms</artifactId>
580 </exclusion>
581 </exclusions>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800582 </dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700583 <!-- Floodlight's dependencies -->
584 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700585 <groupId>org.slf4j</groupId>
586 <artifactId>slf4j-api</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700587 <version>1.7.5</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700588 </dependency>
589 <dependency>
590 <groupId>org.restlet.jse</groupId>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700591 <artifactId>org.restlet.ext.jackson</artifactId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700592 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700593 </dependency>
594 <dependency>
595 <groupId>org.restlet.jse</groupId>
596 <artifactId>org.restlet.ext.simple</artifactId>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700597 <version>${restlet.version}</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700598 </dependency>
599 <dependency>
600 <groupId>org.simpleframework</groupId>
601 <artifactId>simple</artifactId>
602 <version>4.1.21</version>
603 </dependency>
604 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700605 <groupId>args4j</groupId>
606 <artifactId>args4j</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700607 <version>2.0.25</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700608 </dependency>
609 <dependency>
610 <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
611 <artifactId>concurrentlinkedhashmap-lru</artifactId>
Pankaj Berde98478422013-09-10 13:53:26 -0700612 <version>1.4</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700613 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700614 <dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800615 <!-- dependency to old version of netty? -->
616 <groupId>org.jboss.netty</groupId>
617 <artifactId>netty</artifactId>
618 <version>3.2.7.Final</version>
619 </dependency>
HIGUCHI Yuta9f5c5a72013-06-11 13:21:43 -0700620 <!-- Dependency for libraries used for testing -->
621 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700622 <groupId>junit</groupId>
623 <artifactId>junit</artifactId>
HIGUCHI Yutae4b07222013-06-08 02:17:30 -0700624 <version>4.11</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700625 <scope>test</scope>
626 </dependency>
627 <dependency>
Ray Milkey6688cd82014-03-11 16:40:46 -0700628 <groupId>org.hamcrest</groupId>
629 <artifactId>hamcrest-core</artifactId>
630 <version>1.3</version>
631 <scope>test</scope>
632 </dependency>
633 <dependency>
634 <groupId>org.hamcrest</groupId>
635 <artifactId>hamcrest-library</artifactId>
636 <version>1.3</version>
637 <scope>test</scope>
638 </dependency>
639 <dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700640 <groupId>org.easymock</groupId>
641 <artifactId>easymock</artifactId>
yoshif5a6a502013-11-25 09:30:35 -0800642 <version>3.1</version>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700643 <scope>test</scope>
644 </dependency>
645 <dependency>
HIGUCHI Yutae4b07222013-06-08 02:17:30 -0700646 <groupId>org.powermock</groupId>
647 <artifactId>powermock-module-junit4</artifactId>
648 <version>${powermock.version}</version>
649 <scope>test</scope>
650 </dependency>
651 <dependency>
652 <groupId>org.powermock</groupId>
653 <artifactId>powermock-api-easymock</artifactId>
654 <version>${powermock.version}</version>
655 <scope>test</scope>
656 </dependency>
Yuta HIGUCHI824552a2014-03-07 13:01:06 -0800657 <dependency>
Jonathan Hart116b1fe2014-03-14 18:53:47 -0700658 <groupId>org.apache.curator</groupId>
659 <artifactId>curator-framework</artifactId>
660 <version>2.4.1</version>
661 </dependency>
662 <dependency>
663 <groupId>org.apache.curator</groupId>
664 <artifactId>curator-client</artifactId>
665 <version>2.4.1</version>
666 </dependency>
667 <dependency>
668 <groupId>org.apache.curator</groupId>
669 <artifactId>curator-recipes</artifactId>
670 <version>2.4.1</version>
671 </dependency>
672 <dependency>
673 <groupId>org.apache.curator</groupId>
674 <artifactId>curator-x-discovery</artifactId>
675 <version>2.4.1</version>
676 </dependency>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700677 <dependency>
Yuta HIGUCHI042e82a2014-04-25 22:37:03 -0700678 <!-- findbugs suppression annotation -->
679 <groupId>com.google.code.findbugs</groupId>
680 <artifactId>findbugs</artifactId>
681 <version>${findbugs.version}</version>
Yuta HIGUCHI6ee19182014-04-11 09:48:35 -0700682 </dependency>
HIGUCHI Yutae7aa9252013-06-06 14:54:21 -0700683 </dependencies>
Yuta HIGUCHI889958b2014-03-12 12:05:47 -0700684 <profiles>
685 <!-- Jenkins by default defines a property BUILD_NUMBER which is used to
686 enable the profile. -->
687 <profile>
688 <id>jenkins</id>
689 <activation>
690 <property>
691 <name>env.BUILD_NUMBER</name>
692 </property>
693 </activation>
694 <build>
695 <plugins>
696 <plugin>
697 <groupId>org.codehaus.mojo</groupId>
698 <artifactId>cobertura-maven-plugin</artifactId>
699 <version>${cobertura-maven-plugin.version}</version>
700 <configuration>
701 <formats>
702 <format>xml</format>
703 </formats>
704 </configuration>
705 <executions>
706 <execution>
707 <phase>package</phase>
708 <goals>
709 <goal>cobertura</goal>
710 </goals>
711 </execution>
712 </executions>
713 </plugin>
714 </plugins>
715 </build>
716 </profile>
717 </profiles>
Pankaj Berde85c58f92013-10-03 18:26:08 -0700718</project>