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/maven-v4_0_0.xsd">
5 <groupId>org.onap.ccsdk.parent</groupId>
6 <artifactId>odlparent-lite</artifactId>
7 <version>1.2.4</version>
10 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <groupId>org.onap.sdnc.oam</groupId>
13 <artifactId>installation-sdnc</artifactId>
14 <version>1.5.3-SNAPSHOT</version>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates SDN Controller Docker container</description>
20 <image.name>onap/sdnc-aaf-image</image.name>
21 <standalone.image.name>onap/sdnc-image</standalone.image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
23 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
24 <sdnc.northbound.version>1.5.3-SNAPSHOT</sdnc.northbound.version>
25 <ccsdk.docker.version>0.4.4-STAGING-latest</ccsdk.docker.version>
26 <ccsdk.features.version>0.4.4-SNAPSHOT</ccsdk.features.version>
27 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
28 <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
29 <sdnc.secureport>8443</sdnc.secureport>
30 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
31 <docker.push.phase>deploy</docker.push.phase>
32 <docker.verbose>true</docker.verbose>
33 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
38 <groupId>org.onap.sdnc.northbound</groupId>
39 <artifactId>generic-resource-api-installer</artifactId>
40 <version>${sdnc.northbound.version}</version>
41 <classifier>repo</classifier>
45 <groupId>org.onap.sdnc.northbound</groupId>
46 <artifactId>vnfapi-installer</artifactId>
47 <version>${sdnc.northbound.version}</version>
48 <classifier>repo</classifier>
52 <groupId>org.onap.sdnc.northbound</groupId>
53 <artifactId>vnftools-installer</artifactId>
54 <version>${sdnc.northbound.version}</version>
55 <classifier>repo</classifier>
59 <groupId>org.onap.sdnc.northbound</groupId>
60 <artifactId>sdnc-northbound-features-installer</artifactId>
61 <version>${sdnc.northbound.version}</version>
62 <classifier>repo</classifier>
67 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
68 <artifactId>oofpcipoc-installer</artifactId>
69 <version>${ccsdk.features.version}</version>
70 <classifier>repo</classifier>
75 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
76 <artifactId>sdnr-northbound-features-installer</artifactId>
77 <version>${ccsdk.features.version}</version>
78 <classifier>repo</classifier>
88 <groupId>org.codehaus.groovy.maven</groupId>
89 <artifactId>gmaven-plugin</artifactId>
92 <phase>validate</phase>
97 <source>${basedir}/../TagVersion.groovy</source>
104 <groupId>io.fabric8</groupId>
105 <artifactId>docker-maven-plugin</artifactId>
106 <version>0.28.0</version>
107 <inherited>false</inherited>
110 <id>generate-images</id>
111 <phase>package</phase>
118 <name>${image.name}</name>
120 <cleanup>try</cleanup>
121 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
122 <dockerFile>Dockerfile</dockerFile>
124 <tag>${project.docker.latestminortag.version}</tag>
125 <tag>${project.docker.latestfulltag.version}</tag>
126 <tag>${project.docker.latesttagtimestamp.version}</tag>
135 <phase>${docker.push.phase}</phase>
143 <name>${image.name}</name>
145 <cleanup>try</cleanup>
146 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
147 <dockerFile>Dockerfile</dockerFile>
149 <tag>${project.docker.latestminortag.version}</tag>
150 <tag>${project.docker.latestfulltag.version}</tag>
151 <tag>${project.docker.latesttagtimestamp.version}</tag>
159 <id>generate-standalone-images</id>
160 <phase>package</phase>
167 <name>${standalone.image.name}</name>
169 <cleanup>try</cleanup>
170 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
171 <dockerFile>standalone.Dockerfile</dockerFile>
173 <tag>${project.docker.latestminortag.version}</tag>
174 <tag>${project.docker.latestfulltag.version}</tag>
175 <tag>${project.docker.latesttagtimestamp.version}</tag>
183 <id>push-standalone-images</id>
184 <phase>${docker.push.phase}</phase>
192 <name>${standalone.image.name}</name>
194 <cleanup>try</cleanup>
195 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
196 <dockerFile>standalone.Dockerfile</dockerFile>
198 <tag>${project.docker.latestminortag.version}</tag>
199 <tag>${project.docker.latestfulltag.version}</tag>
200 <tag>${project.docker.latesttagtimestamp.version}</tag>
210 <artifactId>maven-resources-plugin</artifactId>
211 <version>2.6</version>
214 <id>copy-dockerfile</id>
216 <goal>copy-resources</goal>
217 </goals><!-- here the phase you need -->
218 <phase>validate</phase>
220 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
223 <directory>src/main/docker</directory>
225 <include>Dockerfile</include>
226 <include>standalone.Dockerfile</include>
228 <filtering>true</filtering>
234 <id>copy-scripts</id>
236 <goal>copy-resources</goal>
237 </goals><!-- here the phase you need -->
238 <phase>validate</phase>
240 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
243 <directory>src/main/scripts</directory>
245 <include>*.py</include>
246 <include>*.sh</include>
248 <filtering>false</filtering>
254 <id>copy-tarballs</id>
256 <goal>copy-resources</goal>
257 </goals><!-- here the phase you need -->
258 <phase>validate</phase>
260 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
263 <directory>src/main/resources</directory>
265 <include>idmlight.db.mv.db</include>
266 <include>truststoreONAPall.jks</include>
267 <include>aaa-app-config.xml</include>
269 <filtering>false</filtering>
277 <goal>copy-resources</goal>
278 </goals><!-- here the phase you need -->
279 <phase>validate</phase>
281 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
284 <directory>src/main/resources</directory>
286 <include>*.dump</include>
288 <filtering>false</filtering>
294 <id>copy-properties</id>
296 <goal>copy-resources</goal>
297 </goals><!-- here the phase you need -->
298 <phase>validate</phase>
300 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
303 <directory>../src/main/properties</directory>
305 <include>*.properties</include>
306 <include>*.props</include>
307 <include>*.csv</include>
309 <filtering>false</filtering>
315 <id>copy-keystores</id>
317 <goal>copy-resources</goal>
318 </goals><!-- here the phase you need -->
319 <phase>validate</phase>
321 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
324 <directory>../src/main/stores</directory>
326 <include>*.jks</include>
327 <include>*.keyfile</include>
328 <include>*.p12</include>
330 <filtering>false</filtering>
338 <groupId>org.apache.maven.plugins</groupId>
339 <artifactId>maven-dependency-plugin</artifactId>
340 <version>3.0.2</version>
343 <id>unpack sdnc features</id>
344 <phase>generate-sources</phase>
346 <goal>unpack-dependencies</goal>
349 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
350 <excludeTransitive>true</excludeTransitive>
355 <phase>generate-sources</phase>
360 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
363 <groupId>${project.groupId}</groupId>
364 <artifactId>platform-logic-installer</artifactId>
365 <version>${project.version}</version>
372 <id>unpack migration utility</id>
373 <phase>generate-sources</phase>
378 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
381 <groupId>org.onap.sdnc.oam</groupId>
382 <artifactId>data-migrator</artifactId>
383 <version>${project.version}</version>
392 <artifactId>exec-maven-plugin</artifactId>
393 <groupId>org.codehaus.mojo</groupId>
394 <version>1.5.0</version>
397 <id>change shell permissions</id>
398 <phase>process-sources</phase>
403 <executable>/usr/bin/find</executable>
405 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
406 <argument>-name</argument>
407 <argument>*.sh</argument>
408 <argument>-exec</argument>
409 <argument>chmod</argument>
410 <argument>+x</argument>
411 <argument>{}</argument>
412 <argument>;</argument>