Splitting 3rd party dependencies from the root pom into it's own lib/pom.xml.
Change-Id: I3a2f6d0388df80f9d230f94490927f5644252d5b
Showing
2 changed files
with
672 additions
and
645 deletions
lib/pom.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!-- | ||
3 | + ~ Copyright 2016 Open Networking Laboratory | ||
4 | + ~ | ||
5 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
6 | + ~ you may not use this file except in compliance with the License. | ||
7 | + ~ You may obtain a copy of the License at | ||
8 | + ~ | ||
9 | + ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
10 | + ~ | ||
11 | + ~ Unless required by applicable law or agreed to in writing, software | ||
12 | + ~ distributed under the License is distributed on an "AS IS" BASIS, | ||
13 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
14 | + ~ See the License for the specific language governing permissions and | ||
15 | + ~ limitations under the License. | ||
16 | + --> | ||
17 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
18 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
19 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
20 | + <modelVersion>4.0.0</modelVersion> | ||
21 | + | ||
22 | + <prerequisites> | ||
23 | + <maven>3.0.3</maven> | ||
24 | + </prerequisites> | ||
25 | + | ||
26 | + <parent> | ||
27 | + <groupId>org.onosproject</groupId> | ||
28 | + <artifactId>onos-base</artifactId> | ||
29 | + <version>1</version> | ||
30 | + <relativePath>../tools/build/pom.xml</relativePath> | ||
31 | + </parent> | ||
32 | + | ||
33 | + <groupId>org.onosproject</groupId> | ||
34 | + <artifactId>onos-dependencies</artifactId> | ||
35 | + <packaging>pom</packaging> | ||
36 | + <version>1.7.0-SNAPSHOT</version> | ||
37 | + | ||
38 | + <name>${project.artifactId}</name> | ||
39 | + <description>Open Network Operating System shared dependencies</description> | ||
40 | + | ||
41 | + <properties> | ||
42 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
43 | + <onos-build-conf.version>1.3</onos-build-conf.version> | ||
44 | + <netty4.version>4.0.36.Final</netty4.version> | ||
45 | + <openflowj.version>0.9.4.onos</openflowj.version> | ||
46 | + <onos-maven-plugin.version>1.9</onos-maven-plugin.version> | ||
47 | + <osgi.version>5.0.0</osgi.version> | ||
48 | + <karaf.version>3.0.5</karaf.version> | ||
49 | + <jersey.version>2.22.2</jersey.version> | ||
50 | + <jackson.version>2.7.3</jackson.version> | ||
51 | + <slf4j.version>1.7.21</slf4j.version> | ||
52 | + <guava.version>19.0</guava.version> | ||
53 | + <commons.io.version>2.4</commons.io.version> | ||
54 | + <!-- TODO argLine was originally added maven-surfire-plugin configuration | ||
55 | + to fix locale errors for non-US developers. However, it breaks | ||
56 | + SonarQube's test coverage, so moving here for now. --> | ||
57 | + <argLine>-Duser.language=en -Duser.region=US</argLine> | ||
58 | + </properties> | ||
59 | + | ||
60 | + <dependencyManagement> | ||
61 | + <dependencies> | ||
62 | + <dependency> | ||
63 | + <groupId>junit</groupId> | ||
64 | + <artifactId>junit</artifactId> | ||
65 | + <version>4.12</version> | ||
66 | + <scope>test</scope> | ||
67 | + </dependency> | ||
68 | + | ||
69 | + <dependency> | ||
70 | + <groupId>org.hamcrest</groupId> | ||
71 | + <artifactId>hamcrest-core</artifactId> | ||
72 | + <version>1.3</version> | ||
73 | + <scope>test</scope> | ||
74 | + </dependency> | ||
75 | + <dependency> | ||
76 | + <groupId>org.hamcrest</groupId> | ||
77 | + <artifactId>hamcrest-library</artifactId> | ||
78 | + <version>1.3</version> | ||
79 | + <scope>test</scope> | ||
80 | + </dependency> | ||
81 | + | ||
82 | + <dependency> | ||
83 | + <groupId>org.slf4j</groupId> | ||
84 | + <artifactId>slf4j-api</artifactId> | ||
85 | + <version>${slf4j.version}</version> | ||
86 | + <scope>provided</scope> | ||
87 | + </dependency> | ||
88 | + | ||
89 | + <dependency> | ||
90 | + <groupId>org.slf4j</groupId> | ||
91 | + <artifactId>slf4j-core</artifactId> | ||
92 | + <version>${slf4j.version}</version> | ||
93 | + <scope>test</scope> | ||
94 | + </dependency> | ||
95 | + | ||
96 | + <dependency> | ||
97 | + <groupId>org.slf4j</groupId> | ||
98 | + <artifactId>slf4j-jdk14</artifactId> | ||
99 | + <version>${slf4j.version}</version> | ||
100 | + <scope>test</scope> | ||
101 | + </dependency> | ||
102 | + | ||
103 | + <dependency> | ||
104 | + <groupId>com.google.guava</groupId> | ||
105 | + <artifactId>guava</artifactId> | ||
106 | + <version>${guava.version}</version> | ||
107 | + </dependency> | ||
108 | + | ||
109 | + <dependency> | ||
110 | + <groupId>com.google.guava</groupId> | ||
111 | + <artifactId>guava-testlib</artifactId> | ||
112 | + <version>${guava.version}</version> | ||
113 | + <scope>test</scope> | ||
114 | + </dependency> | ||
115 | + | ||
116 | + <dependency> | ||
117 | + <groupId>com.googlecode.concurrent-trees</groupId> | ||
118 | + <artifactId>concurrent-trees</artifactId> | ||
119 | + <version>2.4.0</version> | ||
120 | + </dependency> | ||
121 | + | ||
122 | + <dependency> | ||
123 | + <groupId>commons-lang</groupId> | ||
124 | + <artifactId>commons-lang</artifactId> | ||
125 | + <version>2.6</version> | ||
126 | + </dependency> | ||
127 | + | ||
128 | + <dependency> | ||
129 | + <groupId>org.apache.commons</groupId> | ||
130 | + <artifactId>commons-lang3</artifactId> | ||
131 | + <version>3.4</version> | ||
132 | + </dependency> | ||
133 | + | ||
134 | + <dependency> | ||
135 | + <groupId>commons-configuration</groupId> | ||
136 | + <artifactId>commons-configuration</artifactId> | ||
137 | + <version>1.10</version> | ||
138 | + </dependency> | ||
139 | + | ||
140 | + <dependency> | ||
141 | + <groupId>commons-collections</groupId> | ||
142 | + <artifactId>commons-collections</artifactId> | ||
143 | + <version>3.2.2</version> | ||
144 | + </dependency> | ||
145 | + | ||
146 | + <dependency> | ||
147 | + <groupId>commons-pool</groupId> | ||
148 | + <artifactId>commons-pool</artifactId> | ||
149 | + <version>1.6</version> | ||
150 | + </dependency> | ||
151 | + | ||
152 | + <dependency> | ||
153 | + <groupId>org.easymock</groupId> | ||
154 | + <artifactId>easymock</artifactId> | ||
155 | + <version>3.4</version> | ||
156 | + <scope>test</scope> | ||
157 | + </dependency> | ||
158 | + | ||
159 | + <!-- Web related --> | ||
160 | + <dependency> | ||
161 | + <groupId>org.glassfish.jersey.core</groupId> | ||
162 | + <artifactId>jersey-client</artifactId> | ||
163 | + <version>${jersey.version}</version> | ||
164 | + </dependency> | ||
165 | + <dependency> | ||
166 | + <groupId>org.glassfish.jersey.containers</groupId> | ||
167 | + <artifactId>jersey-container-servlet</artifactId> | ||
168 | + <version>${jersey.version}</version> | ||
169 | + <scope>provided</scope> | ||
170 | + </dependency> | ||
171 | + <dependency> | ||
172 | + <groupId>org.glassfish.jersey.containers</groupId> | ||
173 | + <artifactId>jersey-container-servlet-core</artifactId> | ||
174 | + <version>${jersey.version}</version> | ||
175 | + <scope>provided</scope> | ||
176 | + </dependency> | ||
177 | + <dependency> | ||
178 | + <groupId>org.glassfish.jersey.media</groupId> | ||
179 | + <artifactId>jersey-media-multipart</artifactId> | ||
180 | + <version>${jersey.version}</version> | ||
181 | + <scope>provided</scope> | ||
182 | + </dependency> | ||
183 | + <dependency> | ||
184 | + <groupId>org.glassfish.jersey.test-framework</groupId> | ||
185 | + <artifactId>jersey-test-framework-core</artifactId> | ||
186 | + <version>${jersey.version}</version> | ||
187 | + <scope>test</scope> | ||
188 | + </dependency> | ||
189 | + <dependency> | ||
190 | + <groupId>org.glassfish.jersey.test-framework.providers</groupId> | ||
191 | + <artifactId>jersey-test-framework-provider-jetty</artifactId> | ||
192 | + <version>${jersey.version}</version> | ||
193 | + <scope>test</scope> | ||
194 | + </dependency> | ||
195 | + <dependency> | ||
196 | + <groupId>com.fasterxml.jackson.core</groupId> | ||
197 | + <artifactId>jackson-databind</artifactId> | ||
198 | + <version>${jackson.version}</version> | ||
199 | + <scope>provided</scope> | ||
200 | + </dependency> | ||
201 | + <dependency> | ||
202 | + <groupId>com.fasterxml.jackson.core</groupId> | ||
203 | + <artifactId>jackson-annotations</artifactId> | ||
204 | + <version>${jackson.version}</version> | ||
205 | + <scope>provided</scope> | ||
206 | + </dependency> | ||
207 | + | ||
208 | + <!-- OSGi related --> | ||
209 | + <dependency> | ||
210 | + <groupId>org.osgi</groupId> | ||
211 | + <artifactId>org.osgi.core</artifactId> | ||
212 | + <version>${osgi.version}</version> | ||
213 | + <scope>provided</scope> | ||
214 | + </dependency> | ||
215 | + <dependency> | ||
216 | + <groupId>org.osgi</groupId> | ||
217 | + <artifactId>org.osgi.compendium</artifactId> | ||
218 | + <version>${osgi.version}</version> | ||
219 | + <scope>provided</scope> | ||
220 | + </dependency> | ||
221 | + <dependency> | ||
222 | + <groupId>org.apache.felix</groupId> | ||
223 | + <artifactId>org.apache.felix.scr.annotations</artifactId> | ||
224 | + <version>1.9.12</version> | ||
225 | + <scope>provided</scope> | ||
226 | + </dependency> | ||
227 | + <dependency> | ||
228 | + <groupId>org.apache.felix</groupId> | ||
229 | + <artifactId>org.apache.felix.scr</artifactId> | ||
230 | + <version>1.8.2</version> | ||
231 | + </dependency> | ||
232 | + | ||
233 | + <dependency> | ||
234 | + <groupId>org.apache.karaf.features</groupId> | ||
235 | + <artifactId>org.apache.karaf.features.core</artifactId> | ||
236 | + <version>${karaf.version}</version> | ||
237 | + <scope>provided</scope> | ||
238 | + </dependency> | ||
239 | + <dependency> | ||
240 | + <groupId>org.apache.karaf.system</groupId> | ||
241 | + <artifactId>org.apache.karaf.system.core</artifactId> | ||
242 | + <version>${karaf.version}</version> | ||
243 | + <scope>provided</scope> | ||
244 | + </dependency> | ||
245 | + <dependency> | ||
246 | + <groupId>org.apache.karaf.shell</groupId> | ||
247 | + <artifactId>org.apache.karaf.shell.console</artifactId> | ||
248 | + <version>${karaf.version}</version> | ||
249 | + <scope>provided</scope> | ||
250 | + </dependency> | ||
251 | + | ||
252 | + <dependency> | ||
253 | + <groupId>org.livetribe.slp</groupId> | ||
254 | + <artifactId>livetribe-slp</artifactId> | ||
255 | + <version>2.2.1</version> | ||
256 | + </dependency> | ||
257 | + | ||
258 | + <dependency> | ||
259 | + <groupId>com.eclipsesource.minimal-json</groupId> | ||
260 | + <artifactId>minimal-json</artifactId> | ||
261 | + <version>0.9.4</version> | ||
262 | + </dependency> | ||
263 | + <dependency> | ||
264 | + <groupId>com.esotericsoftware</groupId> | ||
265 | + <artifactId>kryo</artifactId> | ||
266 | + <version>3.0.3</version> | ||
267 | + </dependency> | ||
268 | + <dependency> | ||
269 | + <groupId>com.esotericsoftware</groupId> | ||
270 | + <artifactId>reflectasm</artifactId> | ||
271 | + <version>1.11.0</version> | ||
272 | + <type>bundle</type> | ||
273 | + </dependency> | ||
274 | + <dependency> | ||
275 | + <groupId>org.ow2.asm</groupId> | ||
276 | + <artifactId>asm</artifactId> | ||
277 | + <version>5.0.3</version> | ||
278 | + </dependency> | ||
279 | + <dependency> | ||
280 | + <groupId>com.esotericsoftware</groupId> | ||
281 | + <artifactId>minlog</artifactId> | ||
282 | + <version>1.3.0</version> | ||
283 | + </dependency> | ||
284 | + <dependency> | ||
285 | + <groupId>org.objenesis</groupId> | ||
286 | + <artifactId>objenesis</artifactId> | ||
287 | + <version>2.2</version> | ||
288 | + </dependency> | ||
289 | + | ||
290 | + <!-- Netty related; for now we require both 3.10.x and 4 --> | ||
291 | + <dependency> | ||
292 | + <groupId>io.netty</groupId> | ||
293 | + <artifactId>netty</artifactId> | ||
294 | + <version>3.10.5.Final</version> | ||
295 | + </dependency> | ||
296 | + | ||
297 | + <dependency> | ||
298 | + <groupId>io.netty</groupId> | ||
299 | + <artifactId>netty-common</artifactId> | ||
300 | + <version>${netty4.version}</version> | ||
301 | + </dependency> | ||
302 | + <dependency> | ||
303 | + <groupId>io.netty</groupId> | ||
304 | + <artifactId>netty-buffer</artifactId> | ||
305 | + <version>${netty4.version}</version> | ||
306 | + </dependency> | ||
307 | + <dependency> | ||
308 | + <groupId>io.netty</groupId> | ||
309 | + <artifactId>netty-transport</artifactId> | ||
310 | + <version>${netty4.version}</version> | ||
311 | + </dependency> | ||
312 | + <dependency> | ||
313 | + <groupId>io.netty</groupId> | ||
314 | + <artifactId>netty-handler</artifactId> | ||
315 | + <version>${netty4.version}</version> | ||
316 | + </dependency> | ||
317 | + | ||
318 | + <dependency> | ||
319 | + <groupId>io.netty</groupId> | ||
320 | + <artifactId>netty-codec</artifactId> | ||
321 | + <version>${netty4.version}</version> | ||
322 | + </dependency> | ||
323 | + | ||
324 | + <dependency> | ||
325 | + <groupId>io.netty</groupId> | ||
326 | + <artifactId>netty-transport-native-epoll</artifactId> | ||
327 | + <version>${netty4.version}</version> | ||
328 | + <classifier>${os.detected.classifier}</classifier> | ||
329 | + </dependency> | ||
330 | + | ||
331 | + <dependency> | ||
332 | + <groupId>joda-time</groupId> | ||
333 | + <artifactId>joda-time</artifactId> | ||
334 | + <version>2.9.3</version> | ||
335 | + </dependency> | ||
336 | + | ||
337 | + <dependency> | ||
338 | + <groupId>com.google.code.findbugs</groupId> | ||
339 | + <artifactId>jsr305</artifactId> | ||
340 | + <version>3.0.1</version> | ||
341 | + </dependency> | ||
342 | + | ||
343 | + <dependency> | ||
344 | + <groupId>org.onosproject</groupId> | ||
345 | + <artifactId>openflowj</artifactId> | ||
346 | + <version>${openflowj.version}</version> | ||
347 | + <scope>provided</scope> | ||
348 | + </dependency> | ||
349 | + </dependencies> | ||
350 | + </dependencyManagement> | ||
351 | + | ||
352 | + <dependencies> | ||
353 | + <dependency> | ||
354 | + <groupId>junit</groupId> | ||
355 | + <artifactId>junit</artifactId> | ||
356 | + </dependency> | ||
357 | + <dependency> | ||
358 | + <groupId>org.hamcrest</groupId> | ||
359 | + <artifactId>hamcrest-core</artifactId> | ||
360 | + </dependency> | ||
361 | + <dependency> | ||
362 | + <groupId>org.hamcrest</groupId> | ||
363 | + <artifactId>hamcrest-library</artifactId> | ||
364 | + </dependency> | ||
365 | + <dependency> | ||
366 | + <groupId>org.slf4j</groupId> | ||
367 | + <artifactId>slf4j-api</artifactId> | ||
368 | + </dependency> | ||
369 | + <dependency> | ||
370 | + <groupId>org.slf4j</groupId> | ||
371 | + <artifactId>slf4j-jdk14</artifactId> | ||
372 | + </dependency> | ||
373 | + <!-- TODO sonar-maven-plugin prints the following ERROR many times: | ||
374 | + Class not found: javax.annotation.Nullable | ||
375 | + The following dependency alleviates this problem, but perhaps | ||
376 | + it can be better located in the future. --> | ||
377 | + <dependency> | ||
378 | + <groupId>com.google.code.findbugs</groupId> | ||
379 | + <artifactId>jsr305</artifactId> | ||
380 | + <version>3.0.1</version> | ||
381 | + </dependency> | ||
382 | + </dependencies> | ||
383 | + | ||
384 | + <build> | ||
385 | + <pluginManagement> | ||
386 | + <plugins> | ||
387 | + <plugin> | ||
388 | + <groupId>org.apache.maven.plugins</groupId> | ||
389 | + <artifactId>maven-compiler-plugin</artifactId> | ||
390 | + <!-- TODO: update once following issue is fixed. --> | ||
391 | + <!-- https://jira.codehaus.org/browse/MCOMPILER-205 --> | ||
392 | + <version>2.5.1</version> | ||
393 | + <configuration> | ||
394 | + <source>1.8</source> | ||
395 | + <target>1.8</target> | ||
396 | + </configuration> | ||
397 | + </plugin> | ||
398 | + | ||
399 | + <plugin> | ||
400 | + <groupId>org.apache.maven.plugins</groupId> | ||
401 | + <artifactId>maven-surefire-plugin</artifactId> | ||
402 | + <version>2.19.1</version> | ||
403 | + <configuration> | ||
404 | + <redirectTestOutputToFile>true</redirectTestOutputToFile> | ||
405 | + <printSummary>true</printSummary> | ||
406 | + <excludedGroups>org.onlab.junit.IntegrationTest | ||
407 | + </excludedGroups> | ||
408 | + <rerunFailingTestsCount>1</rerunFailingTestsCount> | ||
409 | + </configuration> | ||
410 | + </plugin> | ||
411 | + <plugin> | ||
412 | + <groupId>org.apache.maven.plugins</groupId> | ||
413 | + <artifactId>maven-javadoc-plugin</artifactId> | ||
414 | + <version>2.10.3</version> | ||
415 | + <configuration> | ||
416 | + <tags> | ||
417 | + <tag> | ||
418 | + <name>onos.rsModel</name> | ||
419 | + <placement>m</placement> | ||
420 | + <head>Json model for REST api:</head> | ||
421 | + </tag> | ||
422 | + </tags> | ||
423 | + </configuration> | ||
424 | + </plugin> | ||
425 | + <plugin> | ||
426 | + <groupId>org.apache.maven.plugins</groupId> | ||
427 | + <artifactId>maven-jar-plugin</artifactId> | ||
428 | + <version>2.6</version> | ||
429 | + <configuration> | ||
430 | + <skipIfEmpty>true</skipIfEmpty> | ||
431 | + </configuration> | ||
432 | + <executions> | ||
433 | + <execution> | ||
434 | + <id>default</id> | ||
435 | + <goals> | ||
436 | + <goal>test-jar</goal> | ||
437 | + </goals> | ||
438 | + </execution> | ||
439 | + </executions> | ||
440 | + </plugin> | ||
441 | + | ||
442 | + <plugin> | ||
443 | + <groupId>org.apache.maven.plugins</groupId> | ||
444 | + <artifactId>maven-resources-plugin</artifactId> | ||
445 | + <version>2.7</version> | ||
446 | + </plugin> | ||
447 | + | ||
448 | + <plugin> | ||
449 | + <groupId>org.apache.felix</groupId> | ||
450 | + <artifactId>maven-bundle-plugin</artifactId> | ||
451 | + <version>3.0.1</version> | ||
452 | + <extensions>true</extensions> | ||
453 | + <configuration> | ||
454 | + <niceManifest>true</niceManifest> | ||
455 | + </configuration> | ||
456 | + </plugin> | ||
457 | + | ||
458 | + <plugin> | ||
459 | + <groupId>org.apache.maven.plugins</groupId> | ||
460 | + <artifactId>maven-shade-plugin</artifactId> | ||
461 | + <version>2.4.2</version> | ||
462 | + </plugin> | ||
463 | + | ||
464 | + <plugin> | ||
465 | + <groupId>org.apache.felix</groupId> | ||
466 | + <artifactId>maven-scr-plugin</artifactId> | ||
467 | + <version>1.21.0</version> | ||
468 | + <executions> | ||
469 | + <execution> | ||
470 | + <id>generate-scr-srcdescriptor</id> | ||
471 | + <goals> | ||
472 | + <goal>scr</goal> | ||
473 | + </goals> | ||
474 | + </execution> | ||
475 | + </executions> | ||
476 | + <configuration> | ||
477 | + <supportedProjectTypes> | ||
478 | + <supportedProjectType>bundle</supportedProjectType> | ||
479 | + <supportedProjectType>war</supportedProjectType> | ||
480 | + </supportedProjectTypes> | ||
481 | + </configuration> | ||
482 | + </plugin> | ||
483 | + <plugin> | ||
484 | + <groupId>org.codehaus.mojo</groupId> | ||
485 | + <artifactId>findbugs-maven-plugin</artifactId> | ||
486 | + <version>3.0.1</version> | ||
487 | + <dependencies> | ||
488 | + <dependency> | ||
489 | + <groupId>org.onosproject</groupId> | ||
490 | + <artifactId>onos-build-conf</artifactId> | ||
491 | + <version>${onos-build-conf.version}</version> | ||
492 | + </dependency> | ||
493 | + </dependencies> | ||
494 | + <configuration> | ||
495 | + <effort>Max</effort> | ||
496 | + <excludeFilterFile>onos/findbugs-suppressions.xml | ||
497 | + </excludeFilterFile> | ||
498 | + </configuration> | ||
499 | + </plugin> | ||
500 | + | ||
501 | + <!-- This version needs to be updated manually when changes are made to onos-maven-plugin --> | ||
502 | + <plugin> | ||
503 | + <groupId>org.onosproject</groupId> | ||
504 | + <artifactId>onos-maven-plugin</artifactId> | ||
505 | + <version>${onos-maven-plugin.version}</version> | ||
506 | + <executions> | ||
507 | + <execution> | ||
508 | + <id>cfg</id> | ||
509 | + <phase>generate-resources</phase> | ||
510 | + <goals> | ||
511 | + <goal>cfg</goal> | ||
512 | + </goals> | ||
513 | + </execution> | ||
514 | + <execution> | ||
515 | + <id>swagger</id> | ||
516 | + <phase>generate-sources</phase> | ||
517 | + <goals> | ||
518 | + <goal>swagger</goal> | ||
519 | + </goals> | ||
520 | + </execution> | ||
521 | + <execution> | ||
522 | + <id>app</id> | ||
523 | + <phase>package</phase> | ||
524 | + <goals> | ||
525 | + <goal>app</goal> | ||
526 | + </goals> | ||
527 | + </execution> | ||
528 | + </executions> | ||
529 | + </plugin> | ||
530 | + </plugins> | ||
531 | + </pluginManagement> | ||
532 | + | ||
533 | + <plugins> | ||
534 | + <plugin> | ||
535 | + <groupId>org.apache.maven.plugins</groupId> | ||
536 | + <artifactId>maven-jar-plugin</artifactId> | ||
537 | + </plugin> | ||
538 | + | ||
539 | + <plugin> | ||
540 | + <groupId>org.apache.maven.plugins</groupId> | ||
541 | + <artifactId>maven-checkstyle-plugin</artifactId> | ||
542 | + <version>2.17</version> | ||
543 | + <dependencies> | ||
544 | + <dependency> | ||
545 | + <groupId>org.onosproject</groupId> | ||
546 | + <artifactId>onos-build-conf</artifactId> | ||
547 | + <version>${onos-build-conf.version}</version> | ||
548 | + </dependency> | ||
549 | + </dependencies> | ||
550 | + <configuration> | ||
551 | + <!-- begin: workaround for unexpected NullPointerException on Eclipse --> | ||
552 | + <sourceDirectory>${project.build.sourceDirectory} | ||
553 | + </sourceDirectory> | ||
554 | + <testSourceDirectory>${project.build.testSourceDirectory} | ||
555 | + </testSourceDirectory> | ||
556 | + <!-- end: workaround for unexpected NullPointerException on Eclipse --> | ||
557 | + <configLocation>onos/checkstyle.xml</configLocation> | ||
558 | + <suppressionsLocation>onos/suppressions.xml | ||
559 | + </suppressionsLocation> | ||
560 | + <failsOnError>false</failsOnError> | ||
561 | + <logViolationsToConsole>true</logViolationsToConsole> | ||
562 | + <includeTestSourceDirectory>true | ||
563 | + </includeTestSourceDirectory> | ||
564 | + </configuration> | ||
565 | + <executions> | ||
566 | + <execution> | ||
567 | + <id>validate-checkstyle</id> | ||
568 | + <phase>verify</phase> | ||
569 | + <goals> | ||
570 | + <goal>check</goal> | ||
571 | + </goals> | ||
572 | + </execution> | ||
573 | + </executions> | ||
574 | + </plugin> | ||
575 | + | ||
576 | + <plugin> | ||
577 | + <groupId>org.apache.maven.plugins</groupId> | ||
578 | + <artifactId>maven-pmd-plugin</artifactId> | ||
579 | + <version>3.6</version> | ||
580 | + <configuration> | ||
581 | + <excludes> | ||
582 | + </excludes> | ||
583 | + <rulesets> | ||
584 | + <ruleset>onos/pmd.xml</ruleset> | ||
585 | + </rulesets> | ||
586 | + </configuration> | ||
587 | + <executions> | ||
588 | + <execution> | ||
589 | + <id>validate-pmd</id> | ||
590 | + <phase>verify</phase> | ||
591 | + <goals> | ||
592 | + <!-- Uncomment this goal to make the build fail on pmd errors --> | ||
593 | + <!--<goal>check</goal>--> | ||
594 | + </goals> | ||
595 | + </execution> | ||
596 | + </executions> | ||
597 | + </plugin> | ||
598 | + | ||
599 | + <plugin> | ||
600 | + <groupId>org.jacoco</groupId> | ||
601 | + <artifactId>jacoco-maven-plugin</artifactId> | ||
602 | + <version>0.7.5.201505241946</version> | ||
603 | + <executions> | ||
604 | + <execution> | ||
605 | + <id>default-prepare-agent</id> | ||
606 | + <goals> | ||
607 | + <goal>prepare-agent</goal> | ||
608 | + </goals> | ||
609 | + </execution> | ||
610 | + <execution> | ||
611 | + <id>default-report</id> | ||
612 | + <phase>prepare-package</phase> | ||
613 | + <goals> | ||
614 | + <goal>report</goal> | ||
615 | + </goals> | ||
616 | + </execution> | ||
617 | + </executions> | ||
618 | + </plugin> | ||
619 | + </plugins> | ||
620 | + </build> | ||
621 | + | ||
622 | + <reporting> | ||
623 | + <plugins> | ||
624 | + <plugin> | ||
625 | + <groupId>org.apache.maven.plugins</groupId> | ||
626 | + <artifactId>maven-checkstyle-plugin</artifactId> | ||
627 | + <configuration> | ||
628 | + <configLocation>onos/checkstyle.xml</configLocation> | ||
629 | + </configuration> | ||
630 | + </plugin> | ||
631 | + | ||
632 | + <plugin> | ||
633 | + <groupId>org.apache.maven.plugins</groupId> | ||
634 | + <artifactId>maven-pmd-plugin</artifactId> | ||
635 | + <configuration> | ||
636 | + <excludes> | ||
637 | + </excludes> | ||
638 | + <rulesets> | ||
639 | + <ruleset>onos/pmd.xml</ruleset> | ||
640 | + </rulesets> | ||
641 | + </configuration> | ||
642 | + </plugin> | ||
643 | + </plugins> | ||
644 | + </reporting> | ||
645 | +</project> |
... | @@ -25,9 +25,9 @@ | ... | @@ -25,9 +25,9 @@ |
25 | 25 | ||
26 | <parent> | 26 | <parent> |
27 | <groupId>org.onosproject</groupId> | 27 | <groupId>org.onosproject</groupId> |
28 | - <artifactId>onos-base</artifactId> | 28 | + <artifactId>onos-dependencies</artifactId> |
29 | - <version>1</version> | 29 | + <version>1.7.0-SNAPSHOT</version> |
30 | - <relativePath>tools/build/pom.xml</relativePath> | 30 | + <relativePath>lib/pom.xml</relativePath> |
31 | </parent> | 31 | </parent> |
32 | 32 | ||
33 | <groupId>org.onosproject</groupId> | 33 | <groupId>org.onosproject</groupId> |
... | @@ -37,6 +37,21 @@ | ... | @@ -37,6 +37,21 @@ |
37 | 37 | ||
38 | <name>${project.artifactId}</name> | 38 | <name>${project.artifactId}</name> |
39 | <description>Open Network Operating System root project</description> | 39 | <description>Open Network Operating System root project</description> |
40 | + <url>http://onosproject.org/</url> | ||
41 | + | ||
42 | + <scm> | ||
43 | + <connection>scm:git:https://gerrit.onosproject.org/onos</connection> | ||
44 | + <developerConnection>scm:git:https://gerrit.onosproject.org/onos | ||
45 | + </developerConnection> | ||
46 | + <url>http://gerrit.onosproject.org/</url> | ||
47 | + </scm> | ||
48 | + | ||
49 | + <licenses> | ||
50 | + <license> | ||
51 | + <name>Apache License, Version 2.0</name> | ||
52 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
53 | + </license> | ||
54 | + </licenses> | ||
40 | 55 | ||
41 | <modules> | 56 | <modules> |
42 | <module>utils</module> | 57 | <module>utils</module> |
... | @@ -56,69 +71,12 @@ | ... | @@ -56,69 +71,12 @@ |
56 | <module>tools/package/branding</module> | 71 | <module>tools/package/branding</module> |
57 | </modules> | 72 | </modules> |
58 | 73 | ||
59 | - <url>http://onosproject.org/</url> | ||
60 | - | ||
61 | - <scm> | ||
62 | - <connection>scm:git:https://gerrit.onosproject.org/onos</connection> | ||
63 | - <developerConnection>scm:git:https://gerrit.onosproject.org/onos | ||
64 | - </developerConnection> | ||
65 | - <url>http://gerrit.onosproject.org/</url> | ||
66 | - </scm> | ||
67 | - | ||
68 | - <licenses> | ||
69 | - <license> | ||
70 | - <name>Apache License, Version 2.0</name> | ||
71 | - <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
72 | - </license> | ||
73 | - </licenses> | ||
74 | - | ||
75 | - <properties> | ||
76 | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
77 | - <onos-build-conf.version>1.3</onos-build-conf.version> | ||
78 | - <netty4.version>4.0.36.Final</netty4.version> | ||
79 | - <openflowj.version>0.9.4.onos</openflowj.version> | ||
80 | - <onos-maven-plugin.version>1.9</onos-maven-plugin.version> | ||
81 | - <osgi.version>5.0.0</osgi.version> | ||
82 | - <karaf.version>3.0.5</karaf.version> | ||
83 | - <jersey.version>2.22.2</jersey.version> | ||
84 | - <jackson.version>2.7.3</jackson.version> | ||
85 | - <slf4j.version>1.7.21</slf4j.version> | ||
86 | - <guava.version>19.0</guava.version> | ||
87 | - <commons.io.version>2.4</commons.io.version> | ||
88 | - <!-- TODO argLine was originally added maven-surfire-plugin configuration | ||
89 | - to fix locale errors for non-US developers. However, it breaks | ||
90 | - SonarQube's test coverage, so moving here for now. --> | ||
91 | - <argLine>-Duser.language=en -Duser.region=US</argLine> | ||
92 | - </properties> | ||
93 | - | ||
94 | - <distributionManagement> | ||
95 | - <snapshotRepository> | ||
96 | - <id>ossrh</id> | ||
97 | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
98 | - </snapshotRepository> | ||
99 | - </distributionManagement> | ||
100 | - | ||
101 | <!-- FIXME remove before release; needed for the following | 74 | <!-- FIXME remove before release; needed for the following |
102 | - - openflowj | 75 | + - openflowj |
103 | - - snmp | 76 | + - snmp |
104 | --> | 77 | --> |
105 | <repositories> | 78 | <repositories> |
106 | <repository> | 79 | <repository> |
107 | - <id>central</id> | ||
108 | - <name>Central Repository</name> | ||
109 | - <url>http://repo.maven.apache.org/maven2</url> | ||
110 | - <layout>default</layout> | ||
111 | - <snapshots> | ||
112 | - <enabled>false</enabled> | ||
113 | - </snapshots> | ||
114 | - <releases> | ||
115 | - <enabled>true</enabled> | ||
116 | - <updatePolicy>never</updatePolicy> | ||
117 | - <checksumPolicy>fail</checksumPolicy> | ||
118 | - </releases> | ||
119 | - </repository> | ||
120 | - | ||
121 | - <repository> | ||
122 | <id>snapshots</id> | 80 | <id>snapshots</id> |
123 | <url>https://oss.sonatype.org/content/repositories/snapshots</url> | 81 | <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
124 | <snapshots> | 82 | <snapshots> |
... | @@ -129,239 +87,16 @@ | ... | @@ -129,239 +87,16 @@ |
129 | </repository> | 87 | </repository> |
130 | </repositories> | 88 | </repositories> |
131 | 89 | ||
90 | + <distributionManagement> | ||
91 | + <snapshotRepository> | ||
92 | + <id>ossrh</id> | ||
93 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
94 | + </snapshotRepository> | ||
95 | + </distributionManagement> | ||
96 | + | ||
132 | <dependencyManagement> | 97 | <dependencyManagement> |
133 | <dependencies> | 98 | <dependencies> |
134 | <dependency> | 99 | <dependency> |
135 | - <groupId>junit</groupId> | ||
136 | - <artifactId>junit</artifactId> | ||
137 | - <version>4.12</version> | ||
138 | - <scope>test</scope> | ||
139 | - </dependency> | ||
140 | - | ||
141 | - <dependency> | ||
142 | - <groupId>org.hamcrest</groupId> | ||
143 | - <artifactId>hamcrest-core</artifactId> | ||
144 | - <version>1.3</version> | ||
145 | - <scope>test</scope> | ||
146 | - </dependency> | ||
147 | - <dependency> | ||
148 | - <groupId>org.hamcrest</groupId> | ||
149 | - <artifactId>hamcrest-library</artifactId> | ||
150 | - <version>1.3</version> | ||
151 | - <scope>test</scope> | ||
152 | - </dependency> | ||
153 | - | ||
154 | - <dependency> | ||
155 | - <groupId>org.slf4j</groupId> | ||
156 | - <artifactId>slf4j-api</artifactId> | ||
157 | - <version>${slf4j.version}</version> | ||
158 | - <scope>provided</scope> | ||
159 | - </dependency> | ||
160 | - | ||
161 | - <dependency> | ||
162 | - <groupId>org.slf4j</groupId> | ||
163 | - <artifactId>slf4j-core</artifactId> | ||
164 | - <version>${slf4j.version}</version> | ||
165 | - <scope>test</scope> | ||
166 | - </dependency> | ||
167 | - | ||
168 | - <dependency> | ||
169 | - <groupId>org.slf4j</groupId> | ||
170 | - <artifactId>slf4j-jdk14</artifactId> | ||
171 | - <version>${slf4j.version}</version> | ||
172 | - <scope>test</scope> | ||
173 | - </dependency> | ||
174 | - | ||
175 | - <dependency> | ||
176 | - <groupId>com.google.guava</groupId> | ||
177 | - <artifactId>guava</artifactId> | ||
178 | - <version>${guava.version}</version> | ||
179 | - </dependency> | ||
180 | - | ||
181 | - <dependency> | ||
182 | - <groupId>com.google.guava</groupId> | ||
183 | - <artifactId>guava-testlib</artifactId> | ||
184 | - <version>${guava.version}</version> | ||
185 | - <scope>test</scope> | ||
186 | - </dependency> | ||
187 | - | ||
188 | - <dependency> | ||
189 | - <groupId>com.googlecode.concurrent-trees</groupId> | ||
190 | - <artifactId>concurrent-trees</artifactId> | ||
191 | - <version>2.4.0</version> | ||
192 | - </dependency> | ||
193 | - | ||
194 | - <dependency> | ||
195 | - <groupId>commons-lang</groupId> | ||
196 | - <artifactId>commons-lang</artifactId> | ||
197 | - <version>2.6</version> | ||
198 | - </dependency> | ||
199 | - | ||
200 | - <dependency> | ||
201 | - <groupId>org.apache.commons</groupId> | ||
202 | - <artifactId>commons-lang3</artifactId> | ||
203 | - <version>3.4</version> | ||
204 | - </dependency> | ||
205 | - | ||
206 | - <dependency> | ||
207 | - <groupId>commons-configuration</groupId> | ||
208 | - <artifactId>commons-configuration</artifactId> | ||
209 | - <version>1.10</version> | ||
210 | - </dependency> | ||
211 | - | ||
212 | - <dependency> | ||
213 | - <groupId>commons-collections</groupId> | ||
214 | - <artifactId>commons-collections</artifactId> | ||
215 | - <version>3.2.2</version> | ||
216 | - </dependency> | ||
217 | - | ||
218 | - <dependency> | ||
219 | - <groupId>commons-pool</groupId> | ||
220 | - <artifactId>commons-pool</artifactId> | ||
221 | - <version>1.6</version> | ||
222 | - </dependency> | ||
223 | - | ||
224 | - <dependency> | ||
225 | - <groupId>org.easymock</groupId> | ||
226 | - <artifactId>easymock</artifactId> | ||
227 | - <version>3.4</version> | ||
228 | - <scope>test</scope> | ||
229 | - </dependency> | ||
230 | - | ||
231 | - <!-- Web related --> | ||
232 | - <dependency> | ||
233 | - <groupId>org.glassfish.jersey.core</groupId> | ||
234 | - <artifactId>jersey-client</artifactId> | ||
235 | - <version>${jersey.version}</version> | ||
236 | - </dependency> | ||
237 | - <dependency> | ||
238 | - <groupId>org.glassfish.jersey.containers</groupId> | ||
239 | - <artifactId>jersey-container-servlet</artifactId> | ||
240 | - <version>${jersey.version}</version> | ||
241 | - <scope>provided</scope> | ||
242 | - </dependency> | ||
243 | - <dependency> | ||
244 | - <groupId>org.glassfish.jersey.containers</groupId> | ||
245 | - <artifactId>jersey-container-servlet-core</artifactId> | ||
246 | - <version>${jersey.version}</version> | ||
247 | - <scope>provided</scope> | ||
248 | - </dependency> | ||
249 | - <dependency> | ||
250 | - <groupId>org.glassfish.jersey.media</groupId> | ||
251 | - <artifactId>jersey-media-multipart</artifactId> | ||
252 | - <version>${jersey.version}</version> | ||
253 | - <scope>provided</scope> | ||
254 | - </dependency> | ||
255 | - <dependency> | ||
256 | - <groupId>org.glassfish.jersey.test-framework</groupId> | ||
257 | - <artifactId>jersey-test-framework-core</artifactId> | ||
258 | - <version>${jersey.version}</version> | ||
259 | - <scope>test</scope> | ||
260 | - </dependency> | ||
261 | - <dependency> | ||
262 | - <groupId>org.glassfish.jersey.test-framework.providers</groupId> | ||
263 | - <artifactId>jersey-test-framework-provider-jetty</artifactId> | ||
264 | - <version>${jersey.version}</version> | ||
265 | - <scope>test</scope> | ||
266 | - </dependency> | ||
267 | - <dependency> | ||
268 | - <groupId>com.fasterxml.jackson.core</groupId> | ||
269 | - <artifactId>jackson-databind</artifactId> | ||
270 | - <version>${jackson.version}</version> | ||
271 | - <scope>provided</scope> | ||
272 | - </dependency> | ||
273 | - <dependency> | ||
274 | - <groupId>com.fasterxml.jackson.core</groupId> | ||
275 | - <artifactId>jackson-annotations</artifactId> | ||
276 | - <version>${jackson.version}</version> | ||
277 | - <scope>provided</scope> | ||
278 | - </dependency> | ||
279 | - | ||
280 | - <!-- OSGi related --> | ||
281 | - <dependency> | ||
282 | - <groupId>org.osgi</groupId> | ||
283 | - <artifactId>org.osgi.core</artifactId> | ||
284 | - <version>${osgi.version}</version> | ||
285 | - <scope>provided</scope> | ||
286 | - </dependency> | ||
287 | - <dependency> | ||
288 | - <groupId>org.osgi</groupId> | ||
289 | - <artifactId>org.osgi.compendium</artifactId> | ||
290 | - <version>${osgi.version}</version> | ||
291 | - <scope>provided</scope> | ||
292 | - </dependency> | ||
293 | - <dependency> | ||
294 | - <groupId>org.apache.felix</groupId> | ||
295 | - <artifactId>org.apache.felix.scr.annotations</artifactId> | ||
296 | - <version>1.9.12</version> | ||
297 | - <scope>provided</scope> | ||
298 | - </dependency> | ||
299 | - <dependency> | ||
300 | - <groupId>org.apache.felix</groupId> | ||
301 | - <artifactId>org.apache.felix.scr</artifactId> | ||
302 | - <version>1.8.2</version> | ||
303 | - </dependency> | ||
304 | - | ||
305 | - | ||
306 | - <dependency> | ||
307 | - <groupId>org.apache.karaf.features</groupId> | ||
308 | - <artifactId>org.apache.karaf.features.core</artifactId> | ||
309 | - <version>${karaf.version}</version> | ||
310 | - <scope>provided</scope> | ||
311 | - </dependency> | ||
312 | - <dependency> | ||
313 | - <groupId>org.apache.karaf.system</groupId> | ||
314 | - <artifactId>org.apache.karaf.system.core</artifactId> | ||
315 | - <version>${karaf.version}</version> | ||
316 | - <scope>provided</scope> | ||
317 | - </dependency> | ||
318 | - <dependency> | ||
319 | - <groupId>org.apache.karaf.shell</groupId> | ||
320 | - <artifactId>org.apache.karaf.shell.console</artifactId> | ||
321 | - <version>${karaf.version}</version> | ||
322 | - <scope>provided</scope> | ||
323 | - </dependency> | ||
324 | - | ||
325 | - <dependency> | ||
326 | - <groupId>org.livetribe.slp</groupId> | ||
327 | - <artifactId>livetribe-slp</artifactId> | ||
328 | - <version>2.2.1</version> | ||
329 | - </dependency> | ||
330 | - | ||
331 | - <dependency> | ||
332 | - <groupId>com.eclipsesource.minimal-json</groupId> | ||
333 | - <artifactId>minimal-json</artifactId> | ||
334 | - <version>0.9.4</version> | ||
335 | - </dependency> | ||
336 | - <dependency> | ||
337 | - <groupId>com.esotericsoftware</groupId> | ||
338 | - <artifactId>kryo</artifactId> | ||
339 | - <version>3.0.3</version> | ||
340 | - </dependency> | ||
341 | - <dependency> | ||
342 | - <groupId>com.esotericsoftware</groupId> | ||
343 | - <artifactId>reflectasm</artifactId> | ||
344 | - <version>1.11.0</version> | ||
345 | - <type>bundle</type> | ||
346 | - </dependency> | ||
347 | - <dependency> | ||
348 | - <groupId>org.ow2.asm</groupId> | ||
349 | - <artifactId>asm</artifactId> | ||
350 | - <version>5.0.3</version> | ||
351 | - </dependency> | ||
352 | - <dependency> | ||
353 | - <groupId>com.esotericsoftware</groupId> | ||
354 | - <artifactId>minlog</artifactId> | ||
355 | - <version>1.3.0</version> | ||
356 | - </dependency> | ||
357 | - <dependency> | ||
358 | - <groupId>org.objenesis</groupId> | ||
359 | - <artifactId>objenesis</artifactId> | ||
360 | - <version>2.2</version> | ||
361 | - </dependency> | ||
362 | - | ||
363 | - <!-- ONOS related --> | ||
364 | - <dependency> | ||
365 | <groupId>org.onosproject</groupId> | 100 | <groupId>org.onosproject</groupId> |
366 | <artifactId>onlab-misc</artifactId> | 101 | <artifactId>onlab-misc</artifactId> |
367 | <version>${project.version}</version> | 102 | <version>${project.version}</version> |
... | @@ -485,360 +220,7 @@ | ... | @@ -485,360 +220,7 @@ |
485 | <version>${project.version}</version> | 220 | <version>${project.version}</version> |
486 | </dependency> | 221 | </dependency> |
487 | 222 | ||
488 | - | ||
489 | - <!-- Netty related; for now we require both 3.10.x and 4 --> | ||
490 | - <dependency> | ||
491 | - <groupId>io.netty</groupId> | ||
492 | - <artifactId>netty</artifactId> | ||
493 | - <version>3.10.5.Final</version> | ||
494 | - </dependency> | ||
495 | - | ||
496 | - <dependency> | ||
497 | - <groupId>io.netty</groupId> | ||
498 | - <artifactId>netty-common</artifactId> | ||
499 | - <version>${netty4.version}</version> | ||
500 | - </dependency> | ||
501 | - <dependency> | ||
502 | - <groupId>io.netty</groupId> | ||
503 | - <artifactId>netty-buffer</artifactId> | ||
504 | - <version>${netty4.version}</version> | ||
505 | - </dependency> | ||
506 | - <dependency> | ||
507 | - <groupId>io.netty</groupId> | ||
508 | - <artifactId>netty-transport</artifactId> | ||
509 | - <version>${netty4.version}</version> | ||
510 | - </dependency> | ||
511 | - <dependency> | ||
512 | - <groupId>io.netty</groupId> | ||
513 | - <artifactId>netty-handler</artifactId> | ||
514 | - <version>${netty4.version}</version> | ||
515 | - </dependency> | ||
516 | - | ||
517 | - <dependency> | ||
518 | - <groupId>io.netty</groupId> | ||
519 | - <artifactId>netty-codec</artifactId> | ||
520 | - <version>${netty4.version}</version> | ||
521 | - </dependency> | ||
522 | - | ||
523 | - <dependency> | ||
524 | - <groupId>io.netty</groupId> | ||
525 | - <artifactId>netty-transport-native-epoll</artifactId> | ||
526 | - <version>${netty4.version}</version> | ||
527 | - <classifier>${os.detected.classifier}</classifier> | ||
528 | - </dependency> | ||
529 | - | ||
530 | - <dependency> | ||
531 | - <groupId>joda-time</groupId> | ||
532 | - <artifactId>joda-time</artifactId> | ||
533 | - <version>2.9.3</version> | ||
534 | - </dependency> | ||
535 | - | ||
536 | - <dependency> | ||
537 | - <groupId>com.google.code.findbugs</groupId> | ||
538 | - <artifactId>jsr305</artifactId> | ||
539 | - <version>3.0.1</version> | ||
540 | - </dependency> | ||
541 | - | ||
542 | - <dependency> | ||
543 | - <groupId>org.onosproject</groupId> | ||
544 | - <artifactId>openflowj</artifactId> | ||
545 | - <version>${openflowj.version}</version> | ||
546 | - <scope>provided</scope> | ||
547 | - </dependency> | ||
548 | </dependencies> | 223 | </dependencies> |
549 | </dependencyManagement> | 224 | </dependencyManagement> |
550 | 225 | ||
551 | - <dependencies> | ||
552 | - <dependency> | ||
553 | - <groupId>junit</groupId> | ||
554 | - <artifactId>junit</artifactId> | ||
555 | - </dependency> | ||
556 | - <dependency> | ||
557 | - <groupId>org.hamcrest</groupId> | ||
558 | - <artifactId>hamcrest-core</artifactId> | ||
559 | - </dependency> | ||
560 | - <dependency> | ||
561 | - <groupId>org.hamcrest</groupId> | ||
562 | - <artifactId>hamcrest-library</artifactId> | ||
563 | - </dependency> | ||
564 | - <dependency> | ||
565 | - <groupId>org.slf4j</groupId> | ||
566 | - <artifactId>slf4j-api</artifactId> | ||
567 | - </dependency> | ||
568 | - <dependency> | ||
569 | - <groupId>org.slf4j</groupId> | ||
570 | - <artifactId>slf4j-jdk14</artifactId> | ||
571 | - </dependency> | ||
572 | - <!-- TODO sonar-maven-plugin prints the following ERROR many times: | ||
573 | - Class not found: javax.annotation.Nullable | ||
574 | - The following dependency alleviates this problem, but perhaps | ||
575 | - it can be better located in the future. --> | ||
576 | - <dependency> | ||
577 | - <groupId>com.google.code.findbugs</groupId> | ||
578 | - <artifactId>jsr305</artifactId> | ||
579 | - <version>3.0.1</version> | ||
580 | - </dependency> | ||
581 | - </dependencies> | ||
582 | - | ||
583 | - <build> | ||
584 | - <pluginManagement> | ||
585 | - <plugins> | ||
586 | - <plugin> | ||
587 | - <groupId>org.apache.maven.plugins</groupId> | ||
588 | - <artifactId>maven-compiler-plugin</artifactId> | ||
589 | - <!-- TODO: update once following issue is fixed. --> | ||
590 | - <!-- https://jira.codehaus.org/browse/MCOMPILER-205 --> | ||
591 | - <version>2.5.1</version> | ||
592 | - <configuration> | ||
593 | - <source>1.8</source> | ||
594 | - <target>1.8</target> | ||
595 | - </configuration> | ||
596 | - </plugin> | ||
597 | - | ||
598 | - <plugin> | ||
599 | - <groupId>org.apache.maven.plugins</groupId> | ||
600 | - <artifactId>maven-surefire-plugin</artifactId> | ||
601 | - <version>2.19.1</version> | ||
602 | - <configuration> | ||
603 | - <redirectTestOutputToFile>true</redirectTestOutputToFile> | ||
604 | - <printSummary>true</printSummary> | ||
605 | - <excludedGroups>org.onlab.junit.IntegrationTest | ||
606 | - </excludedGroups> | ||
607 | - <rerunFailingTestsCount>1</rerunFailingTestsCount> | ||
608 | - </configuration> | ||
609 | - </plugin> | ||
610 | - <plugin> | ||
611 | - <groupId>org.apache.maven.plugins</groupId> | ||
612 | - <artifactId>maven-javadoc-plugin</artifactId> | ||
613 | - <version>2.10.3</version> | ||
614 | - <configuration> | ||
615 | - <tags> | ||
616 | - <tag> | ||
617 | - <name>onos.rsModel</name> | ||
618 | - <placement>m</placement> | ||
619 | - <head>Json model for REST api:</head> | ||
620 | - </tag> | ||
621 | - </tags> | ||
622 | - </configuration> | ||
623 | - </plugin> | ||
624 | - <plugin> | ||
625 | - <groupId>org.apache.maven.plugins</groupId> | ||
626 | - <artifactId>maven-jar-plugin</artifactId> | ||
627 | - <version>2.6</version> | ||
628 | - <configuration> | ||
629 | - <skipIfEmpty>true</skipIfEmpty> | ||
630 | - </configuration> | ||
631 | - <executions> | ||
632 | - <execution> | ||
633 | - <id>default</id> | ||
634 | - <goals> | ||
635 | - <goal>test-jar</goal> | ||
636 | - </goals> | ||
637 | - </execution> | ||
638 | - </executions> | ||
639 | - </plugin> | ||
640 | - | ||
641 | - <plugin> | ||
642 | - <groupId>org.apache.maven.plugins</groupId> | ||
643 | - <artifactId>maven-resources-plugin</artifactId> | ||
644 | - <version>2.7</version> | ||
645 | - </plugin> | ||
646 | - | ||
647 | - <plugin> | ||
648 | - <groupId>org.apache.felix</groupId> | ||
649 | - <artifactId>maven-bundle-plugin</artifactId> | ||
650 | - <version>3.0.1</version> | ||
651 | - <extensions>true</extensions> | ||
652 | - <configuration> | ||
653 | - <niceManifest>true</niceManifest> | ||
654 | - </configuration> | ||
655 | - </plugin> | ||
656 | - | ||
657 | - <plugin> | ||
658 | - <groupId>org.apache.maven.plugins</groupId> | ||
659 | - <artifactId>maven-shade-plugin</artifactId> | ||
660 | - <version>2.4.2</version> | ||
661 | - </plugin> | ||
662 | - | ||
663 | - <plugin> | ||
664 | - <groupId>org.apache.felix</groupId> | ||
665 | - <artifactId>maven-scr-plugin</artifactId> | ||
666 | - <version>1.21.0</version> | ||
667 | - <executions> | ||
668 | - <execution> | ||
669 | - <id>generate-scr-srcdescriptor</id> | ||
670 | - <goals> | ||
671 | - <goal>scr</goal> | ||
672 | - </goals> | ||
673 | - </execution> | ||
674 | - </executions> | ||
675 | - <configuration> | ||
676 | - <supportedProjectTypes> | ||
677 | - <supportedProjectType>bundle</supportedProjectType> | ||
678 | - <supportedProjectType>war</supportedProjectType> | ||
679 | - </supportedProjectTypes> | ||
680 | - </configuration> | ||
681 | - </plugin> | ||
682 | - <plugin> | ||
683 | - <groupId>org.codehaus.mojo</groupId> | ||
684 | - <artifactId>findbugs-maven-plugin</artifactId> | ||
685 | - <version>3.0.1</version> | ||
686 | - <dependencies> | ||
687 | - <dependency> | ||
688 | - <groupId>org.onosproject</groupId> | ||
689 | - <artifactId>onos-build-conf</artifactId> | ||
690 | - <version>${onos-build-conf.version}</version> | ||
691 | - </dependency> | ||
692 | - </dependencies> | ||
693 | - <configuration> | ||
694 | - <effort>Max</effort> | ||
695 | - <excludeFilterFile>onos/findbugs-suppressions.xml | ||
696 | - </excludeFilterFile> | ||
697 | - </configuration> | ||
698 | - </plugin> | ||
699 | - | ||
700 | - <!-- This version needs to be updated manually when changes are made to onos-maven-plugin --> | ||
701 | - <plugin> | ||
702 | - <groupId>org.onosproject</groupId> | ||
703 | - <artifactId>onos-maven-plugin</artifactId> | ||
704 | - <version>${onos-maven-plugin.version}</version> | ||
705 | - <executions> | ||
706 | - <execution> | ||
707 | - <id>cfg</id> | ||
708 | - <phase>generate-resources</phase> | ||
709 | - <goals> | ||
710 | - <goal>cfg</goal> | ||
711 | - </goals> | ||
712 | - </execution> | ||
713 | - <execution> | ||
714 | - <id>swagger</id> | ||
715 | - <phase>generate-sources</phase> | ||
716 | - <goals> | ||
717 | - <goal>swagger</goal> | ||
718 | - </goals> | ||
719 | - </execution> | ||
720 | - <execution> | ||
721 | - <id>app</id> | ||
722 | - <phase>package</phase> | ||
723 | - <goals> | ||
724 | - <goal>app</goal> | ||
725 | - </goals> | ||
726 | - </execution> | ||
727 | - </executions> | ||
728 | - </plugin> | ||
729 | - </plugins> | ||
730 | - </pluginManagement> | ||
731 | - | ||
732 | - <plugins> | ||
733 | - <plugin> | ||
734 | - <groupId>org.apache.maven.plugins</groupId> | ||
735 | - <artifactId>maven-jar-plugin</artifactId> | ||
736 | - </plugin> | ||
737 | - | ||
738 | - <plugin> | ||
739 | - <groupId>org.apache.maven.plugins</groupId> | ||
740 | - <artifactId>maven-checkstyle-plugin</artifactId> | ||
741 | - <version>2.17</version> | ||
742 | - <dependencies> | ||
743 | - <dependency> | ||
744 | - <groupId>org.onosproject</groupId> | ||
745 | - <artifactId>onos-build-conf</artifactId> | ||
746 | - <version>${onos-build-conf.version}</version> | ||
747 | - </dependency> | ||
748 | - </dependencies> | ||
749 | - <configuration> | ||
750 | - <!-- begin: workaround for unexpected NullPointerException on Eclipse --> | ||
751 | - <sourceDirectory>${project.build.sourceDirectory} | ||
752 | - </sourceDirectory> | ||
753 | - <testSourceDirectory>${project.build.testSourceDirectory} | ||
754 | - </testSourceDirectory> | ||
755 | - <!-- end: workaround for unexpected NullPointerException on Eclipse --> | ||
756 | - <configLocation>onos/checkstyle.xml</configLocation> | ||
757 | - <suppressionsLocation>onos/suppressions.xml | ||
758 | - </suppressionsLocation> | ||
759 | - <failsOnError>false</failsOnError> | ||
760 | - <logViolationsToConsole>true</logViolationsToConsole> | ||
761 | - <includeTestSourceDirectory>true | ||
762 | - </includeTestSourceDirectory> | ||
763 | - </configuration> | ||
764 | - <executions> | ||
765 | - <execution> | ||
766 | - <id>validate-checkstyle</id> | ||
767 | - <phase>verify</phase> | ||
768 | - <goals> | ||
769 | - <goal>check</goal> | ||
770 | - </goals> | ||
771 | - </execution> | ||
772 | - </executions> | ||
773 | - </plugin> | ||
774 | - | ||
775 | - <plugin> | ||
776 | - <groupId>org.apache.maven.plugins</groupId> | ||
777 | - <artifactId>maven-pmd-plugin</artifactId> | ||
778 | - <version>3.6</version> | ||
779 | - <configuration> | ||
780 | - <excludes> | ||
781 | - </excludes> | ||
782 | - <rulesets> | ||
783 | - <ruleset>onos/pmd.xml</ruleset> | ||
784 | - </rulesets> | ||
785 | - </configuration> | ||
786 | - <executions> | ||
787 | - <execution> | ||
788 | - <id>validate-pmd</id> | ||
789 | - <phase>verify</phase> | ||
790 | - <goals> | ||
791 | - <!-- Uncomment this goal to make the build fail on pmd errors --> | ||
792 | - <!--<goal>check</goal>--> | ||
793 | - </goals> | ||
794 | - </execution> | ||
795 | - </executions> | ||
796 | - </plugin> | ||
797 | - | ||
798 | - <plugin> | ||
799 | - <groupId>org.jacoco</groupId> | ||
800 | - <artifactId>jacoco-maven-plugin</artifactId> | ||
801 | - <version>0.7.5.201505241946</version> | ||
802 | - <executions> | ||
803 | - <execution> | ||
804 | - <id>default-prepare-agent</id> | ||
805 | - <goals> | ||
806 | - <goal>prepare-agent</goal> | ||
807 | - </goals> | ||
808 | - </execution> | ||
809 | - <execution> | ||
810 | - <id>default-report</id> | ||
811 | - <phase>prepare-package</phase> | ||
812 | - <goals> | ||
813 | - <goal>report</goal> | ||
814 | - </goals> | ||
815 | - </execution> | ||
816 | - </executions> | ||
817 | - </plugin> | ||
818 | - </plugins> | ||
819 | - </build> | ||
820 | - | ||
821 | - <reporting> | ||
822 | - <plugins> | ||
823 | - <plugin> | ||
824 | - <groupId>org.apache.maven.plugins</groupId> | ||
825 | - <artifactId>maven-checkstyle-plugin</artifactId> | ||
826 | - <configuration> | ||
827 | - <configLocation>onos/checkstyle.xml</configLocation> | ||
828 | - </configuration> | ||
829 | - </plugin> | ||
830 | - | ||
831 | - <plugin> | ||
832 | - <groupId>org.apache.maven.plugins</groupId> | ||
833 | - <artifactId>maven-pmd-plugin</artifactId> | ||
834 | - <configuration> | ||
835 | - <excludes> | ||
836 | - </excludes> | ||
837 | - <rulesets> | ||
838 | - <ruleset>onos/pmd.xml</ruleset> | ||
839 | - </rulesets> | ||
840 | - </configuration> | ||
841 | - </plugin> | ||
842 | - </plugins> | ||
843 | - </reporting> | ||
844 | </project> | 226 | </project> | ... | ... |
-
Please register or login to post a comment