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.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
8 <version>2.0.0-SNAPSHOT</version>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-sdnc</artifactId>
13 <version>2.0.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates SDN Controller Docker container</description>
23 <image.name>onap/sdnc-aaf-image</image.name>
24 <standalone.image.name>onap/sdnc-image</standalone.image.name>
25 <sdnc.project.version>${project.version}</sdnc.project.version>
26 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
27 <sdnc.northbound.version>2.0.0</sdnc.northbound.version>
28 <ccsdk.docker.version>1.0.0-STAGING-latest</ccsdk.docker.version>
29 <ccsdk.features.version>1.0.0</ccsdk.features.version>
30 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
31 <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
32 <sdnc.secureport>8443</sdnc.secureport>
33 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
34 <docker.push.phase>deploy</docker.push.phase>
35 <docker.verbose>true</docker.verbose>
36 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
41 <groupId>org.onap.sdnc.northbound</groupId>
42 <artifactId>generic-resource-api-installer</artifactId>
43 <version>${sdnc.northbound.version}</version>
45 <classifier>repo</classifier>
48 <groupId>org.onap.sdnc.northbound</groupId>
49 <artifactId>vnfapi-installer</artifactId>
50 <version>${sdnc.northbound.version}</version>
52 <classifier>repo</classifier>
55 <groupId>org.onap.sdnc.northbound</groupId>
56 <artifactId>optical-service-installer</artifactId>
57 <version>${sdnc.northbound.version}</version>
59 <classifier>repo</classifier>
62 <groupId>org.onap.sdnc.northbound</groupId>
63 <artifactId>vnftools-installer</artifactId>
64 <version>${sdnc.northbound.version}</version>
66 <classifier>repo</classifier>
69 <groupId>org.onap.sdnc.northbound</groupId>
70 <artifactId>sdnc-northbound-features-installer</artifactId>
71 <version>${sdnc.northbound.version}</version>
73 <classifier>repo</classifier>
77 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
78 <artifactId>oofpcipoc-installer</artifactId>
79 <version>${ccsdk.features.version}</version>
81 <classifier>repo</classifier>
85 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
86 <artifactId>sdnr-northbound-features-installer</artifactId>
87 <version>${ccsdk.features.version}</version>
89 <classifier>repo</classifier>
92 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
93 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
94 <version>${ccsdk.features.version}</version>
96 <classifier>repo</classifier>
105 <groupId>org.codehaus.groovy.maven</groupId>
106 <artifactId>gmaven-plugin</artifactId>
109 <phase>validate</phase>
114 <source>${basedir}/../TagVersion.groovy</source>
121 <groupId>io.fabric8</groupId>
122 <artifactId>docker-maven-plugin</artifactId>
123 <version>0.28.0</version>
124 <inherited>false</inherited>
127 <id>generate-images</id>
128 <phase>package</phase>
135 <name>${image.name}</name>
137 <cleanup>try</cleanup>
138 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
139 <dockerFile>Dockerfile</dockerFile>
141 <tag>${project.docker.latestminortag.version}</tag>
142 <tag>${project.docker.latestfulltag.version}</tag>
143 <tag>${project.docker.latesttagtimestamp.version}</tag>
152 <phase>${docker.push.phase}</phase>
160 <name>${image.name}</name>
162 <cleanup>try</cleanup>
163 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
164 <dockerFile>Dockerfile</dockerFile>
166 <tag>${project.docker.latestminortag.version}</tag>
167 <tag>${project.docker.latestfulltag.version}</tag>
168 <tag>${project.docker.latesttagtimestamp.version}</tag>
176 <id>generate-standalone-images</id>
177 <phase>package</phase>
184 <name>${standalone.image.name}</name>
186 <cleanup>try</cleanup>
187 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
188 <dockerFile>standalone.Dockerfile</dockerFile>
190 <tag>${project.docker.latestminortag.version}</tag>
191 <tag>${project.docker.latestfulltag.version}</tag>
192 <tag>${project.docker.latesttagtimestamp.version}</tag>
200 <id>push-standalone-images</id>
201 <phase>${docker.push.phase}</phase>
209 <name>${standalone.image.name}</name>
211 <cleanup>try</cleanup>
212 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
213 <dockerFile>standalone.Dockerfile</dockerFile>
215 <tag>${project.docker.latestminortag.version}</tag>
216 <tag>${project.docker.latestfulltag.version}</tag>
217 <tag>${project.docker.latesttagtimestamp.version}</tag>
227 <artifactId>maven-resources-plugin</artifactId>
228 <version>2.6</version>
231 <id>copy-dockerfile</id>
233 <goal>copy-resources</goal>
234 </goals><!-- here the phase you need -->
235 <phase>validate</phase>
237 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
240 <directory>src/main/docker</directory>
242 <include>Dockerfile</include>
243 <include>standalone.Dockerfile</include>
245 <filtering>true</filtering>
251 <id>copy-scripts</id>
253 <goal>copy-resources</goal>
254 </goals><!-- here the phase you need -->
255 <phase>validate</phase>
257 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
260 <directory>src/main/scripts</directory>
262 <include>*.py</include>
263 <include>*.sh</include>
265 <filtering>false</filtering>
271 <id>copy-tarballs</id>
273 <goal>copy-resources</goal>
274 </goals><!-- here the phase you need -->
275 <phase>validate</phase>
277 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
280 <directory>src/main/resources</directory>
282 <include>idmlight.db.mv.db</include>
283 <include>truststoreONAPall.jks</include>
284 <include>aaa-app-config.xml</include>
286 <filtering>false</filtering>
294 <goal>copy-resources</goal>
295 </goals><!-- here the phase you need -->
296 <phase>validate</phase>
298 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
301 <directory>src/main/resources</directory>
303 <include>*.dump</include>
305 <filtering>false</filtering>
311 <id>copy-properties</id>
313 <goal>copy-resources</goal>
314 </goals><!-- here the phase you need -->
315 <phase>validate</phase>
317 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
320 <directory>../src/main/properties</directory>
322 <include>*.properties</include>
323 <include>*.props</include>
324 <include>*.csv</include>
326 <filtering>false</filtering>
332 <id>copy-keystores</id>
334 <goal>copy-resources</goal>
335 </goals><!-- here the phase you need -->
336 <phase>validate</phase>
338 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
341 <directory>../src/main/stores</directory>
343 <include>*.jks</include>
344 <include>*.keyfile</include>
345 <include>*.p12</include>
347 <filtering>false</filtering>
355 <groupId>org.apache.maven.plugins</groupId>
356 <artifactId>maven-dependency-plugin</artifactId>
357 <version>3.0.2</version>
360 <id>unpack sdnc features</id>
361 <phase>generate-sources</phase>
363 <goal>unpack-dependencies</goal>
366 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
367 <excludeTransitive>true</excludeTransitive>
372 <phase>generate-sources</phase>
377 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
380 <groupId>${project.groupId}</groupId>
381 <artifactId>platform-logic-installer</artifactId>
382 <version>${project.version}</version>
389 <id>unpack migration utility</id>
390 <phase>generate-sources</phase>
395 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
398 <groupId>org.onap.sdnc.oam</groupId>
399 <artifactId>data-migrator</artifactId>
400 <version>${project.version}</version>
409 <groupId>org.codehaus.mojo</groupId>
410 <artifactId>exec-maven-plugin</artifactId>
411 <version>1.5.0</version>
414 <id>change shell permissions</id>
415 <phase>process-sources</phase>
420 <executable>/usr/bin/find</executable>
422 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
423 <argument>-name</argument>
424 <argument>*.sh</argument>
425 <argument>-exec</argument>
426 <argument>chmod</argument>
427 <argument>+x</argument>
428 <argument>{}</argument>
429 <argument>;</argument>