1 <?xml version="1.0" encoding="UTF-8"?>
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">
3 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
8 <version>1.2.3-SNAPSHOT</version>
12 <groupId>org.onap.ccsdk.distribution</groupId>
13 <artifactId>distribution-odlsli-ubuntu</artifactId>
14 <version>0.4.3-SNAPSHOT</version>
15 <packaging>pom</packaging>
17 <name>ccsdk-distribution :: odlsli-ubuntu</name>
18 <description>Creates Ubuntu-based ODLSLI Docker container</description>
20 <name>openECOMP</name>
24 <base.image.name>onap/ccsdk-odl-fluorine-ubuntu-image</base.image.name>
25 <image.name>onap/ccsdk-odlsli-image</image.name>
26 <ccsdk.project.version>${project.version}</ccsdk.project.version>
27 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
28 <ccsdk.features.version>0.4.2</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>
35 <odl.features.extra>odl-restconf-all,odl-mdsal-all,odl-mdsal-apidocs, odl-daexim-all,odl-restconf-nb-rfc8040</odl.features.extra>
36 <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>
37 <odl.boot.features.extra>${odl.features.extra},${ccsdk.odl.features}</odl.boot.features.extra>
42 <groupId>${project.groupId}</groupId>
43 <artifactId>dependencies</artifactId>
44 <version>${project.version}</version>
45 <classifier>repo</classifier>
50 <groupId>org.onap.ccsdk.sli.core</groupId>
51 <artifactId>dblib-installer</artifactId>
52 <version>${ccsdk.sli.core.version}</version>
53 <classifier>repo</classifier>
57 <groupId>org.onap.ccsdk.sli.core</groupId>
58 <artifactId>filters-installer</artifactId>
59 <version>${ccsdk.sli.core.version}</version>
60 <classifier>repo</classifier>
64 <groupId>org.onap.ccsdk.sli.core</groupId>
65 <artifactId>sli-installer</artifactId>
66 <version>${ccsdk.sli.core.version}</version>
67 <classifier>repo</classifier>
71 <groupId>org.onap.ccsdk.sli.core</groupId>
72 <artifactId>sliapi-installer</artifactId>
73 <version>${ccsdk.sli.core.version}</version>
74 <classifier>repo</classifier>
78 <groupId>org.onap.ccsdk.sli.core</groupId>
79 <artifactId>sliPluginUtils-installer</artifactId>
80 <version>${ccsdk.sli.core.version}</version>
81 <classifier>repo</classifier>
85 <groupId>org.onap.ccsdk.sli.core</groupId>
86 <artifactId>utils-installer</artifactId>
87 <version>${ccsdk.sli.core.version}</version>
88 <classifier>repo</classifier>
92 <groupId>org.onap.ccsdk.sli.core</groupId>
93 <artifactId>slicore-features-installer</artifactId>
94 <version>${ccsdk.sli.core.version}</version>
95 <classifier>repo</classifier>
99 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
100 <artifactId>aai-service-installer</artifactId>
101 <version>${ccsdk.sli.adaptors.version}</version>
102 <classifier>repo</classifier>
106 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
107 <artifactId>ansible-adapter-installer</artifactId>
108 <version>${ccsdk.sli.adaptors.version}</version>
109 <classifier>repo</classifier>
113 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
114 <artifactId>grpc-client-installer</artifactId>
115 <version>${ccsdk.sli.adaptors.version}</version>
116 <classifier>repo</classifier>
120 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
121 <artifactId>mdsal-resource-installer</artifactId>
122 <version>${ccsdk.sli.adaptors.version}</version>
123 <classifier>repo</classifier>
127 <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId>
128 <artifactId>publisher.installer</artifactId>
129 <version>${ccsdk.sli.adaptors.version}</version>
130 <classifier>repo</classifier>
134 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
135 <artifactId>netbox-client-installer</artifactId>
136 <version>${ccsdk.sli.adaptors.version}</version>
137 <classifier>repo</classifier>
141 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
142 <artifactId>resource-assignment-installer</artifactId>
143 <version>${ccsdk.sli.adaptors.version}</version>
144 <classifier>repo</classifier>
148 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
149 <artifactId>saltstack-adapter-installer</artifactId>
150 <version>${ccsdk.sli.adaptors.version}</version>
151 <classifier>repo</classifier>
155 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
156 <artifactId>sql-resource-installer</artifactId>
157 <version>${ccsdk.sli.adaptors.version}</version>
158 <classifier>repo</classifier>
162 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
163 <artifactId>sliadaptors-features-installer</artifactId>
164 <version>${ccsdk.sli.adaptors.version}</version>
165 <classifier>repo</classifier>
169 <groupId>org.onap.ccsdk.sli.northbound</groupId>
170 <artifactId>asdcApi-installer</artifactId>
171 <version>${ccsdk.sli.northbound.version}</version>
172 <classifier>repo</classifier>
176 <groupId>org.onap.ccsdk.sli.northbound</groupId>
177 <artifactId>dataChange-installer</artifactId>
178 <version>${ccsdk.sli.northbound.version}</version>
179 <classifier>repo</classifier>
183 <groupId>org.onap.ccsdk.sli.northbound</groupId>
184 <artifactId>lcm-installer</artifactId>
185 <version>${ccsdk.sli.northbound.version}</version>
186 <classifier>repo</classifier>
190 <groupId>org.onap.ccsdk.sli.northbound</groupId>
191 <artifactId>slinorthbound-features-installer</artifactId>
192 <version>${ccsdk.sli.northbound.version}</version>
193 <classifier>repo</classifier>
197 <groupId>org.onap.ccsdk.sli.plugins</groupId>
198 <artifactId>properties-node-installer</artifactId>
199 <version>${ccsdk.sli.plugins.version}</version>
200 <classifier>repo</classifier>
204 <groupId>org.onap.ccsdk.sli.plugins</groupId>
205 <artifactId>restapi-call-node-installer</artifactId>
206 <version>${ccsdk.sli.plugins.version}</version>
207 <classifier>repo</classifier>
211 <groupId>org.onap.ccsdk.sli.plugins</groupId>
212 <artifactId>template-node-installer</artifactId>
213 <version>${ccsdk.sli.plugins.version}</version>
214 <classifier>repo</classifier>
218 <groupId>org.onap.ccsdk.sli.plugins</groupId>
219 <artifactId>restconf-client-installer</artifactId>
220 <version>${ccsdk.sli.plugins.version}</version>
221 <classifier>repo</classifier>
225 <groupId>org.onap.ccsdk.sli.plugins</groupId>
226 <artifactId>sshapi-call-node-installer</artifactId>
227 <version>${ccsdk.sli.plugins.version}</version>
228 <classifier>repo</classifier>
232 <groupId>org.onap.ccsdk.sli.plugins</groupId>
233 <artifactId>sliplugins-features-installer</artifactId>
234 <version>${ccsdk.sli.plugins.version}</version>
235 <classifier>repo</classifier>
239 <groupId>org.onap.ccsdk.features</groupId>
240 <artifactId>features-installer</artifactId>
241 <version>${ccsdk.features.version}</version>
242 <classifier>repo</classifier>
246 <groupId>org.onap.ccsdk.features</groupId>
247 <artifactId>blueprints-processor-installer</artifactId>
248 <version>${ccsdk.features.version}</version>
249 <classifier>repo</classifier>
253 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
254 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
255 <version>${ccsdk.features.version}</version>
256 <classifier>repo</classifier>
260 <groupId>org.onap.ccsdk.features</groupId>
261 <artifactId>aafshiro-installer</artifactId>
262 <version>${ccsdk.features.version}</version>
263 <classifier>repo</classifier>
271 <!-- this extension is required by wagon in order to pass the proxy -->
272 <groupId>org.apache.maven.wagon</groupId>
273 <artifactId>wagon-http-lightweight</artifactId>
274 <version>2.2</version>
281 <groupId>org.codehaus.groovy.maven</groupId>
282 <artifactId>gmaven-plugin</artifactId>
285 <phase>validate</phase>
290 <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
299 <artifactId>maven-resources-plugin</artifactId>
300 <version>2.6</version>
303 <id>copy-dockerfile</id>
305 <goal>copy-resources</goal>
306 </goals><!-- here the phase you need -->
307 <phase>validate</phase>
309 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
312 <directory>src/main/docker</directory>
314 <include>Dockerfile</include>
316 <filtering>true</filtering>
323 <id>copy-scripts</id>
325 <goal>copy-resources</goal>
326 </goals><!-- here the phase you need -->
327 <phase>validate</phase>
329 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
332 <directory>../src/main/scripts</directory>
334 <include>*.sh</include>
336 <filtering>false</filtering>
343 <id>copy-odl-resources</id>
345 <goal>copy-resources</goal>
346 </goals><!-- here the phase you need -->
347 <phase>validate</phase>
349 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
352 <directory>../src/main/resources</directory>
354 <include>idmlight.db.mv.db</include>
355 <include>org.ops4j.pax.logging.cfg</include>
356 <include>install_ccsdk.yml</include>
357 <include>ansible-sources.list</include>
359 <filtering>false</filtering>
367 <goal>copy-resources</goal>
368 </goals><!-- here the phase you need -->
369 <phase>validate</phase>
371 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
374 <directory>../src/main/resources</directory>
376 <include>org.ops4j.pax.logging.cfg</include>
378 <filtering>false</filtering>
386 <goal>copy-resources</goal>
387 </goals><!-- here the phase you need -->
388 <phase>validate</phase>
390 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
393 <directory>../src/main/resources</directory>
395 <include>*.dump</include>
397 <filtering>false</filtering>
403 <id>copy-properties</id>
405 <goal>copy-resources</goal>
406 </goals><!-- here the phase you need -->
407 <phase>validate</phase>
409 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
412 <directory>../src/main/properties</directory>
414 <include>*.properties</include>
416 <filtering>false</filtering>
422 <id>copy-keystores</id>
424 <goal>copy-resources</goal>
425 </goals><!-- here the phase you need -->
426 <phase>validate</phase>
428 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
431 <directory>../src/main/stores</directory>
433 <include>*.jks</include>
435 <filtering>false</filtering>
443 <groupId>org.apache.maven.plugins</groupId>
444 <artifactId>maven-dependency-plugin</artifactId>
445 <version>3.0.2</version>
448 <id>unpack features</id>
449 <phase>generate-sources</phase>
451 <goal>unpack-dependencies</goal>
454 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
455 <excludeTransitive>true</excludeTransitive>
460 <phase>generate-sources</phase>
465 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
468 <groupId>${project.groupId}</groupId>
469 <artifactId>platform-logic-installer</artifactId>
470 <version>${project.version}</version>
479 <groupId>org.codehaus.mojo</groupId>
480 <artifactId>exec-maven-plugin</artifactId>
481 <version>1.5.0</version>
485 <id>change shell permissions</id>
486 <phase>process-sources</phase>
491 <executable>/usr/bin/find</executable>
493 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
494 <argument>-name</argument>
495 <argument>*.sh</argument>
496 <argument>-exec</argument>
497 <argument>chmod</argument>
498 <argument>+x</argument>
499 <argument>{}</argument>
500 <argument>;</argument>
517 <groupId>io.fabric8</groupId>
518 <artifactId>docker-maven-plugin</artifactId>
519 <version>0.16.5</version>
520 <inherited>false</inherited>
524 <name>${image.name}</name>
526 <cleanup>try</cleanup>
527 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
528 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
530 <tag>${project.docker.latestminortag.version}</tag>
531 <tag>${project.docker.latestfulltag.version}</tag>
532 <tag>${project.docker.latesttagtimestamp.version}</tag>
540 <id>generate-images</id>
541 <phase>package</phase>
549 <phase>${docker.push.phase}</phase>