blob: 6227d9d7605ff7e10429034c8bb92643d7bd308e [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>
17 <module>net</module>
18 <module>web</module>
19 <module>cli</module>
20 <module>providers</module>
tom09419512014-08-15 11:28:43 -070021 <module>of</module>
tom09419512014-08-15 11:28:43 -070022 <module>features</module>
23 </modules>
24
25 <url>http://onlab.us/</url>
26
27 <licenses>
28 <license>
29 <!-- TODO: Is this really our license scheme? -->
30 <name>Apache License, Version 2.0</name>
31 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
32 </license>
33 </licenses>
34
tom0eb04ca2014-08-25 14:34:51 -070035 <dependencyManagement>
36 <dependencies>
37 <dependency>
38 <groupId>junit</groupId>
39 <artifactId>junit</artifactId>
40 <version>4.11</version>
41 <scope>test</scope>
42 </dependency>
tom09419512014-08-15 11:28:43 -070043
tom0eb04ca2014-08-25 14:34:51 -070044 <dependency>
45 <groupId>org.slf4j</groupId>
46 <artifactId>slf4j-api</artifactId>
47 <version>1.7.6</version>
48 <scope>provided</scope>
49 </dependency>
50
51 <dependency>
52 <groupId>org.slf4j</groupId>
53 <artifactId>slf4j-jdk14</artifactId>
54 <version>1.7.6</version>
55 <scope>test</scope>
56 </dependency>
57
58 <dependency>
59 <groupId>com.google.guava</groupId>
60 <artifactId>guava</artifactId>
61 <version>17.0</version>
62 </dependency>
63
64 <!-- Web related -->
65 <dependency>
66 <groupId>com.sun.jersey</groupId>
67 <artifactId>jersey-servlet</artifactId>
68 <version>1.18.1</version>
69 <scope>provided</scope>
70 </dependency>
71 <dependency>
72 <groupId>com.fasterxml.jackson.core</groupId>
73 <artifactId>jackson-databind</artifactId>
74 <version>2.4.2</version>
75 <scope>provided</scope>
76 </dependency>
77 <dependency>
78 <groupId>com.fasterxml.jackson.core</groupId>
79 <artifactId>jackson-annotations</artifactId>
80 <version>2.4.2</version>
81 <scope>provided</scope>
82 </dependency>
83
84 <!-- OSGi related -->
85 <dependency>
86 <groupId>org.osgi</groupId>
87 <artifactId>org.osgi.core</artifactId>
88 <version>4.3.1</version>
89 <scope>provided</scope>
90 </dependency>
91 <dependency>
92 <groupId>org.apache.felix</groupId>
93 <artifactId>org.apache.felix.scr.annotations</artifactId>
94 <version>1.9.8</version>
95 <scope>provided</scope>
96 </dependency>
97 <dependency>
98 <groupId>org.apache.karaf.shell</groupId>
99 <artifactId>org.apache.karaf.shell.console</artifactId>
100 <version>3.0.1</version>
101 <scope>provided</scope>
102 </dependency>
103
104 <!-- ONOS related -->
105 <dependency>
106 <groupId>org.onlab.onos</groupId>
107 <artifactId>onos-api</artifactId>
108 <version>${project.version}</version>
109 </dependency>
110 <dependency>
111 <groupId>org.onlab.onos</groupId>
112 <artifactId>onos-of-api</artifactId>
113 <version>${project.version}</version>
114 </dependency>
115
116 </dependencies>
117 </dependencyManagement>
118
119 <dependencies>
120 <dependency>
121 <groupId>junit</groupId>
122 <artifactId>junit</artifactId>
123 </dependency>
124 <dependency>
125 <groupId>org.slf4j</groupId>
126 <artifactId>slf4j-jdk14</artifactId>
127 </dependency>
128 </dependencies>
tom09419512014-08-15 11:28:43 -0700129
130 <build>
131 <pluginManagement>
132 <plugins>
133 <plugin>
134 <groupId>org.apache.maven.plugins</groupId>
135 <artifactId>maven-compiler-plugin</artifactId>
136 <version>3.1</version>
137 <configuration>
138 <source>1.7</source>
139 <target>1.7</target>
140 </configuration>
141 </plugin>
142
143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-surefire-plugin</artifactId>
146 <version>2.17</version>
147 </plugin>
148
149 <plugin>
150 <groupId>org.apache.maven.plugins</groupId>
151 <artifactId>maven-jar-plugin</artifactId>
152 <version>2.3.1</version>
153 <executions>
154 <execution>
155 <phase>package</phase>
156 <goals>
157 <goal>test-jar</goal>
158 </goals>
159 </execution>
160 </executions>
161 </plugin>
162
163 <plugin>
tom0eb04ca2014-08-25 14:34:51 -0700164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-resources-plugin</artifactId>
166 <version>2.6</version>
167 </plugin>
168
169 <plugin>
tom09419512014-08-15 11:28:43 -0700170 <groupId>org.apache.felix</groupId>
171 <artifactId>maven-bundle-plugin</artifactId>
172 <version>2.3.7</version>
173 <extensions>true</extensions>
174 </plugin>
175
176 <plugin>
177 <groupId>org.apache.felix</groupId>
178 <artifactId>maven-scr-plugin</artifactId>
179 <version>1.15.0</version>
180 <executions>
181 <execution>
182 <id>generate-scr-srcdescriptor</id>
183 <goals>
184 <goal>scr</goal>
185 </goals>
186 </execution>
187 </executions>
188 <configuration>
189 <supportedProjectTypes>
190 <supportedProjectType>bundle</supportedProjectType>
191 <supportedProjectType>war</supportedProjectType>
192 </supportedProjectTypes>
193 </configuration>
194 </plugin>
195
196
tom09419512014-08-15 11:28:43 -0700197 <!-- TODO: add jacoco plugin for unit test coverage; for explicit invocation only -->
tom0eb04ca2014-08-25 14:34:51 -0700198
tom09419512014-08-15 11:28:43 -0700199 <!-- TODO: add findbugs plugin for static code analysis; for explicit invocation only -->
200 <!-- TODO: add sonarqube plugin for code analysis; for explicit invocation only -->
201
202 </plugins>
tom09419512014-08-15 11:28:43 -0700203 </pluginManagement>
tom0eb04ca2014-08-25 14:34:51 -0700204
205 <plugins>
206 <plugin>
207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-checkstyle-plugin</artifactId>
209 <version>2.12.1</version>
210 <dependencies>
211 <dependency>
212 <groupId>org.onlab.tools</groupId>
213 <artifactId>onos-build-conf</artifactId>
214 <version>1.0</version>
215 </dependency>
216 </dependencies>
217 <configuration>
218 <configLocation>onos/checkstyle.xml</configLocation>
219 <suppressionsLocation>onos/suppressions.xml
220 </suppressionsLocation>
221 <failsOnError>false</failsOnError>
222 <logViolationsToConsole>true</logViolationsToConsole>
223 <includeTestSourceDirectory>true
224 </includeTestSourceDirectory>
225 </configuration>
226 <executions>
227 <execution>
228 <id>validate-checkstyle</id>
229 <phase>verify</phase>
230 <goals>
231 <goal>check</goal>
232 </goals>
233 </execution>
234 </executions>
235 </plugin>
236
237 <plugin>
238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-javadoc-plugin</artifactId>
240 <version>2.9.1</version>
241 <configuration>
242 <docfilessubdirs>true</docfilessubdirs>
243 <doctitle>ONOS Java API</doctitle>
244 <groups>
245 <group>
246 <title>Network Model &amp; Services</title>
247 <packages>
248 org.onlab.onos.net:org.onlab.onos.net.*
249 </packages>
250 </group>
251 <group>
252 <title>Core Subsystems</title>
253 <packages>
254 org.onlab.onos.net.impl:org.onlab.onos.net.*.impl
255 </packages>
256 </group>
257 <group>
258 <title>OpenFlow Providers &amp; Controller
259 </title>
260 <packages>
261 org.onlab.onos.provider.of:org.onlab.onos.provider.of.*:org.onlab.onos.of.*
262 </packages>
263 </group>
264 <group>
265 <title>Utilities</title>
266 <packages>
267 org.onlab.util:org.onlab.util.*
268 </packages>
269 </group>
270 <group>
271 <title>GUI, REST &amp; Command-Line</title>
272 <packages>
273 org.onlab.onos.gui:org.onlab.onos.rest:org.onlab.onos.cli:org.onlab.onos.gui.*:org.onlab.onos.rest.*:org.onlab.onos.cli.*
274 </packages>
275 </group>
276 </groups>
277 </configuration>
278 </plugin>
279
280 </plugins>
tom09419512014-08-15 11:28:43 -0700281 </build>
alshabib522d9872014-08-15 10:35:16 -0700282
tom0eb04ca2014-08-25 14:34:51 -0700283
284 <reporting>
285 <plugins>
286 <plugin>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-checkstyle-plugin</artifactId>
289 <version>2.12.1</version>
290 <configuration>
291 <configLocation>onos/checkstyle.xml</configLocation>
292 </configuration>
293 </plugin>
294 </plugins>
295
296 </reporting>
297
alshabib522d9872014-08-15 10:35:16 -0700298</project>