CNlucius | a88916c | 2015-08-20 14:14:49 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | <!--
|
| 3 | ~ Copyright 2014 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.1</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 | <artifactId>onos</artifactId>
|
| 34 | <packaging>pom</packaging>
|
| 35 | <version>1.3.0-SNAPSHOT</version>
|
| 36 |
|
| 37 | <name>${project.artifactId}</name>
|
| 38 | <description>Open Network Operating System root project</description>
|
| 39 |
|
| 40 | <modules>
|
| 41 | <module>utils</module>
|
| 42 | <module>core</module>
|
| 43 | <module>web</module>
|
| 44 | <module>cli</module>
|
| 45 |
|
| 46 | <module>openflow</module>
|
| 47 | <module>ovsdb</module>
|
| 48 | <module>pcep</module>
|
| 49 |
|
| 50 | <module>providers</module>
|
| 51 | <module>drivers</module>
|
| 52 |
|
| 53 | <module>apps</module>
|
| 54 | <module>incubator</module>
|
| 55 | <module>features</module>
|
| 56 |
|
| 57 | <module>tools/package/archetypes</module>
|
| 58 | <module>tools/package/branding</module>
|
| 59 |
|
| 60 | <!-- FIXME remove before release -->
|
| 61 | <module>tools/package/maven-plugin</module>
|
| 62 | </modules>
|
| 63 |
|
| 64 | <url>http://onosproject.org/</url>
|
| 65 |
|
| 66 | <scm>
|
| 67 | <connection>scm:git:https://gerrit.onosproject.org/onos</connection>
|
| 68 | <developerConnection>scm:git:https://gerrit.onosproject.org/onos
|
| 69 | </developerConnection>
|
| 70 | <url>http://gerrit.onosproject.org/</url>
|
| 71 | </scm>
|
| 72 |
|
| 73 | <licenses>
|
| 74 | <license>
|
| 75 | <name>Apache License, Version 2.0</name>
|
| 76 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
| 77 | </license>
|
| 78 | </licenses>
|
| 79 |
|
| 80 | <properties>
|
| 81 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
| 82 | <netty4.version>4.0.23.Final</netty4.version>
|
| 83 | <copycat.version>0.5.0.onos12-SNAPSHOT</copycat.version>
|
| 84 | <openflowj.version>0.4.1.onos-SNAPSHOT</openflowj.version>
|
| 85 | <karaf.version>3.0.3</karaf.version>
|
| 86 | <jersey.version>1.19</jersey.version>
|
| 87 | </properties>
|
| 88 |
|
| 89 | <distributionManagement>
|
| 90 | <snapshotRepository>
|
| 91 | <id>ossrh</id>
|
| 92 | <url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
| 93 | </snapshotRepository>
|
| 94 | </distributionManagement>
|
| 95 |
|
| 96 | <!--- Needed for copycat. Remove before official release -->
|
| 97 | <repositories>
|
| 98 | <repository>
|
| 99 | <id>snapshots</id>
|
| 100 | <url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
| 101 | </repository>
|
| 102 | </repositories>
|
| 103 |
|
| 104 | <!--- FIXME Needed for onos-maven-plugin. Remove before official release -->
|
| 105 | <pluginRepositories>
|
| 106 | <pluginRepository>
|
| 107 | <id>snapshots</id>
|
| 108 | <url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
| 109 | </pluginRepository>
|
| 110 | </pluginRepositories>
|
| 111 |
|
| 112 | <dependencyManagement>
|
| 113 | <dependencies>
|
| 114 | <dependency>
|
| 115 | <groupId>junit</groupId>
|
| 116 | <artifactId>junit</artifactId>
|
| 117 | <version>4.11</version>
|
| 118 | <scope>test</scope>
|
| 119 | </dependency>
|
| 120 |
|
| 121 | <dependency>
|
| 122 | <groupId>org.hamcrest</groupId>
|
| 123 | <artifactId>hamcrest-core</artifactId>
|
| 124 | <version>1.3</version>
|
| 125 | <scope>test</scope>
|
| 126 | </dependency>
|
| 127 | <dependency>
|
| 128 | <groupId>org.hamcrest</groupId>
|
| 129 | <artifactId>hamcrest-library</artifactId>
|
| 130 | <version>1.3</version>
|
| 131 | <scope>test</scope>
|
| 132 | </dependency>
|
| 133 |
|
| 134 | <dependency>
|
| 135 | <groupId>org.slf4j</groupId>
|
| 136 | <artifactId>slf4j-api</artifactId>
|
| 137 | <version>1.7.6</version>
|
| 138 | <scope>provided</scope>
|
| 139 | </dependency>
|
| 140 |
|
| 141 | <dependency>
|
| 142 | <groupId>org.slf4j</groupId>
|
| 143 | <artifactId>slf4j-core</artifactId>
|
| 144 | <version>1.7.6</version>
|
| 145 | <scope>test</scope>
|
| 146 | </dependency>
|
| 147 |
|
| 148 | <dependency>
|
| 149 | <groupId>org.slf4j</groupId>
|
| 150 | <artifactId>slf4j-jdk14</artifactId>
|
| 151 | <version>1.7.6</version>
|
| 152 | <scope>test</scope>
|
| 153 | </dependency>
|
| 154 |
|
| 155 | <dependency>
|
| 156 | <groupId>com.google.guava</groupId>
|
| 157 | <artifactId>guava</artifactId>
|
| 158 | <version>18.0</version>
|
| 159 | </dependency>
|
| 160 |
|
| 161 | <dependency>
|
| 162 | <groupId>io.netty</groupId>
|
| 163 | <artifactId>netty</artifactId>
|
| 164 | <version>3.9.0.Final</version>
|
| 165 | </dependency>
|
| 166 |
|
| 167 | <dependency>
|
| 168 | <groupId>com.google.guava</groupId>
|
| 169 | <artifactId>guava-testlib</artifactId>
|
| 170 | <version>18.0</version>
|
| 171 | <scope>test</scope>
|
| 172 | </dependency>
|
| 173 |
|
| 174 | <dependency>
|
| 175 | <groupId>com.googlecode.concurrent-trees</groupId>
|
| 176 | <artifactId>concurrent-trees</artifactId>
|
| 177 | <version>2.4.0</version>
|
| 178 | </dependency>
|
| 179 |
|
| 180 | <dependency>
|
| 181 | <groupId>commons-lang</groupId>
|
| 182 | <artifactId>commons-lang</artifactId>
|
| 183 | <version>2.6</version>
|
| 184 | </dependency>
|
| 185 |
|
| 186 | <dependency>
|
| 187 | <groupId>org.apache.commons</groupId>
|
| 188 | <artifactId>commons-lang3</artifactId>
|
| 189 | <version>3.3.2</version>
|
| 190 | </dependency>
|
| 191 |
|
| 192 | <dependency>
|
| 193 | <groupId>commons-configuration</groupId>
|
| 194 | <artifactId>commons-configuration</artifactId>
|
| 195 | <version>1.10</version>
|
| 196 | </dependency>
|
| 197 |
|
| 198 | <dependency>
|
| 199 | <groupId>commons-collections</groupId>
|
| 200 | <artifactId>commons-collections</artifactId>
|
| 201 | <version>3.2.1</version>
|
| 202 | </dependency>
|
| 203 |
|
| 204 | <dependency>
|
| 205 | <groupId>org.codehaus.jackson</groupId>
|
| 206 | <artifactId>jackson-core-asl</artifactId>
|
| 207 | <version>1.9.13</version>
|
| 208 | </dependency>
|
| 209 | <dependency>
|
| 210 | <groupId>org.codehaus.jackson</groupId>
|
| 211 | <artifactId>jackson-mapper-asl</artifactId>
|
| 212 | <version>1.9.13</version>
|
| 213 | </dependency>
|
| 214 |
|
| 215 | <dependency>
|
| 216 | <groupId>org.easymock</groupId>
|
| 217 | <artifactId>easymock</artifactId>
|
| 218 | <version>3.2</version>
|
| 219 | <scope>test</scope>
|
| 220 | </dependency>
|
| 221 |
|
| 222 | <!-- Web related -->
|
| 223 | <dependency>
|
| 224 | <groupId>com.sun.jersey</groupId>
|
| 225 | <artifactId>jersey-servlet</artifactId>
|
| 226 | <version>${jersey.version}</version>
|
| 227 | <scope>provided</scope>
|
| 228 | </dependency>
|
| 229 | <dependency>
|
| 230 | <groupId>com.sun.jersey.contribs</groupId>
|
| 231 | <artifactId>jersey-multipart</artifactId>
|
| 232 | <version>${jersey.version}</version>
|
| 233 | <scope>provided</scope>
|
| 234 | </dependency>
|
| 235 | <dependency>
|
| 236 | <groupId>com.sun.jersey.jersey-test-framework</groupId>
|
| 237 | <artifactId>jersey-test-framework-core</artifactId>
|
| 238 | <version>${jersey.version}</version>
|
| 239 | <scope>test</scope>
|
| 240 | </dependency>
|
| 241 | <dependency>
|
| 242 | <groupId>com.sun.jersey.jersey-test-framework</groupId>
|
| 243 | <artifactId>jersey-test-framework-grizzly2</artifactId>
|
| 244 | <version>${jersey.version}</version>
|
| 245 | <scope>test</scope>
|
| 246 | </dependency>
|
| 247 | <dependency>
|
| 248 | <groupId>com.fasterxml.jackson.core</groupId>
|
| 249 | <artifactId>jackson-databind</artifactId>
|
| 250 | <version>2.4.2</version>
|
| 251 | <scope>provided</scope>
|
| 252 | </dependency>
|
| 253 | <dependency>
|
| 254 | <groupId>com.fasterxml.jackson.core</groupId>
|
| 255 | <artifactId>jackson-annotations</artifactId>
|
| 256 | <version>2.4.2</version>
|
| 257 | <scope>provided</scope>
|
| 258 | </dependency>
|
| 259 |
|
| 260 | <!-- OSGi related -->
|
| 261 | <dependency>
|
| 262 | <groupId>org.osgi</groupId>
|
| 263 | <artifactId>org.osgi.core</artifactId>
|
| 264 | <version>4.3.1</version>
|
| 265 | <scope>provided</scope>
|
| 266 | </dependency>
|
| 267 | <dependency>
|
| 268 | <groupId>org.osgi</groupId>
|
| 269 | <artifactId>org.osgi.compendium</artifactId>
|
| 270 | <version>4.3.1</version>
|
| 271 | <scope>provided</scope>
|
| 272 | </dependency>
|
| 273 | <dependency>
|
| 274 | <groupId>org.apache.felix</groupId>
|
| 275 | <artifactId>org.apache.felix.scr.annotations</artifactId>
|
| 276 | <version>1.9.8</version>
|
| 277 | <scope>provided</scope>
|
| 278 | </dependency>
|
| 279 |
|
| 280 | <dependency>
|
| 281 | <groupId>org.apache.karaf.features</groupId>
|
| 282 | <artifactId>org.apache.karaf.features.core</artifactId>
|
| 283 | <version>${karaf.version}</version>
|
| 284 | <scope>provided</scope>
|
| 285 | </dependency>
|
| 286 | <dependency>
|
| 287 | <groupId>org.apache.karaf.system</groupId>
|
| 288 | <artifactId>org.apache.karaf.system.core</artifactId>
|
| 289 | <version>${karaf.version}</version>
|
| 290 | <scope>provided</scope>
|
| 291 | </dependency>
|
| 292 | <dependency>
|
| 293 | <groupId>org.apache.karaf.shell</groupId>
|
| 294 | <artifactId>org.apache.karaf.shell.console</artifactId>
|
| 295 | <version>${karaf.version}</version>
|
| 296 | <scope>provided</scope>
|
| 297 | </dependency>
|
| 298 |
|
| 299 | <dependency>
|
| 300 | <groupId>org.livetribe.slp</groupId>
|
| 301 | <artifactId>livetribe-slp</artifactId>
|
| 302 | <version>2.2.1</version>
|
| 303 | </dependency>
|
| 304 |
|
| 305 | <dependency>
|
| 306 | <groupId>com.eclipsesource.minimal-json</groupId>
|
| 307 | <artifactId>minimal-json</artifactId>
|
| 308 | <version>0.9.1</version>
|
| 309 | </dependency>
|
| 310 | <dependency>
|
| 311 | <groupId>com.esotericsoftware</groupId>
|
| 312 | <artifactId>kryo</artifactId>
|
| 313 | <version>3.0.0</version>
|
| 314 | </dependency>
|
| 315 | <dependency>
|
| 316 | <groupId>com.esotericsoftware</groupId>
|
| 317 | <artifactId>reflectasm</artifactId>
|
| 318 | <version>1.10.0</version>
|
| 319 | <type>bundle</type>
|
| 320 | </dependency>
|
| 321 | <dependency>
|
| 322 | <groupId>org.ow2.asm</groupId>
|
| 323 | <artifactId>asm</artifactId>
|
| 324 | <version>4.2</version>
|
| 325 | </dependency>
|
| 326 | <dependency>
|
| 327 | <groupId>com.esotericsoftware</groupId>
|
| 328 | <artifactId>minlog</artifactId>
|
| 329 | <version>1.3.0</version>
|
| 330 | </dependency>
|
| 331 | <dependency>
|
| 332 | <groupId>org.objenesis</groupId>
|
| 333 | <artifactId>objenesis</artifactId>
|
| 334 | <version>2.1</version>
|
| 335 | </dependency>
|
| 336 |
|
| 337 | <!-- ONOS related -->
|
| 338 | <dependency>
|
| 339 | <groupId>org.onosproject</groupId>
|
| 340 | <artifactId>onlab-misc</artifactId>
|
| 341 | <version>${project.version}</version>
|
| 342 | </dependency>
|
| 343 | <dependency>
|
| 344 | <groupId>org.onosproject</groupId>
|
| 345 | <artifactId>onlab-nio</artifactId>
|
| 346 | <version>${project.version}</version>
|
| 347 | </dependency>
|
| 348 | <dependency>
|
| 349 | <groupId>org.onosproject</groupId>
|
| 350 | <artifactId>onlab-osgi</artifactId>
|
| 351 | <version>${project.version}</version>
|
| 352 | </dependency>
|
| 353 | <dependency>
|
| 354 | <groupId>org.onosproject</groupId>
|
| 355 | <artifactId>onlab-osgi</artifactId>
|
| 356 | <version>${project.version}</version>
|
| 357 | <classifier>tests</classifier>
|
| 358 | <scope>test</scope>
|
| 359 | </dependency>
|
| 360 | <dependency>
|
| 361 | <groupId>org.onosproject</groupId>
|
| 362 | <artifactId>onlab-junit</artifactId>
|
| 363 | <version>${project.version}</version>
|
| 364 | <scope>test</scope>
|
| 365 | </dependency>
|
| 366 |
|
| 367 | <dependency>
|
| 368 | <groupId>org.onosproject</groupId>
|
| 369 | <artifactId>onos-api</artifactId>
|
| 370 | <version>${project.version}</version>
|
| 371 | </dependency>
|
| 372 | <dependency>
|
| 373 | <groupId>org.onosproject</groupId>
|
| 374 | <artifactId>onos-api</artifactId>
|
| 375 | <version>${project.version}</version>
|
| 376 | <classifier>tests</classifier>
|
| 377 | <scope>test</scope>
|
| 378 | </dependency>
|
| 379 |
|
| 380 | <dependency>
|
| 381 | <groupId>org.onosproject</groupId>
|
| 382 | <artifactId>onos-incubator-api</artifactId>
|
| 383 | <version>${project.version}</version>
|
| 384 | </dependency>
|
| 385 |
|
| 386 | <dependency>
|
| 387 | <groupId>org.onosproject</groupId>
|
| 388 | <artifactId>onos-core-common</artifactId>
|
| 389 | <version>${project.version}</version>
|
| 390 | </dependency>
|
| 391 | <dependency>
|
| 392 | <groupId>org.onosproject</groupId>
|
| 393 | <artifactId>onos-core-common</artifactId>
|
| 394 | <version>${project.version}</version>
|
| 395 | <classifier>tests</classifier>
|
| 396 | <scope>test</scope>
|
| 397 | </dependency>
|
| 398 |
|
| 399 | <dependency>
|
| 400 | <groupId>org.onosproject</groupId>
|
| 401 | <artifactId>onos-of-api</artifactId>
|
| 402 | <version>${project.version}</version>
|
| 403 | </dependency>
|
| 404 | <dependency>
|
| 405 | <groupId>org.onosproject</groupId>
|
| 406 | <artifactId>onos-ovsdb-rfc</artifactId>
|
| 407 | <version>${project.version}</version>
|
| 408 | </dependency>
|
| 409 | <dependency>
|
| 410 | <groupId>org.onosproject</groupId>
|
| 411 | <artifactId>onos-ovsdb-api</artifactId>
|
| 412 | <version>${project.version}</version>
|
| 413 | </dependency>
|
| 414 | <dependency>
|
| 415 | <groupId>org.onosproject</groupId>
|
| 416 | <artifactId>onos-pcepio</artifactId>
|
| 417 | <version>${project.version}</version>
|
| 418 | </dependency>
|
| 419 |
|
| 420 | <dependency>
|
| 421 | <groupId>org.onosproject</groupId>
|
| 422 | <artifactId>onos-pcep-controller-api</artifactId>
|
| 423 | <version>${project.version}</version>
|
| 424 | </dependency>
|
| 425 |
|
| 426 | <dependency>
|
| 427 | <groupId>org.onosproject</groupId>
|
| 428 | <artifactId>onos-app-pcep-api</artifactId>
|
| 429 | <version>${project.version}</version>
|
| 430 | </dependency>
|
| 431 | <dependency>
|
| 432 | <groupId>org.onosproject</groupId>
|
| 433 | <artifactId>onlab-thirdparty</artifactId>
|
| 434 | <version>${project.version}</version>
|
| 435 | </dependency>
|
| 436 |
|
| 437 | <dependency>
|
| 438 | <groupId>org.onosproject</groupId>
|
| 439 | <artifactId>onos-of-api</artifactId>
|
| 440 | <version>${project.version}</version>
|
| 441 | <classifier>tests</classifier>
|
| 442 | <scope>test</scope>
|
| 443 | </dependency>
|
| 444 | <dependency>
|
| 445 | <groupId>commons-pool</groupId>
|
| 446 | <artifactId>commons-pool</artifactId>
|
| 447 | <version>1.6</version>
|
| 448 | </dependency>
|
| 449 | <dependency>
|
| 450 | <groupId>io.netty</groupId>
|
| 451 | <artifactId>netty-common</artifactId>
|
| 452 | <version>${netty4.version}</version>
|
| 453 | </dependency>
|
| 454 | <dependency>
|
| 455 | <groupId>io.netty</groupId>
|
| 456 | <artifactId>netty-buffer</artifactId>
|
| 457 | <version>${netty4.version}</version>
|
| 458 | </dependency>
|
| 459 | <dependency>
|
| 460 | <groupId>io.netty</groupId>
|
| 461 | <artifactId>netty-transport</artifactId>
|
| 462 | <version>${netty4.version}</version>
|
| 463 | </dependency>
|
| 464 | <dependency>
|
| 465 | <groupId>io.netty</groupId>
|
| 466 | <artifactId>netty-handler</artifactId>
|
| 467 | <version>${netty4.version}</version>
|
| 468 | </dependency>
|
| 469 | <dependency>
|
| 470 | <groupId>io.netty</groupId>
|
| 471 | <artifactId>netty-codec</artifactId>
|
| 472 | <version>${netty4.version}</version>
|
| 473 | </dependency>
|
| 474 | <dependency>
|
| 475 | <groupId>io.netty</groupId>
|
| 476 | <artifactId>netty-transport-native-epoll</artifactId>
|
| 477 | <version>${netty4.version}</version>
|
| 478 | <classifier>${os.detected.classifier}</classifier>
|
| 479 | </dependency>
|
| 480 | <dependency>
|
| 481 | <groupId>joda-time</groupId>
|
| 482 | <artifactId>joda-time</artifactId>
|
| 483 | <version>2.5</version>
|
| 484 | </dependency>
|
| 485 | </dependencies>
|
| 486 | </dependencyManagement>
|
| 487 |
|
| 488 | <dependencies>
|
| 489 | <dependency>
|
| 490 | <groupId>junit</groupId>
|
| 491 | <artifactId>junit</artifactId>
|
| 492 | </dependency>
|
| 493 | <dependency>
|
| 494 | <groupId>org.hamcrest</groupId>
|
| 495 | <artifactId>hamcrest-core</artifactId>
|
| 496 | </dependency>
|
| 497 | <dependency>
|
| 498 | <groupId>org.hamcrest</groupId>
|
| 499 | <artifactId>hamcrest-library</artifactId>
|
| 500 | </dependency>
|
| 501 | <dependency>
|
| 502 | <groupId>org.slf4j</groupId>
|
| 503 | <artifactId>slf4j-api</artifactId>
|
| 504 | </dependency>
|
| 505 | <dependency>
|
| 506 | <groupId>org.slf4j</groupId>
|
| 507 | <artifactId>slf4j-jdk14</artifactId>
|
| 508 | </dependency>
|
| 509 | </dependencies>
|
| 510 |
|
| 511 | <build>
|
| 512 | <pluginManagement>
|
| 513 | <plugins>
|
| 514 | <plugin>
|
| 515 | <groupId>org.apache.maven.plugins</groupId>
|
| 516 | <artifactId>maven-compiler-plugin</artifactId>
|
| 517 | <!-- TODO: update once following issue is fixed. -->
|
| 518 | <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
|
| 519 | <version>2.5.1</version>
|
| 520 | <configuration>
|
| 521 | <source>1.8</source>
|
| 522 | <target>1.8</target>
|
| 523 | </configuration>
|
| 524 | </plugin>
|
| 525 |
|
| 526 | <plugin>
|
| 527 | <groupId>org.apache.maven.plugins</groupId>
|
| 528 | <artifactId>maven-surefire-plugin</artifactId>
|
| 529 | <version>2.18.1</version>
|
| 530 | <configuration>
|
| 531 | <redirectTestOutputToFile>true
|
| 532 | </redirectTestOutputToFile>
|
| 533 | <printSummary>true</printSummary>
|
| 534 | <excludedGroups>org.onlab.junit.IntegrationTest
|
| 535 | </excludedGroups>
|
| 536 | <rerunFailingTestsCount>1</rerunFailingTestsCount>
|
| 537 | </configuration>
|
| 538 | </plugin>
|
| 539 |
|
| 540 | <plugin>
|
| 541 | <groupId>org.apache.maven.plugins</groupId>
|
| 542 | <artifactId>maven-jar-plugin</artifactId>
|
| 543 | <version>2.3.1</version>
|
| 544 | <executions>
|
| 545 | <execution>
|
| 546 | <phase>package</phase>
|
| 547 | <goals>
|
| 548 | <goal>test-jar</goal>
|
| 549 | </goals>
|
| 550 | </execution>
|
| 551 | </executions>
|
| 552 | </plugin>
|
| 553 |
|
| 554 | <plugin>
|
| 555 | <groupId>org.apache.maven.plugins</groupId>
|
| 556 | <artifactId>maven-resources-plugin</artifactId>
|
| 557 | <version>2.6</version>
|
| 558 | </plugin>
|
| 559 |
|
| 560 | <plugin>
|
| 561 | <groupId>org.apache.felix</groupId>
|
| 562 | <artifactId>maven-bundle-plugin</artifactId>
|
| 563 | <version>2.5.3</version>
|
| 564 | <extensions>true</extensions>
|
| 565 | <!--
|
| 566 | Drop following dependency when the below bug fix is published
|
| 567 | https://issues.apache.org/jira/browse/FELIX-4556
|
| 568 | -->
|
| 569 | <dependencies>
|
| 570 | <dependency>
|
| 571 | <groupId>biz.aQute.bnd</groupId>
|
| 572 | <artifactId>bndlib</artifactId>
|
| 573 | <version>2.4.0</version>
|
| 574 | </dependency>
|
| 575 | </dependencies>
|
| 576 | </plugin>
|
| 577 |
|
| 578 | <plugin>
|
| 579 | <groupId>org.apache.maven.plugins</groupId>
|
| 580 | <artifactId>maven-shade-plugin</artifactId>
|
| 581 | <version>2.3</version>
|
| 582 | </plugin>
|
| 583 |
|
| 584 | <plugin>
|
| 585 | <groupId>org.apache.felix</groupId>
|
| 586 | <artifactId>maven-scr-plugin</artifactId>
|
| 587 | <version>1.20.0</version>
|
| 588 | <executions>
|
| 589 | <execution>
|
| 590 | <id>generate-scr-srcdescriptor</id>
|
| 591 | <goals>
|
| 592 | <goal>scr</goal>
|
| 593 | </goals>
|
| 594 | </execution>
|
| 595 | </executions>
|
| 596 | <configuration>
|
| 597 | <supportedProjectTypes>
|
| 598 | <supportedProjectType>bundle</supportedProjectType>
|
| 599 | <supportedProjectType>war</supportedProjectType>
|
| 600 | </supportedProjectTypes>
|
| 601 | </configuration>
|
| 602 | </plugin>
|
| 603 | <plugin>
|
| 604 | <groupId>org.codehaus.mojo</groupId>
|
| 605 | <artifactId>findbugs-maven-plugin</artifactId>
|
| 606 | <version>3.0.0</version>
|
| 607 | <dependencies>
|
| 608 | <dependency>
|
| 609 | <groupId>org.onosproject</groupId>
|
| 610 | <artifactId>onos-build-conf</artifactId>
|
| 611 | <version>1.0</version>
|
| 612 | </dependency>
|
| 613 | </dependencies>
|
| 614 | <configuration>
|
| 615 | <effort>Max</effort>
|
| 616 | <excludeFilterFile>onos/findbugs-suppressions.xml
|
| 617 | </excludeFilterFile>
|
| 618 | </configuration>
|
| 619 | </plugin>
|
| 620 |
|
| 621 | <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
|
| 622 | <plugin>
|
| 623 | <groupId>org.onosproject</groupId>
|
| 624 | <artifactId>onos-maven-plugin</artifactId>
|
| 625 | <version>1.5-SNAPSHOT</version>
|
| 626 | <executions>
|
| 627 | <execution>
|
| 628 | <id>cfg</id>
|
| 629 | <phase>generate-resources</phase>
|
| 630 | <goals>
|
| 631 | <goal>cfg</goal>
|
| 632 | </goals>
|
| 633 | </execution>
|
| 634 | <execution>
|
| 635 | <id>swagger</id>
|
| 636 | <phase>generate-sources</phase>
|
| 637 | <goals>
|
| 638 | <goal>swagger</goal>
|
| 639 | </goals>
|
| 640 | </execution>
|
| 641 | <execution>
|
| 642 | <id>app</id>
|
| 643 | <phase>package</phase>
|
| 644 | <goals>
|
| 645 | <goal>app</goal>
|
| 646 | </goals>
|
| 647 | </execution>
|
| 648 | </executions>
|
| 649 | </plugin>
|
| 650 | </plugins>
|
| 651 | </pluginManagement>
|
| 652 |
|
| 653 | <plugins>
|
| 654 | <plugin>
|
| 655 | <groupId>org.apache.maven.plugins</groupId>
|
| 656 | <artifactId>maven-jar-plugin</artifactId>
|
| 657 | </plugin>
|
| 658 |
|
| 659 | <plugin>
|
| 660 | <groupId>org.apache.maven.plugins</groupId>
|
| 661 | <artifactId>maven-checkstyle-plugin</artifactId>
|
| 662 | <version>2.13</version>
|
| 663 | <dependencies>
|
| 664 | <dependency>
|
| 665 | <groupId>org.onosproject</groupId>
|
| 666 | <artifactId>onos-build-conf</artifactId>
|
| 667 | <version>1.0</version>
|
| 668 | </dependency>
|
| 669 | <!-- For Java 8 lambda support-->
|
| 670 | <dependency>
|
| 671 | <groupId>com.puppycrawl.tools</groupId>
|
| 672 | <artifactId>checkstyle</artifactId>
|
| 673 | <version>5.9</version>
|
| 674 | </dependency>
|
| 675 | </dependencies>
|
| 676 | <configuration>
|
| 677 | <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
|
| 678 | <sourceDirectory>${project.build.sourceDirectory}
|
| 679 | </sourceDirectory>
|
| 680 | <testSourceDirectory>${project.build.testSourceDirectory}
|
| 681 | </testSourceDirectory>
|
| 682 | <!-- end: workaround for unexpected NullPointerException on Eclipse -->
|
| 683 | <configLocation>onos/checkstyle.xml</configLocation>
|
| 684 | <suppressionsLocation>onos/suppressions.xml
|
| 685 | </suppressionsLocation>
|
| 686 | <failsOnError>false</failsOnError>
|
| 687 | <logViolationsToConsole>true</logViolationsToConsole>
|
| 688 | <includeTestSourceDirectory>true
|
| 689 | </includeTestSourceDirectory>
|
| 690 | </configuration>
|
| 691 | <executions>
|
| 692 | <execution>
|
| 693 | <id>validate-checkstyle</id>
|
| 694 | <phase>verify</phase>
|
| 695 | <goals>
|
| 696 | <goal>check</goal>
|
| 697 | </goals>
|
| 698 | </execution>
|
| 699 | </executions>
|
| 700 | </plugin>
|
| 701 |
|
| 702 | <plugin>
|
| 703 | <groupId>org.apache.maven.plugins</groupId>
|
| 704 | <artifactId>maven-pmd-plugin</artifactId>
|
| 705 | <version>3.2</version>
|
| 706 | <configuration>
|
| 707 | <excludes>
|
| 708 | </excludes>
|
| 709 | <rulesets>
|
| 710 | <ruleset>onos/pmd.xml</ruleset>
|
| 711 | </rulesets>
|
| 712 | </configuration>
|
| 713 | <executions>
|
| 714 | <execution>
|
| 715 | <id>validate-pmd</id>
|
| 716 | <phase>verify</phase>
|
| 717 | <goals>
|
| 718 | <!-- Uncomment this goal to make the build fail on pmd errors -->
|
| 719 | <!--<goal>check</goal>-->
|
| 720 | </goals>
|
| 721 | </execution>
|
| 722 | </executions>
|
| 723 | </plugin>
|
| 724 |
|
| 725 | <plugin>
|
| 726 | <groupId>org.jacoco</groupId>
|
| 727 | <artifactId>jacoco-maven-plugin</artifactId>
|
| 728 | <version>0.7.2.201409121644</version>
|
| 729 | <executions>
|
| 730 | <execution>
|
| 731 | <id>default-prepare-agent</id>
|
| 732 | <goals>
|
| 733 | <goal>prepare-agent</goal>
|
| 734 | </goals>
|
| 735 | </execution>
|
| 736 | <execution>
|
| 737 | <id>default-report</id>
|
| 738 | <phase>prepare-package</phase>
|
| 739 | <goals>
|
| 740 | <goal>report</goal>
|
| 741 | </goals>
|
| 742 | </execution>
|
| 743 | </executions>
|
| 744 | </plugin>
|
| 745 | </plugins>
|
| 746 | </build>
|
| 747 |
|
| 748 | <reporting>
|
| 749 | <plugins>
|
| 750 | <plugin>
|
| 751 | <groupId>org.apache.maven.plugins</groupId>
|
| 752 | <artifactId>maven-checkstyle-plugin</artifactId>
|
| 753 | <version>2.12.1</version>
|
| 754 | <configuration>
|
| 755 | <configLocation>onos/checkstyle.xml</configLocation>
|
| 756 | </configuration>
|
| 757 | </plugin>
|
| 758 |
|
| 759 | <plugin>
|
| 760 | <groupId>org.apache.maven.plugins</groupId>
|
| 761 | <artifactId>maven-pmd-plugin</artifactId>
|
| 762 | <version>3.2</version>
|
| 763 | <configuration>
|
| 764 | <excludes>
|
| 765 | </excludes>
|
| 766 | <rulesets>
|
| 767 | <ruleset>onos/pmd.xml</ruleset>
|
| 768 | </rulesets>
|
| 769 | </configuration>
|
| 770 | </plugin>
|
| 771 | </plugins>
|
| 772 | </reporting>
|
| 773 | </project>
|