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