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.4</version>
12 <groupId>org.onap.ccsdk.distribution</groupId>
13 <artifactId>distribution-odlsli-ubuntu</artifactId>
14 <version>0.4.4-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.4-SNAPSHOT</ccsdk.features.version>
29 <ccsdk.sli.core.version>0.4.4-SNAPSHOT</ccsdk.sli.core.version>
30 <ccsdk.sli.adaptors.version>0.4.4-SNAPSHOT</ccsdk.sli.adaptors.version>
31 <ccsdk.sli.northbound.version>0.4.4-SNAPSHOT</ccsdk.sli.northbound.version>
32 <ccsdk.sli.plugins.version>0.4.4-SNAPSHOT</ccsdk.sli.plugins.version>
33 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
34 <opendaylight.root>opt/opendaylight</opendaylight.root>
35 <docker.push.phase>deploy</docker.push.phase>
36 <docker.verbose>true</docker.verbose>
37 <ansible.gpg.key>93C4A3FD7BB9C367</ansible.gpg.key>
38 <odl.features.extra>odl-restconf-all,odl-mdsal-all,odl-mdsal-apidocs, odl-daexim-all,odl-restconf-nb-rfc8040</odl.features.extra>
39 <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>
40 <odl.boot.features.extra>${odl.features.extra},${ccsdk.odl.features}</odl.boot.features.extra>
45 <groupId>${project.groupId}</groupId>
46 <artifactId>dependencies</artifactId>
47 <version>${project.version}</version>
48 <classifier>repo</classifier>
53 <groupId>org.onap.ccsdk.sli.core</groupId>
54 <artifactId>dblib-installer</artifactId>
55 <version>${ccsdk.sli.core.version}</version>
56 <classifier>repo</classifier>
60 <groupId>org.onap.ccsdk.sli.core</groupId>
61 <artifactId>filters-installer</artifactId>
62 <version>${ccsdk.sli.core.version}</version>
63 <classifier>repo</classifier>
67 <groupId>org.onap.ccsdk.sli.core</groupId>
68 <artifactId>sli-installer</artifactId>
69 <version>${ccsdk.sli.core.version}</version>
70 <classifier>repo</classifier>
74 <groupId>org.onap.ccsdk.sli.core</groupId>
75 <artifactId>sliapi-installer</artifactId>
76 <version>${ccsdk.sli.core.version}</version>
77 <classifier>repo</classifier>
81 <groupId>org.onap.ccsdk.sli.core</groupId>
82 <artifactId>sliPluginUtils-installer</artifactId>
83 <version>${ccsdk.sli.core.version}</version>
84 <classifier>repo</classifier>
88 <groupId>org.onap.ccsdk.sli.core</groupId>
89 <artifactId>utils-installer</artifactId>
90 <version>${ccsdk.sli.core.version}</version>
91 <classifier>repo</classifier>
95 <groupId>org.onap.ccsdk.sli.core</groupId>
96 <artifactId>slicore-features-installer</artifactId>
97 <version>${ccsdk.sli.core.version}</version>
98 <classifier>repo</classifier>
102 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
103 <artifactId>aai-service-installer</artifactId>
104 <version>${ccsdk.sli.adaptors.version}</version>
105 <classifier>repo</classifier>
109 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
110 <artifactId>ansible-adapter-installer</artifactId>
111 <version>${ccsdk.sli.adaptors.version}</version>
112 <classifier>repo</classifier>
116 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
117 <artifactId>grpc-client-installer</artifactId>
118 <version>${ccsdk.sli.adaptors.version}</version>
119 <classifier>repo</classifier>
123 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
124 <artifactId>mdsal-resource-installer</artifactId>
125 <version>${ccsdk.sli.adaptors.version}</version>
126 <classifier>repo</classifier>
130 <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId>
131 <artifactId>publisher.installer</artifactId>
132 <version>${ccsdk.sli.adaptors.version}</version>
133 <classifier>repo</classifier>
137 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
138 <artifactId>netbox-client-installer</artifactId>
139 <version>${ccsdk.sli.adaptors.version}</version>
140 <classifier>repo</classifier>
144 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
145 <artifactId>resource-assignment-installer</artifactId>
146 <version>${ccsdk.sli.adaptors.version}</version>
147 <classifier>repo</classifier>
151 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
152 <artifactId>saltstack-adapter-installer</artifactId>
153 <version>${ccsdk.sli.adaptors.version}</version>
154 <classifier>repo</classifier>
158 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
159 <artifactId>sql-resource-installer</artifactId>
160 <version>${ccsdk.sli.adaptors.version}</version>
161 <classifier>repo</classifier>
165 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
166 <artifactId>sliadaptors-features-installer</artifactId>
167 <version>${ccsdk.sli.adaptors.version}</version>
168 <classifier>repo</classifier>
172 <groupId>org.onap.ccsdk.sli.northbound</groupId>
173 <artifactId>asdcApi-installer</artifactId>
174 <version>${ccsdk.sli.northbound.version}</version>
175 <classifier>repo</classifier>
179 <groupId>org.onap.ccsdk.sli.northbound</groupId>
180 <artifactId>dataChange-installer</artifactId>
181 <version>${ccsdk.sli.northbound.version}</version>
182 <classifier>repo</classifier>
186 <groupId>org.onap.ccsdk.sli.northbound</groupId>
187 <artifactId>lcm-installer</artifactId>
188 <version>${ccsdk.sli.northbound.version}</version>
189 <classifier>repo</classifier>
193 <groupId>org.onap.ccsdk.sli.northbound</groupId>
194 <artifactId>slinorthbound-features-installer</artifactId>
195 <version>${ccsdk.sli.northbound.version}</version>
196 <classifier>repo</classifier>
200 <groupId>org.onap.ccsdk.sli.plugins</groupId>
201 <artifactId>properties-node-installer</artifactId>
202 <version>${ccsdk.sli.plugins.version}</version>
203 <classifier>repo</classifier>
207 <groupId>org.onap.ccsdk.sli.plugins</groupId>
208 <artifactId>restapi-call-node-installer</artifactId>
209 <version>${ccsdk.sli.plugins.version}</version>
210 <classifier>repo</classifier>
214 <groupId>org.onap.ccsdk.sli.plugins</groupId>
215 <artifactId>template-node-installer</artifactId>
216 <version>${ccsdk.sli.plugins.version}</version>
217 <classifier>repo</classifier>
221 <groupId>org.onap.ccsdk.sli.plugins</groupId>
222 <artifactId>restconf-client-installer</artifactId>
223 <version>${ccsdk.sli.plugins.version}</version>
224 <classifier>repo</classifier>
228 <groupId>org.onap.ccsdk.sli.plugins</groupId>
229 <artifactId>sshapi-call-node-installer</artifactId>
230 <version>${ccsdk.sli.plugins.version}</version>
231 <classifier>repo</classifier>
235 <groupId>org.onap.ccsdk.sli.plugins</groupId>
236 <artifactId>sliplugins-features-installer</artifactId>
237 <version>${ccsdk.sli.plugins.version}</version>
238 <classifier>repo</classifier>
242 <groupId>org.onap.ccsdk.features</groupId>
243 <artifactId>features-installer</artifactId>
244 <version>${ccsdk.features.version}</version>
245 <classifier>repo</classifier>
249 <groupId>org.onap.ccsdk.features</groupId>
250 <artifactId>blueprints-processor-installer</artifactId>
251 <version>${ccsdk.features.version}</version>
252 <classifier>repo</classifier>
256 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
257 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
258 <version>${ccsdk.features.version}</version>
259 <classifier>repo</classifier>
263 <groupId>org.onap.ccsdk.features</groupId>
264 <artifactId>aafshiro-installer</artifactId>
265 <version>${ccsdk.features.version}</version>
266 <classifier>repo</classifier>
270 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
271 <artifactId>sdnr-northbound-features-installer</artifactId>
272 <version>${ccsdk.features.version}</version>
273 <classifier>repo</classifier>
277 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
278 <artifactId>oofpcipoc-installer</artifactId>
279 <version>${ccsdk.features.version}</version>
280 <classifier>repo</classifier>
288 <!-- this extension is required by wagon in order to pass the proxy -->
289 <groupId>org.apache.maven.wagon</groupId>
290 <artifactId>wagon-http-lightweight</artifactId>
291 <version>2.2</version>
298 <groupId>org.codehaus.groovy.maven</groupId>
299 <artifactId>gmaven-plugin</artifactId>
302 <phase>validate</phase>
307 <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
316 <artifactId>maven-resources-plugin</artifactId>
317 <version>2.6</version>
320 <id>copy-dockerfile</id>
322 <goal>copy-resources</goal>
323 </goals><!-- here the phase you need -->
324 <phase>validate</phase>
326 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
329 <directory>src/main/docker</directory>
331 <include>Dockerfile</include>
333 <filtering>true</filtering>
340 <id>copy-scripts</id>
342 <goal>copy-resources</goal>
343 </goals><!-- here the phase you need -->
344 <phase>validate</phase>
346 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
349 <directory>../src/main/scripts</directory>
351 <include>*.sh</include>
353 <filtering>false</filtering>
360 <id>copy-odl-resources</id>
362 <goal>copy-resources</goal>
363 </goals><!-- here the phase you need -->
364 <phase>validate</phase>
366 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
369 <directory>../src/main/resources</directory>
371 <include>idmlight.db.mv.db</include>
372 <include>org.ops4j.pax.logging.cfg</include>
373 <include>install_ccsdk.yml</include>
374 <include>ansible-sources.list</include>
376 <filtering>false</filtering>
384 <goal>copy-resources</goal>
385 </goals><!-- here the phase you need -->
386 <phase>validate</phase>
388 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
391 <directory>../src/main/resources</directory>
393 <include>org.ops4j.pax.logging.cfg</include>
395 <filtering>false</filtering>
403 <goal>copy-resources</goal>
404 </goals><!-- here the phase you need -->
405 <phase>validate</phase>
407 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
410 <directory>../src/main/resources</directory>
412 <include>*.dump</include>
414 <filtering>false</filtering>
420 <id>copy-properties</id>
422 <goal>copy-resources</goal>
423 </goals><!-- here the phase you need -->
424 <phase>validate</phase>
426 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
429 <directory>../src/main/properties</directory>
431 <include>*.properties</include>
433 <filtering>false</filtering>
439 <id>copy-keystores</id>
441 <goal>copy-resources</goal>
442 </goals><!-- here the phase you need -->
443 <phase>validate</phase>
445 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
448 <directory>../src/main/stores</directory>
450 <include>*.jks</include>
452 <filtering>false</filtering>
460 <groupId>org.apache.maven.plugins</groupId>
461 <artifactId>maven-dependency-plugin</artifactId>
462 <version>3.0.2</version>
465 <id>unpack features</id>
466 <phase>generate-sources</phase>
468 <goal>unpack-dependencies</goal>
471 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
472 <excludeTransitive>true</excludeTransitive>
477 <phase>generate-sources</phase>
482 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
485 <groupId>${project.groupId}</groupId>
486 <artifactId>platform-logic-installer</artifactId>
487 <version>${project.version}</version>
496 <groupId>org.codehaus.mojo</groupId>
497 <artifactId>exec-maven-plugin</artifactId>
498 <version>1.5.0</version>
502 <id>change shell permissions</id>
503 <phase>process-sources</phase>
508 <executable>/usr/bin/find</executable>
510 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
511 <argument>-name</argument>
512 <argument>*.sh</argument>
513 <argument>-exec</argument>
514 <argument>chmod</argument>
515 <argument>+x</argument>
516 <argument>{}</argument>
517 <argument>;</argument>
534 <groupId>io.fabric8</groupId>
535 <artifactId>docker-maven-plugin</artifactId>
536 <version>0.16.5</version>
537 <inherited>false</inherited>
541 <name>${image.name}</name>
543 <cleanup>try</cleanup>
544 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
545 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
547 <tag>${project.docker.latestminortag.version}</tag>
548 <tag>${project.docker.latestfulltag.version}</tag>
549 <tag>${project.docker.latesttagtimestamp.version}</tag>
557 <id>generate-images</id>
558 <phase>package</phase>
566 <phase>${docker.push.phase}</phase>