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>2.0.0-SNAPSHOT</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>2.0.0-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.8.0</sdnc.northbound.version>
25 <ccsdk.docker.version>0.7.2</ccsdk.docker.version>
26 <ccsdk.features.version>0.7.2</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>optical-service-installer</artifactId>
54 <version>${sdnc.northbound.version}</version>
55 <classifier>repo</classifier>
59 <groupId>org.onap.sdnc.northbound</groupId>
60 <artifactId>vnftools-installer</artifactId>
61 <version>${sdnc.northbound.version}</version>
62 <classifier>repo</classifier>
66 <groupId>org.onap.sdnc.northbound</groupId>
67 <artifactId>sdnc-northbound-features-installer</artifactId>
68 <version>${sdnc.northbound.version}</version>
69 <classifier>repo</classifier>
74 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
75 <artifactId>oofpcipoc-installer</artifactId>
76 <version>${ccsdk.features.version}</version>
77 <classifier>repo</classifier>
82 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
83 <artifactId>sdnr-northbound-features-installer</artifactId>
84 <version>${ccsdk.features.version}</version>
85 <classifier>repo</classifier>
89 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
90 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
91 <version>${ccsdk.features.version}</version>
92 <classifier>repo</classifier>
102 <groupId>org.codehaus.groovy.maven</groupId>
103 <artifactId>gmaven-plugin</artifactId>
106 <phase>validate</phase>
111 <source>${basedir}/../TagVersion.groovy</source>
118 <groupId>io.fabric8</groupId>
119 <artifactId>docker-maven-plugin</artifactId>
120 <version>0.28.0</version>
121 <inherited>false</inherited>
124 <id>generate-images</id>
125 <phase>package</phase>
132 <name>${image.name}</name>
134 <cleanup>try</cleanup>
135 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
136 <dockerFile>Dockerfile</dockerFile>
138 <tag>${project.docker.latestminortag.version}</tag>
139 <tag>${project.docker.latestfulltag.version}</tag>
140 <tag>${project.docker.latesttagtimestamp.version}</tag>
149 <phase>${docker.push.phase}</phase>
157 <name>${image.name}</name>
159 <cleanup>try</cleanup>
160 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
161 <dockerFile>Dockerfile</dockerFile>
163 <tag>${project.docker.latestminortag.version}</tag>
164 <tag>${project.docker.latestfulltag.version}</tag>
165 <tag>${project.docker.latesttagtimestamp.version}</tag>
173 <id>generate-standalone-images</id>
174 <phase>package</phase>
181 <name>${standalone.image.name}</name>
183 <cleanup>try</cleanup>
184 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
185 <dockerFile>standalone.Dockerfile</dockerFile>
187 <tag>${project.docker.latestminortag.version}</tag>
188 <tag>${project.docker.latestfulltag.version}</tag>
189 <tag>${project.docker.latesttagtimestamp.version}</tag>
197 <id>push-standalone-images</id>
198 <phase>${docker.push.phase}</phase>
206 <name>${standalone.image.name}</name>
208 <cleanup>try</cleanup>
209 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
210 <dockerFile>standalone.Dockerfile</dockerFile>
212 <tag>${project.docker.latestminortag.version}</tag>
213 <tag>${project.docker.latestfulltag.version}</tag>
214 <tag>${project.docker.latesttagtimestamp.version}</tag>
224 <artifactId>maven-resources-plugin</artifactId>
225 <version>2.6</version>
228 <id>copy-dockerfile</id>
230 <goal>copy-resources</goal>
231 </goals><!-- here the phase you need -->
232 <phase>validate</phase>
234 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
237 <directory>src/main/docker</directory>
239 <include>Dockerfile</include>
240 <include>standalone.Dockerfile</include>
242 <filtering>true</filtering>
248 <id>copy-scripts</id>
250 <goal>copy-resources</goal>
251 </goals><!-- here the phase you need -->
252 <phase>validate</phase>
254 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
257 <directory>src/main/scripts</directory>
259 <include>*.py</include>
260 <include>*.sh</include>
262 <filtering>false</filtering>
268 <id>copy-tarballs</id>
270 <goal>copy-resources</goal>
271 </goals><!-- here the phase you need -->
272 <phase>validate</phase>
274 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
277 <directory>src/main/resources</directory>
279 <include>idmlight.db.mv.db</include>
280 <include>truststoreONAPall.jks</include>
281 <include>aaa-app-config.xml</include>
283 <filtering>false</filtering>
291 <goal>copy-resources</goal>
292 </goals><!-- here the phase you need -->
293 <phase>validate</phase>
295 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
298 <directory>src/main/resources</directory>
300 <include>*.dump</include>
302 <filtering>false</filtering>
308 <id>copy-properties</id>
310 <goal>copy-resources</goal>
311 </goals><!-- here the phase you need -->
312 <phase>validate</phase>
314 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
317 <directory>../src/main/properties</directory>
319 <include>*.properties</include>
320 <include>*.props</include>
321 <include>*.csv</include>
323 <filtering>false</filtering>
329 <id>copy-keystores</id>
331 <goal>copy-resources</goal>
332 </goals><!-- here the phase you need -->
333 <phase>validate</phase>
335 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
338 <directory>../src/main/stores</directory>
340 <include>*.jks</include>
341 <include>*.keyfile</include>
342 <include>*.p12</include>
344 <filtering>false</filtering>
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-dependency-plugin</artifactId>
354 <version>3.0.2</version>
357 <id>unpack sdnc features</id>
358 <phase>generate-sources</phase>
360 <goal>unpack-dependencies</goal>
363 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
364 <excludeTransitive>true</excludeTransitive>
369 <phase>generate-sources</phase>
374 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
377 <groupId>${project.groupId}</groupId>
378 <artifactId>platform-logic-installer</artifactId>
379 <version>${project.version}</version>
386 <id>unpack migration utility</id>
387 <phase>generate-sources</phase>
392 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
395 <groupId>org.onap.sdnc.oam</groupId>
396 <artifactId>data-migrator</artifactId>
397 <version>${project.version}</version>
406 <artifactId>exec-maven-plugin</artifactId>
407 <groupId>org.codehaus.mojo</groupId>
408 <version>1.5.0</version>
411 <id>change shell permissions</id>
412 <phase>process-sources</phase>
417 <executable>/usr/bin/find</executable>
419 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
420 <argument>-name</argument>
421 <argument>*.sh</argument>
422 <argument>-exec</argument>
423 <argument>chmod</argument>
424 <argument>+x</argument>
425 <argument>{}</argument>
426 <argument>;</argument>