blob: 95ac15c57bd4ec30ee37e5880af63e07a9c74c1c [file] [log] [blame]
alshabib522d9872014-08-15 10:35:16 -07001<?xml version="1.0" encoding="UTF-8"?>
tom09419512014-08-15 11:28:43 -07002<project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5 <modelVersion>4.0.0</modelVersion>
alshabib522d9872014-08-15 10:35:16 -07006
tom0eb04ca2014-08-25 14:34:51 -07007 <groupId>org.onlab.onos</groupId>
tom09419512014-08-15 11:28:43 -07008 <artifactId>onos</artifactId>
9 <packaging>pom</packaging>
10 <version>1.0.0-SNAPSHOT</version>
alshabib522d9872014-08-15 10:35:16 -070011
tom0eb04ca2014-08-25 14:34:51 -070012 <description>Open Networking Operating System root project</description>
tom09419512014-08-15 11:28:43 -070013
14 <modules>
tom0eb04ca2014-08-25 14:34:51 -070015 <module>tools/build/conf</module>
16 <module>utils</module>
tome2dc27a2014-09-09 12:41:21 -070017 <module>core</module>
tom0eb04ca2014-08-25 14:34:51 -070018 <module>web</module>
19 <module>cli</module>
20 <module>providers</module>
tomf8b8d672014-09-17 13:07:23 -070021 <module>openflow</module>
tom8bb16062014-09-12 14:47:46 -070022 <module>apps</module>
tom09419512014-08-15 11:28:43 -070023 <module>features</module>
tomaa49a1e2014-09-12 23:11:46 -070024 <module>tools/package/branding</module>
tom09419512014-08-15 11:28:43 -070025 </modules>
26
27 <url>http://onlab.us/</url>
28
29 <licenses>
30 <license>
31 <!-- TODO: Is this really our license scheme? -->
32 <name>Apache License, Version 2.0</name>
33 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
34 </license>
35 </licenses>
36
Yuta HIGUCHIe2efe722014-09-19 14:37:34 -070037 <properties>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 </properties>
40
tom0eb04ca2014-08-25 14:34:51 -070041 <dependencyManagement>
42 <dependencies>
43 <dependency>
44 <groupId>junit</groupId>
45 <artifactId>junit</artifactId>
46 <version>4.11</version>
47 <scope>test</scope>
48 </dependency>
tom09419512014-08-15 11:28:43 -070049
tom0eb04ca2014-08-25 14:34:51 -070050 <dependency>
51 <groupId>org.slf4j</groupId>
52 <artifactId>slf4j-api</artifactId>
53 <version>1.7.6</version>
54 <scope>provided</scope>
55 </dependency>
56
57 <dependency>
58 <groupId>org.slf4j</groupId>
59 <artifactId>slf4j-jdk14</artifactId>
60 <version>1.7.6</version>
61 <scope>test</scope>
62 </dependency>
63
64 <dependency>
65 <groupId>com.google.guava</groupId>
66 <artifactId>guava</artifactId>
tomeadbb462014-09-07 16:10:19 -070067 <version>18.0</version>
tom0eb04ca2014-08-25 14:34:51 -070068 </dependency>
69
alshabibdf652ad2014-09-09 11:53:19 -070070 <dependency>
71 <groupId>io.netty</groupId>
72 <artifactId>netty</artifactId>
73 <version>3.9.0.Final</version>
74 </dependency>
75
76
77
tomde8d9682014-08-27 01:11:43 -070078 <dependency>
79 <groupId>com.google.guava</groupId>
80 <artifactId>guava-testlib</artifactId>
tomeadbb462014-09-07 16:10:19 -070081 <version>18.0</version>
tomde8d9682014-08-27 01:11:43 -070082 <scope>test</scope>
83 </dependency>
84
tom6d2a43e2014-09-08 01:50:20 -070085 <dependency>
86 <groupId>commons-lang</groupId>
87 <artifactId>commons-lang</artifactId>
88 <version>2.6</version>
89 </dependency>
tomde8d9682014-08-27 01:11:43 -070090
tom0eb04ca2014-08-25 14:34:51 -070091 <!-- Web related -->
92 <dependency>
93 <groupId>com.sun.jersey</groupId>
94 <artifactId>jersey-servlet</artifactId>
95 <version>1.18.1</version>
96 <scope>provided</scope>
97 </dependency>
98 <dependency>
99 <groupId>com.fasterxml.jackson.core</groupId>
100 <artifactId>jackson-databind</artifactId>
101 <version>2.4.2</version>
102 <scope>provided</scope>
103 </dependency>
104 <dependency>
105 <groupId>com.fasterxml.jackson.core</groupId>
106 <artifactId>jackson-annotations</artifactId>
107 <version>2.4.2</version>
108 <scope>provided</scope>
109 </dependency>
110
111 <!-- OSGi related -->
112 <dependency>
113 <groupId>org.osgi</groupId>
114 <artifactId>org.osgi.core</artifactId>
115 <version>4.3.1</version>
116 <scope>provided</scope>
117 </dependency>
118 <dependency>
119 <groupId>org.apache.felix</groupId>
120 <artifactId>org.apache.felix.scr.annotations</artifactId>
121 <version>1.9.8</version>
122 <scope>provided</scope>
123 </dependency>
124 <dependency>
125 <groupId>org.apache.karaf.shell</groupId>
126 <artifactId>org.apache.karaf.shell.console</artifactId>
127 <version>3.0.1</version>
128 <scope>provided</scope>
129 </dependency>
130
131 <!-- ONOS related -->
132 <dependency>
133 <groupId>org.onlab.onos</groupId>
tom5f38b3a2014-08-27 23:50:54 -0700134 <artifactId>onlab-misc</artifactId>
135 <version>${project.version}</version>
136 </dependency>
tom931af4e2014-09-13 12:00:57 -0700137 <dependency>
138 <groupId>org.onlab.onos</groupId>
139 <artifactId>onlab-junit</artifactId>
140 <version>1.0.0-SNAPSHOT</version>
141 <scope>test</scope>
142 </dependency>
tom5f38b3a2014-08-27 23:50:54 -0700143
144 <dependency>
145 <groupId>org.onlab.onos</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700146 <artifactId>onos-api</artifactId>
147 <version>${project.version}</version>
148 </dependency>
149 <dependency>
150 <groupId>org.onlab.onos</groupId>
tom61359e92014-09-16 15:50:27 -0700151 <artifactId>onos-api</artifactId>
152 <version>${project.version}</version>
153 <classifier>tests</classifier>
154 <scope>test</scope>
155 </dependency>
156
157 <dependency>
158 <groupId>org.onlab.onos</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700159 <artifactId>onos-of-api</artifactId>
160 <version>${project.version}</version>
161 </dependency>
tom61359e92014-09-16 15:50:27 -0700162 <dependency>
163 <groupId>org.onlab.onos</groupId>
164 <artifactId>onos-of-api</artifactId>
165 <version>${project.version}</version>
166 <classifier>tests</classifier>
167 <scope>test</scope>
168 </dependency>
tom0eb04ca2014-08-25 14:34:51 -0700169 </dependencies>
170 </dependencyManagement>
171
172 <dependencies>
173 <dependency>
174 <groupId>junit</groupId>
175 <artifactId>junit</artifactId>
176 </dependency>
177 <dependency>
178 <groupId>org.slf4j</groupId>
179 <artifactId>slf4j-jdk14</artifactId>
180 </dependency>
181 </dependencies>
tom09419512014-08-15 11:28:43 -0700182
183 <build>
184 <pluginManagement>
185 <plugins>
186 <plugin>
187 <groupId>org.apache.maven.plugins</groupId>
188 <artifactId>maven-compiler-plugin</artifactId>
189 <version>3.1</version>
190 <configuration>
191 <source>1.7</source>
192 <target>1.7</target>
193 </configuration>
194 </plugin>
195
196 <plugin>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-surefire-plugin</artifactId>
199 <version>2.17</version>
tom64888122014-08-27 21:47:46 -0700200 <configuration>
201 <redirectTestOutputToFile>true</redirectTestOutputToFile>
202 <printSummary>true</printSummary>
203 </configuration>
tom09419512014-08-15 11:28:43 -0700204 </plugin>
205
206 <plugin>
207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-jar-plugin</artifactId>
209 <version>2.3.1</version>
210 <executions>
211 <execution>
212 <phase>package</phase>
213 <goals>
214 <goal>test-jar</goal>
215 </goals>
216 </execution>
217 </executions>
218 </plugin>
219
220 <plugin>
tom0eb04ca2014-08-25 14:34:51 -0700221 <groupId>org.apache.maven.plugins</groupId>
222 <artifactId>maven-resources-plugin</artifactId>
223 <version>2.6</version>
224 </plugin>
225
226 <plugin>
tom09419512014-08-15 11:28:43 -0700227 <groupId>org.apache.felix</groupId>
228 <artifactId>maven-bundle-plugin</artifactId>
229 <version>2.3.7</version>
230 <extensions>true</extensions>
231 </plugin>
232
233 <plugin>
234 <groupId>org.apache.felix</groupId>
235 <artifactId>maven-scr-plugin</artifactId>
236 <version>1.15.0</version>
237 <executions>
238 <execution>
239 <id>generate-scr-srcdescriptor</id>
240 <goals>
241 <goal>scr</goal>
242 </goals>
243 </execution>
244 </executions>
245 <configuration>
246 <supportedProjectTypes>
247 <supportedProjectType>bundle</supportedProjectType>
248 <supportedProjectType>war</supportedProjectType>
249 </supportedProjectTypes>
250 </configuration>
251 </plugin>
252
tom09419512014-08-15 11:28:43 -0700253 <!-- TODO: add jacoco plugin for unit test coverage; for explicit invocation only -->
254 <!-- TODO: add findbugs plugin for static code analysis; for explicit invocation only -->
255 <!-- TODO: add sonarqube plugin for code analysis; for explicit invocation only -->
256
257 </plugins>
tom09419512014-08-15 11:28:43 -0700258 </pluginManagement>
tom0eb04ca2014-08-25 14:34:51 -0700259
260 <plugins>
261 <plugin>
262 <groupId>org.apache.maven.plugins</groupId>
tome33cc1a2014-08-25 21:59:41 -0700263 <artifactId>maven-jar-plugin</artifactId>
264 </plugin>
265
266 <plugin>
267 <groupId>org.apache.maven.plugins</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700268 <artifactId>maven-checkstyle-plugin</artifactId>
269 <version>2.12.1</version>
270 <dependencies>
271 <dependency>
272 <groupId>org.onlab.tools</groupId>
273 <artifactId>onos-build-conf</artifactId>
274 <version>1.0</version>
275 </dependency>
276 </dependencies>
277 <configuration>
278 <configLocation>onos/checkstyle.xml</configLocation>
279 <suppressionsLocation>onos/suppressions.xml
280 </suppressionsLocation>
281 <failsOnError>false</failsOnError>
282 <logViolationsToConsole>true</logViolationsToConsole>
283 <includeTestSourceDirectory>true
284 </includeTestSourceDirectory>
285 </configuration>
286 <executions>
287 <execution>
288 <id>validate-checkstyle</id>
289 <phase>verify</phase>
290 <goals>
291 <goal>check</goal>
292 </goals>
293 </execution>
294 </executions>
295 </plugin>
296
297 <plugin>
tom50a76dd2014-09-02 15:18:35 -0700298 <groupId>org.apache.maven.plugins</groupId>
299 <artifactId>maven-pmd-plugin</artifactId>
300 <version>3.2</version>
301 <configuration>
302 <excludes>
303 <exclude>**/datastore/serializers/**</exclude>
304 <exclude>**/edu/stanford/**</exclude>
305 <exclude>**/net/floodlightcontroller/**</exclude>
306 </excludes>
307 <rulesets>
308 <ruleset>onos/pmd.xml</ruleset>
309 </rulesets>
310 </configuration>
311 <executions>
312 <execution>
313 <id>validate-pmd</id>
314 <phase>verify</phase>
315 <goals>
316 <!-- Uncomment this goal to make the build fail on pmd errors -->
317 <!--<goal>check</goal>-->
318 </goals>
319 </execution>
320 </executions>
321 </plugin>
322
323 <plugin>
tom4f3b18b2014-08-28 14:38:47 -0700324 <groupId>org.jacoco</groupId>
325 <artifactId>jacoco-maven-plugin</artifactId>
326 <version>0.7.1.201405082137</version>
327 <executions>
328 <execution>
329 <id>default-prepare-agent</id>
330 <goals>
331 <goal>prepare-agent</goal>
332 </goals>
333 </execution>
334 <execution>
335 <id>default-report</id>
336 <phase>prepare-package</phase>
337 <goals>
338 <goal>report</goal>
339 </goals>
340 </execution>
341 </executions>
342 </plugin>
343
344 <plugin>
tom0eb04ca2014-08-25 14:34:51 -0700345 <groupId>org.apache.maven.plugins</groupId>
346 <artifactId>maven-javadoc-plugin</artifactId>
347 <version>2.9.1</version>
348 <configuration>
tom578ebdc2014-09-11 11:12:51 -0700349 <show>package</show>
tom0eb04ca2014-08-25 14:34:51 -0700350 <docfilessubdirs>true</docfilessubdirs>
351 <doctitle>ONOS Java API</doctitle>
352 <groups>
353 <group>
354 <title>Network Model &amp; Services</title>
355 <packages>
tom5f38b3a2014-08-27 23:50:54 -0700356 org.onlab.onos:org.onlab.onos.*
tom0eb04ca2014-08-25 14:34:51 -0700357 </packages>
358 </group>
359 <group>
360 <title>Core Subsystems</title>
361 <packages>
tom8bf2e6b2014-09-10 20:53:54 -0700362 org.onlab.onos.net.trivial.*:org.onlab.onos.net.*.impl:org.onlab.onos.impl:org.onlab.onos.event.impl
tom0eb04ca2014-08-25 14:34:51 -0700363 </packages>
364 </group>
365 <group>
366 <title>OpenFlow Providers &amp; Controller
367 </title>
368 <packages>
tom9c94c5b2014-09-17 13:14:42 -0700369 org.onlab.onos.provider.of.*:org.onlab.onos.openflow.*
tom0eb04ca2014-08-25 14:34:51 -0700370 </packages>
371 </group>
372 <group>
373 <title>Utilities</title>
374 <packages>
tom984d7822014-08-29 12:02:59 -0700375 org.onlab.*
tom0eb04ca2014-08-25 14:34:51 -0700376 </packages>
377 </group>
378 <group>
379 <title>GUI, REST &amp; Command-Line</title>
380 <packages>
381 org.onlab.onos.gui:org.onlab.onos.rest:org.onlab.onos.cli:org.onlab.onos.gui.*:org.onlab.onos.rest.*:org.onlab.onos.cli.*
382 </packages>
383 </group>
tom8bb16062014-09-12 14:47:46 -0700384 <group>
385 <title>Sample Applications</title>
386 <packages>
tomc370ebd2014-09-16 01:25:21 -0700387 org.onlab.onos.tvue:org.onlab.onos.fwd
tom8bb16062014-09-12 14:47:46 -0700388 </packages>
389 </group>
tom0eb04ca2014-08-25 14:34:51 -0700390 </groups>
391 </configuration>
392 </plugin>
393
394 </plugins>
tom09419512014-08-15 11:28:43 -0700395 </build>
alshabib522d9872014-08-15 10:35:16 -0700396
tom0eb04ca2014-08-25 14:34:51 -0700397 <reporting>
398 <plugins>
399 <plugin>
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-checkstyle-plugin</artifactId>
402 <version>2.12.1</version>
403 <configuration>
404 <configLocation>onos/checkstyle.xml</configLocation>
405 </configuration>
406 </plugin>
tom50a76dd2014-09-02 15:18:35 -0700407
408 <plugin>
409 <groupId>org.apache.maven.plugins</groupId>
410 <artifactId>maven-pmd-plugin</artifactId>
411 <version>3.2</version>
412 <configuration>
413 <excludes>
414 <exclude>**/datastore/serializers/**</exclude>
415 <exclude>**/edu/stanford/**</exclude>
416 <exclude>**/net/floodlightcontroller/**</exclude>
417 </excludes>
418 <rulesets>
419 <ruleset>onos/pmd.xml</ruleset>
420 </rulesets>
421 </configuration>
422 </plugin>
423
tom0eb04ca2014-08-25 14:34:51 -0700424 </plugins>
425
426 </reporting>
427
alshabib522d9872014-08-15 10:35:16 -0700428</project>