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.3.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>1.6.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.6.0-SNAPSHOT</sdnc.northbound.version>
25 <ccsdk.docker.version>0.5.0-STAGING-latest</ccsdk.docker.version>
26 <ccsdk.features.version>0.5.0-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>
82 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
83 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
84 <version>${ccsdk.features.version}</version>
85 <classifier>repo</classifier>
95 <groupId>org.codehaus.groovy.maven</groupId>
96 <artifactId>gmaven-plugin</artifactId>
99 <phase>validate</phase>
104 <source>${basedir}/../TagVersion.groovy</source>
111 <groupId>io.fabric8</groupId>
112 <artifactId>docker-maven-plugin</artifactId>
113 <version>0.28.0</version>
114 <inherited>false</inherited>
117 <id>generate-images</id>
118 <phase>package</phase>
125 <name>${image.name}</name>
127 <cleanup>try</cleanup>
128 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
129 <dockerFile>Dockerfile</dockerFile>
131 <tag>${project.docker.latestminortag.version}</tag>
132 <tag>${project.docker.latestfulltag.version}</tag>
133 <tag>${project.docker.latesttagtimestamp.version}</tag>
142 <phase>${docker.push.phase}</phase>
150 <name>${image.name}</name>
152 <cleanup>try</cleanup>
153 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
154 <dockerFile>Dockerfile</dockerFile>
156 <tag>${project.docker.latestminortag.version}</tag>
157 <tag>${project.docker.latestfulltag.version}</tag>
158 <tag>${project.docker.latesttagtimestamp.version}</tag>
166 <id>generate-standalone-images</id>
167 <phase>package</phase>
174 <name>${standalone.image.name}</name>
176 <cleanup>try</cleanup>
177 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
178 <dockerFile>standalone.Dockerfile</dockerFile>
180 <tag>${project.docker.latestminortag.version}</tag>
181 <tag>${project.docker.latestfulltag.version}</tag>
182 <tag>${project.docker.latesttagtimestamp.version}</tag>
190 <id>push-standalone-images</id>
191 <phase>${docker.push.phase}</phase>
199 <name>${standalone.image.name}</name>
201 <cleanup>try</cleanup>
202 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
203 <dockerFile>standalone.Dockerfile</dockerFile>
205 <tag>${project.docker.latestminortag.version}</tag>
206 <tag>${project.docker.latestfulltag.version}</tag>
207 <tag>${project.docker.latesttagtimestamp.version}</tag>
217 <artifactId>maven-resources-plugin</artifactId>
218 <version>2.6</version>
221 <id>copy-dockerfile</id>
223 <goal>copy-resources</goal>
224 </goals><!-- here the phase you need -->
225 <phase>validate</phase>
227 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
230 <directory>src/main/docker</directory>
232 <include>Dockerfile</include>
233 <include>standalone.Dockerfile</include>
235 <filtering>true</filtering>
241 <id>copy-scripts</id>
243 <goal>copy-resources</goal>
244 </goals><!-- here the phase you need -->
245 <phase>validate</phase>
247 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
250 <directory>src/main/scripts</directory>
252 <include>*.py</include>
253 <include>*.sh</include>
255 <filtering>false</filtering>
261 <id>copy-tarballs</id>
263 <goal>copy-resources</goal>
264 </goals><!-- here the phase you need -->
265 <phase>validate</phase>
267 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
270 <directory>src/main/resources</directory>
272 <include>idmlight.db.mv.db</include>
273 <include>truststoreONAPall.jks</include>
274 <include>aaa-app-config.xml</include>
276 <filtering>false</filtering>
284 <goal>copy-resources</goal>
285 </goals><!-- here the phase you need -->
286 <phase>validate</phase>
288 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
291 <directory>src/main/resources</directory>
293 <include>*.dump</include>
295 <filtering>false</filtering>
301 <id>copy-properties</id>
303 <goal>copy-resources</goal>
304 </goals><!-- here the phase you need -->
305 <phase>validate</phase>
307 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
310 <directory>../src/main/properties</directory>
312 <include>*.properties</include>
313 <include>*.props</include>
314 <include>*.csv</include>
316 <filtering>false</filtering>
322 <id>copy-keystores</id>
324 <goal>copy-resources</goal>
325 </goals><!-- here the phase you need -->
326 <phase>validate</phase>
328 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
331 <directory>../src/main/stores</directory>
333 <include>*.jks</include>
334 <include>*.keyfile</include>
335 <include>*.p12</include>
337 <filtering>false</filtering>
345 <groupId>org.apache.maven.plugins</groupId>
346 <artifactId>maven-dependency-plugin</artifactId>
347 <version>3.0.2</version>
350 <id>unpack sdnc features</id>
351 <phase>generate-sources</phase>
353 <goal>unpack-dependencies</goal>
356 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
357 <excludeTransitive>true</excludeTransitive>
362 <phase>generate-sources</phase>
367 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
370 <groupId>${project.groupId}</groupId>
371 <artifactId>platform-logic-installer</artifactId>
372 <version>${project.version}</version>
379 <id>unpack migration utility</id>
380 <phase>generate-sources</phase>
385 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
388 <groupId>org.onap.sdnc.oam</groupId>
389 <artifactId>data-migrator</artifactId>
390 <version>${project.version}</version>
399 <artifactId>exec-maven-plugin</artifactId>
400 <groupId>org.codehaus.mojo</groupId>
401 <version>1.5.0</version>
404 <id>change shell permissions</id>
405 <phase>process-sources</phase>
410 <executable>/usr/bin/find</executable>
412 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
413 <argument>-name</argument>
414 <argument>*.sh</argument>
415 <argument>-exec</argument>
416 <argument>chmod</argument>
417 <argument>+x</argument>
418 <argument>{}</argument>
419 <argument>;</argument>