Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Timoney, Dan (dt5972) | ea65269 | 2019-01-08 15:56:26 -0500 | [diff] [blame^] | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | |
| 5 | <parent> |
| 6 | <groupId>org.onap.ccsdk.parent</groupId> |
| 7 | <artifactId>odlparent-lite</artifactId> |
Timoney, Dan (dt5972) | ea65269 | 2019-01-08 15:56:26 -0500 | [diff] [blame^] | 8 | <version>1.2.0</version> |
| 9 | <relativePath/> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 10 | </parent> |
| 11 | |
| 12 | <groupId>org.onap.ccsdk.distribution</groupId> |
| 13 | <artifactId>distribution-odlsli-ubuntu</artifactId> |
| 14 | <version>0.4.0-SNAPSHOT</version> |
| 15 | <packaging>pom</packaging> |
| 16 | |
| 17 | <name>ccsdk-distribution :: odlsli</name> |
| 18 | <description>Creates SDN Controller Docker container</description> |
| 19 | <organization> |
| 20 | <name>openECOMP</name> |
| 21 | </organization> |
| 22 | |
| 23 | <properties> |
| 24 | <image.name>onap/ccsdk-odlsli-image</image.name> |
| 25 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
| 26 | <ccsdk.features.version>${project.version}</ccsdk.features.version> |
| 27 | <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy> |
| 28 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 29 | <opendaylight.root>opt/opendaylight</opendaylight.root> |
| 30 | <docker.push.phase>deploy</docker.push.phase> |
| 31 | <docker.verbose>true</docker.verbose> |
| 32 | <ansible.gpg.key>93C4A3FD7BB9C367</ansible.gpg.key> |
| 33 | </properties> |
| 34 | |
| 35 | <dependencies> |
| 36 | <dependency> |
| 37 | <groupId>${project.groupId}</groupId> |
| 38 | <artifactId>dependencies</artifactId> |
| 39 | <version>${project.version}</version> |
| 40 | <classifier>repo</classifier> |
| 41 | <type>zip</type> |
| 42 | </dependency> |
| 43 | |
| 44 | <dependency> |
| 45 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 46 | <artifactId>dblib-installer</artifactId> |
| 47 | <version>${ccsdk.sli.core.version}</version> |
| 48 | <classifier>repo</classifier> |
| 49 | <type>zip</type> |
| 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 53 | <artifactId>filters-installer</artifactId> |
| 54 | <version>${ccsdk.sli.core.version}</version> |
| 55 | <classifier>repo</classifier> |
| 56 | <type>zip</type> |
| 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 60 | <artifactId>sli-installer</artifactId> |
| 61 | <version>${ccsdk.sli.core.version}</version> |
| 62 | <classifier>repo</classifier> |
| 63 | <type>zip</type> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 67 | <artifactId>sliapi-installer</artifactId> |
| 68 | <version>${ccsdk.sli.core.version}</version> |
| 69 | <classifier>repo</classifier> |
| 70 | <type>zip</type> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 74 | <artifactId>sliPluginUtils-installer</artifactId> |
| 75 | <version>${ccsdk.sli.core.version}</version> |
| 76 | <classifier>repo</classifier> |
| 77 | <type>zip</type> |
| 78 | </dependency> |
| 79 | <dependency> |
| 80 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 81 | <artifactId>utils-installer</artifactId> |
| 82 | <version>${ccsdk.sli.core.version}</version> |
| 83 | <classifier>repo</classifier> |
| 84 | <type>zip</type> |
| 85 | </dependency> |
| 86 | <dependency> |
| 87 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 88 | <artifactId>slicore-features-installer</artifactId> |
| 89 | <version>${ccsdk.sli.core.version}</version> |
| 90 | <classifier>repo</classifier> |
| 91 | <type>zip</type> |
| 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 95 | <artifactId>aai-service-installer</artifactId> |
| 96 | <version>${ccsdk.sli.adaptors.version}</version> |
| 97 | <classifier>repo</classifier> |
| 98 | <type>zip</type> |
| 99 | </dependency> |
| 100 | <dependency> |
| 101 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 102 | <artifactId>ansible-adapter-installer</artifactId> |
| 103 | <version>${ccsdk.sli.adaptors.version}</version> |
| 104 | <classifier>repo</classifier> |
| 105 | <type>zip</type> |
| 106 | </dependency> |
| 107 | <dependency> |
| 108 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 109 | <artifactId>mdsal-resource-installer</artifactId> |
| 110 | <version>${ccsdk.sli.adaptors.version}</version> |
| 111 | <classifier>repo</classifier> |
| 112 | <type>zip</type> |
| 113 | </dependency> |
| 114 | <dependency> |
| 115 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 116 | <artifactId>resource-assignment-installer</artifactId> |
| 117 | <version>${ccsdk.sli.adaptors.version}</version> |
| 118 | <classifier>repo</classifier> |
| 119 | <type>zip</type> |
| 120 | </dependency> |
| 121 | <dependency> |
| 122 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 123 | <artifactId>netbox-client-installer</artifactId> |
| 124 | <version>${ccsdk.sli.adaptors.version}</version> |
| 125 | <classifier>repo</classifier> |
| 126 | <type>zip</type> |
| 127 | </dependency> |
| 128 | <dependency> |
| 129 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 130 | <artifactId>sql-resource-installer</artifactId> |
| 131 | <version>${ccsdk.sli.adaptors.version}</version> |
| 132 | <classifier>repo</classifier> |
| 133 | <type>zip</type> |
| 134 | </dependency> |
| 135 | <dependency> |
| 136 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 137 | <artifactId>sliadaptors-features-installer</artifactId> |
| 138 | <version>${ccsdk.sli.adaptors.version}</version> |
| 139 | <classifier>repo</classifier> |
| 140 | <type>zip</type> |
| 141 | </dependency> |
| 142 | <dependency> |
| 143 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 144 | <artifactId>asdcApi-installer</artifactId> |
| 145 | <version>${ccsdk.sli.northbound.version}</version> |
| 146 | <classifier>repo</classifier> |
| 147 | <type>zip</type> |
| 148 | </dependency> |
| 149 | <dependency> |
| 150 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 151 | <artifactId>dataChange-installer</artifactId> |
| 152 | <version>${ccsdk.sli.northbound.version}</version> |
| 153 | <classifier>repo</classifier> |
| 154 | <type>zip</type> |
| 155 | </dependency> |
| 156 | <dependency> |
| 157 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 158 | <artifactId>lcm-installer</artifactId> |
| 159 | <version>${ccsdk.sli.northbound.version}</version> |
| 160 | <classifier>repo</classifier> |
| 161 | <type>zip</type> |
| 162 | </dependency> |
| 163 | <dependency> |
| 164 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 165 | <artifactId>slinorthbound-features-installer</artifactId> |
| 166 | <version>${ccsdk.sli.northbound.version}</version> |
| 167 | <classifier>repo</classifier> |
| 168 | <type>zip</type> |
| 169 | </dependency> |
| 170 | <dependency> |
| 171 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 172 | <artifactId>properties-node-installer</artifactId> |
| 173 | <version>${ccsdk.sli.plugins.version}</version> |
| 174 | <classifier>repo</classifier> |
| 175 | <type>zip</type> |
| 176 | </dependency> |
| 177 | <dependency> |
| 178 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 179 | <artifactId>restapi-call-node-installer</artifactId> |
| 180 | <version>${ccsdk.sli.plugins.version}</version> |
| 181 | <classifier>repo</classifier> |
| 182 | <type>zip</type> |
| 183 | </dependency> |
| 184 | <dependency> |
| 185 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 186 | <artifactId>restconf-client-installer</artifactId> |
| 187 | <version>${ccsdk.sli.plugins.version}</version> |
| 188 | <classifier>repo</classifier> |
| 189 | <type>zip</type> |
| 190 | </dependency> |
| 191 | <dependency> |
| 192 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 193 | <artifactId>sshapi-call-node-installer</artifactId> |
| 194 | <version>${ccsdk.sli.plugins.version}</version> |
| 195 | <classifier>repo</classifier> |
| 196 | <type>zip</type> |
| 197 | </dependency> |
| 198 | <dependency> |
| 199 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 200 | <artifactId>sliplugins-features-installer</artifactId> |
| 201 | <version>${ccsdk.sli.plugins.version}</version> |
| 202 | <classifier>repo</classifier> |
| 203 | <type>zip</type> |
| 204 | </dependency> |
| 205 | <dependency> |
| 206 | <groupId>org.onap.ccsdk.features</groupId> |
| 207 | <artifactId>features-installer</artifactId> |
| 208 | <version>${ccsdk.features.version}</version> |
| 209 | <classifier>repo</classifier> |
| 210 | <type>zip</type> |
| 211 | </dependency> |
| 212 | <dependency> |
| 213 | <groupId>org.onap.ccsdk.features</groupId> |
| 214 | <artifactId>blueprints-processor-installer</artifactId> |
| 215 | <version>${ccsdk.features.version}</version> |
| 216 | <classifier>repo</classifier> |
| 217 | <type>zip</type> |
| 218 | </dependency> |
| 219 | </dependencies> |
| 220 | |
| 221 | <build> |
| 222 | <extensions> |
| 223 | <extension> |
| 224 | <!-- this extension is required by wagon in order to pass the proxy --> |
| 225 | <groupId>org.apache.maven.wagon</groupId> |
| 226 | <artifactId>wagon-http-lightweight</artifactId> |
| 227 | <version>2.2</version> |
| 228 | </extension> |
| 229 | </extensions> |
| 230 | <plugins> |
| 231 | |
| 232 | |
| 233 | <plugin> |
| 234 | <groupId>org.codehaus.groovy.maven</groupId> |
| 235 | <artifactId>gmaven-plugin</artifactId> |
| 236 | <executions> |
| 237 | <execution> |
| 238 | <phase>validate</phase> |
| 239 | <goals> |
| 240 | <goal>execute</goal> |
| 241 | </goals> |
| 242 | <configuration> |
| 243 | <source> |
| 244 | println project.properties['ccsdk.project.version']; |
| 245 | def versionArray; |
| 246 | if (project.properties['ccsdk.project.version'] != null ) { |
| 247 | versionArray = project.properties['ccsdk.project.version'].split('\\.'); |
| 248 | } |
| 249 | |
| 250 | if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) |
| 251 | { |
| 252 | project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; |
| 253 | } else { |
| 254 | project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; |
| 255 | } |
| 256 | |
| 257 | println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; |
| 258 | </source> |
| 259 | </configuration> |
| 260 | </execution> |
| 261 | </executions> |
| 262 | </plugin> |
| 263 | |
| 264 | |
| 265 | |
| 266 | <plugin> |
| 267 | <artifactId>maven-resources-plugin</artifactId> |
| 268 | <version>2.6</version> |
| 269 | <executions> |
| 270 | <execution> |
| 271 | <id>copy-dockerfile</id> |
| 272 | <goals> |
| 273 | <goal>copy-resources</goal> |
| 274 | </goals><!-- here the phase you need --> |
| 275 | <phase>validate</phase> |
| 276 | <configuration> |
| 277 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 278 | <resources> |
| 279 | <resource> |
| 280 | <directory>src/main/docker</directory> |
| 281 | <includes> |
| 282 | <include>Dockerfile</include> |
| 283 | </includes> |
| 284 | <filtering>true</filtering> |
| 285 | </resource> |
| 286 | </resources> |
| 287 | </configuration> |
| 288 | </execution> |
| 289 | |
| 290 | <execution> |
| 291 | <id>copy-scripts</id> |
| 292 | <goals> |
| 293 | <goal>copy-resources</goal> |
| 294 | </goals><!-- here the phase you need --> |
| 295 | <phase>validate</phase> |
| 296 | <configuration> |
| 297 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory> |
| 298 | <resources> |
| 299 | <resource> |
| 300 | <directory>../src/main/scripts</directory> |
| 301 | <includes> |
| 302 | <include>*.sh</include> |
| 303 | </includes> |
| 304 | <filtering>false</filtering> |
| 305 | </resource> |
| 306 | </resources> |
| 307 | </configuration> |
| 308 | </execution> |
| 309 | |
| 310 | <execution> |
| 311 | <id>copy-odl-resources</id> |
| 312 | <goals> |
| 313 | <goal>copy-resources</goal> |
| 314 | </goals><!-- here the phase you need --> |
| 315 | <phase>validate</phase> |
| 316 | <configuration> |
| 317 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 318 | <resources> |
| 319 | <resource> |
| 320 | <directory>../src/main/resources</directory> |
| 321 | <includes> |
| 322 | <include>idmlight.db.mv.db</include> |
| 323 | <include>org.ops4j.pax.logging.cfg</include> |
| 324 | <include>install_ccsdk.yml</include> |
| 325 | <include>ansible-sources.list</include> |
| 326 | </includes> |
| 327 | <filtering>false</filtering> |
| 328 | </resource> |
| 329 | </resources> |
| 330 | </configuration> |
| 331 | </execution> |
| 332 | <execution> |
| 333 | <id>copy-config</id> |
| 334 | <goals> |
| 335 | <goal>copy-resources</goal> |
| 336 | </goals><!-- here the phase you need --> |
| 337 | <phase>validate</phase> |
| 338 | <configuration> |
| 339 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 340 | <resources> |
| 341 | <resource> |
| 342 | <directory>../src/main/resources</directory> |
| 343 | <includes> |
| 344 | <include>org.ops4j.pax.logging.cfg</include> |
| 345 | </includes> |
| 346 | <filtering>false</filtering> |
| 347 | </resource> |
| 348 | </resources> |
| 349 | </configuration> |
| 350 | </execution> |
| 351 | <execution> |
| 352 | <id>copy-data</id> |
| 353 | <goals> |
| 354 | <goal>copy-resources</goal> |
| 355 | </goals><!-- here the phase you need --> |
| 356 | <phase>validate</phase> |
| 357 | <configuration> |
| 358 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory> |
| 359 | <resources> |
| 360 | <resource> |
| 361 | <directory>../src/main/resources</directory> |
| 362 | <includes> |
| 363 | <include>*.dump</include> |
| 364 | </includes> |
| 365 | <filtering>false</filtering> |
| 366 | </resource> |
| 367 | </resources> |
| 368 | </configuration> |
| 369 | </execution> |
| 370 | <execution> |
| 371 | <id>copy-properties</id> |
| 372 | <goals> |
| 373 | <goal>copy-resources</goal> |
| 374 | </goals><!-- here the phase you need --> |
| 375 | <phase>validate</phase> |
| 376 | <configuration> |
| 377 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory> |
| 378 | <resources> |
| 379 | <resource> |
| 380 | <directory>../src/main/properties</directory> |
| 381 | <includes> |
| 382 | <include>*.properties</include> |
| 383 | </includes> |
| 384 | <filtering>false</filtering> |
| 385 | </resource> |
| 386 | </resources> |
| 387 | </configuration> |
| 388 | </execution> |
| 389 | <execution> |
| 390 | <id>copy-keystores</id> |
| 391 | <goals> |
| 392 | <goal>copy-resources</goal> |
| 393 | </goals><!-- here the phase you need --> |
| 394 | <phase>validate</phase> |
| 395 | <configuration> |
| 396 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory> |
| 397 | <resources> |
| 398 | <resource> |
| 399 | <directory>../src/main/stores</directory> |
| 400 | <includes> |
| 401 | <include>*.jks</include> |
| 402 | </includes> |
| 403 | <filtering>false</filtering> |
| 404 | </resource> |
| 405 | </resources> |
| 406 | </configuration> |
| 407 | </execution> |
| 408 | </executions> |
| 409 | </plugin> |
| 410 | <plugin> |
| 411 | <groupId>org.apache.maven.plugins</groupId> |
| 412 | <artifactId>maven-dependency-plugin</artifactId> |
| 413 | <version>3.0.2</version> |
| 414 | <executions> |
| 415 | <execution> |
| 416 | <id>unpack features</id> |
| 417 | <phase>generate-sources</phase> |
| 418 | <goals> |
| 419 | <goal>unpack-dependencies</goal> |
| 420 | </goals> |
| 421 | <configuration> |
| 422 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 423 | <excludeTransitive>true</excludeTransitive> |
| 424 | </configuration> |
| 425 | </execution> |
| 426 | <execution> |
| 427 | <id>unpack dgs</id> |
| 428 | <phase>generate-sources</phase> |
| 429 | <goals> |
| 430 | <goal>unpack</goal> |
| 431 | </goals> |
| 432 | <configuration> |
| 433 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory> |
| 434 | <artifactItems> |
| 435 | <artifactItem> |
| 436 | <groupId>${project.groupId}</groupId> |
| 437 | <artifactId>platform-logic-installer</artifactId> |
| 438 | <version>${project.version}</version> |
| 439 | <type>zip</type> |
| 440 | </artifactItem> |
| 441 | </artifactItems> |
| 442 | </configuration> |
| 443 | </execution> |
| 444 | </executions> |
| 445 | </plugin> |
| 446 | <plugin> |
| 447 | <groupId>org.codehaus.mojo</groupId> |
| 448 | <artifactId>exec-maven-plugin</artifactId> |
| 449 | <version>1.5.0</version> |
| 450 | <executions> |
| 451 | |
| 452 | <execution> |
| 453 | <id>change shell permissions</id> |
| 454 | <phase>process-sources</phase> |
| 455 | <goals> |
| 456 | <goal>exec</goal> |
| 457 | </goals> |
| 458 | <configuration> |
| 459 | <executable>/usr/bin/find</executable> |
| 460 | <arguments> |
| 461 | <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument> |
| 462 | <argument>-name</argument> |
| 463 | <argument>*.sh</argument> |
| 464 | <argument>-exec</argument> |
| 465 | <argument>chmod</argument> |
| 466 | <argument>+x</argument> |
| 467 | <argument>{}</argument> |
| 468 | <argument>;</argument> |
| 469 | </arguments> |
| 470 | </configuration> |
| 471 | </execution> |
| 472 | </executions> |
| 473 | </plugin> |
| 474 | |
| 475 | |
| 476 | </plugins> |
| 477 | </build> |
| 478 | |
| 479 | <profiles> |
| 480 | <profile> |
| 481 | <id>docker</id> |
| 482 | <build> |
| 483 | <plugins> |
| 484 | <plugin> |
| 485 | <groupId>io.fabric8</groupId> |
| 486 | <artifactId>docker-maven-plugin</artifactId> |
| 487 | <version>0.16.5</version> |
| 488 | <inherited>false</inherited> |
| 489 | <configuration> |
| 490 | <images> |
| 491 | <image> |
| 492 | <name>${image.name}</name> |
| 493 | <build> |
| 494 | <cleanup>try</cleanup> |
| 495 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 496 | <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> |
| 497 | <tags> |
| 498 | <tag>${project.version}</tag> |
| 499 | <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> |
| 500 | <tag>${project.docker.latesttag.version}</tag> |
| 501 | </tags> |
| 502 | </build> |
| 503 | </image> |
| 504 | </images> |
| 505 | </configuration> |
| 506 | <executions> |
| 507 | <execution> |
| 508 | <id>generate-images</id> |
| 509 | <phase>package</phase> |
| 510 | <goals> |
| 511 | <goal>build</goal> |
| 512 | </goals> |
| 513 | </execution> |
| 514 | |
| 515 | <execution> |
| 516 | <id>push-images</id> |
| 517 | <phase>${docker.push.phase}</phase> |
| 518 | <goals> |
| 519 | <goal>build</goal> |
| 520 | <goal>push</goal> |
| 521 | </goals> |
| 522 | </execution> |
| 523 | </executions> |
| 524 | </plugin> |
| 525 | </plugins> |
| 526 | </build> |
| 527 | </profile> |
| 528 | </profiles> |
| 529 | </project> |