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.5.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.8.2-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.1</sdnc.northbound.version>
25 <ccsdk.docker.version>0.7.3</ccsdk.docker.version>
26 <ccsdk.features.version>0.7.4</ccsdk.features.version>
27 <ccsdk.features.sdnr.wt.version>0.7.3</ccsdk.features.sdnr.wt.version>
28 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
29 <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
30 <sdnc.secureport>8443</sdnc.secureport>
31 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
32 <docker.push.phase>deploy</docker.push.phase>
33 <docker.verbose>true</docker.verbose>
34 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
39 <groupId>org.onap.sdnc.northbound</groupId>
40 <artifactId>generic-resource-api-installer</artifactId>
41 <version>${sdnc.northbound.version}</version>
42 <classifier>repo</classifier>
46 <groupId>org.onap.sdnc.northbound</groupId>
47 <artifactId>vnfapi-installer</artifactId>
48 <version>${sdnc.northbound.version}</version>
49 <classifier>repo</classifier>
53 <groupId>org.onap.sdnc.northbound</groupId>
54 <artifactId>optical-service-installer</artifactId>
55 <version>${sdnc.northbound.version}</version>
56 <classifier>repo</classifier>
60 <groupId>org.onap.sdnc.northbound</groupId>
61 <artifactId>vnftools-installer</artifactId>
62 <version>${sdnc.northbound.version}</version>
63 <classifier>repo</classifier>
67 <groupId>org.onap.sdnc.northbound</groupId>
68 <artifactId>sdnc-northbound-features-installer</artifactId>
69 <version>${sdnc.northbound.version}</version>
70 <classifier>repo</classifier>
75 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
76 <artifactId>oofpcipoc-installer</artifactId>
77 <version>${ccsdk.features.version}</version>
78 <classifier>repo</classifier>
83 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
84 <artifactId>sdnr-northbound-features-installer</artifactId>
85 <version>${ccsdk.features.version}</version>
86 <classifier>repo</classifier>
90 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
91 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
92 <version>${ccsdk.features.sdnr.wt.version}</version>
93 <classifier>repo</classifier>
103 <groupId>org.codehaus.groovy.maven</groupId>
104 <artifactId>gmaven-plugin</artifactId>
107 <phase>validate</phase>
112 <source>${basedir}/../TagVersion.groovy</source>
119 <groupId>io.fabric8</groupId>
120 <artifactId>docker-maven-plugin</artifactId>
121 <version>0.28.0</version>
122 <inherited>false</inherited>
125 <id>generate-images</id>
126 <phase>package</phase>
133 <name>${image.name}</name>
135 <cleanup>try</cleanup>
136 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
137 <dockerFile>Dockerfile</dockerFile>
139 <tag>${project.docker.latestminortag.version}</tag>
140 <tag>${project.docker.latestfulltag.version}</tag>
141 <tag>${project.docker.latesttagtimestamp.version}</tag>
150 <phase>${docker.push.phase}</phase>
158 <name>${image.name}</name>
160 <cleanup>try</cleanup>
161 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
162 <dockerFile>Dockerfile</dockerFile>
164 <tag>${project.docker.latestminortag.version}</tag>
165 <tag>${project.docker.latestfulltag.version}</tag>
166 <tag>${project.docker.latesttagtimestamp.version}</tag>
174 <id>generate-standalone-images</id>
175 <phase>package</phase>
182 <name>${standalone.image.name}</name>
184 <cleanup>try</cleanup>
185 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
186 <dockerFile>standalone.Dockerfile</dockerFile>
188 <tag>${project.docker.latestminortag.version}</tag>
189 <tag>${project.docker.latestfulltag.version}</tag>
190 <tag>${project.docker.latesttagtimestamp.version}</tag>
198 <id>push-standalone-images</id>
199 <phase>${docker.push.phase}</phase>
207 <name>${standalone.image.name}</name>
209 <cleanup>try</cleanup>
210 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
211 <dockerFile>standalone.Dockerfile</dockerFile>
213 <tag>${project.docker.latestminortag.version}</tag>
214 <tag>${project.docker.latestfulltag.version}</tag>
215 <tag>${project.docker.latesttagtimestamp.version}</tag>
225 <artifactId>maven-resources-plugin</artifactId>
226 <version>2.6</version>
229 <id>copy-dockerfile</id>
231 <goal>copy-resources</goal>
232 </goals><!-- here the phase you need -->
233 <phase>validate</phase>
235 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
238 <directory>src/main/docker</directory>
240 <include>Dockerfile</include>
241 <include>standalone.Dockerfile</include>
243 <filtering>true</filtering>
249 <id>copy-scripts</id>
251 <goal>copy-resources</goal>
252 </goals><!-- here the phase you need -->
253 <phase>validate</phase>
255 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
258 <directory>src/main/scripts</directory>
260 <include>*.py</include>
261 <include>*.sh</include>
263 <filtering>false</filtering>
269 <id>copy-tarballs</id>
271 <goal>copy-resources</goal>
272 </goals><!-- here the phase you need -->
273 <phase>validate</phase>
275 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
278 <directory>src/main/resources</directory>
280 <include>idmlight.db.mv.db</include>
281 <include>truststoreONAPall.jks</include>
282 <include>aaa-app-config.xml</include>
284 <filtering>false</filtering>
292 <goal>copy-resources</goal>
293 </goals><!-- here the phase you need -->
294 <phase>validate</phase>
296 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
299 <directory>src/main/resources</directory>
301 <include>*.dump</include>
303 <filtering>false</filtering>
309 <id>copy-properties</id>
311 <goal>copy-resources</goal>
312 </goals><!-- here the phase you need -->
313 <phase>validate</phase>
315 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
318 <directory>../src/main/properties</directory>
320 <include>*.properties</include>
321 <include>*.props</include>
322 <include>*.csv</include>
324 <filtering>false</filtering>
330 <id>copy-keystores</id>
332 <goal>copy-resources</goal>
333 </goals><!-- here the phase you need -->
334 <phase>validate</phase>
336 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
339 <directory>../src/main/stores</directory>
341 <include>*.jks</include>
342 <include>*.keyfile</include>
343 <include>*.p12</include>
345 <filtering>false</filtering>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-dependency-plugin</artifactId>
355 <version>3.0.2</version>
358 <id>unpack sdnc features</id>
359 <phase>generate-sources</phase>
361 <goal>unpack-dependencies</goal>
364 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
365 <excludeTransitive>true</excludeTransitive>
370 <phase>generate-sources</phase>
375 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
378 <groupId>${project.groupId}</groupId>
379 <artifactId>platform-logic-installer</artifactId>
380 <version>${project.version}</version>
387 <id>unpack migration utility</id>
388 <phase>generate-sources</phase>
393 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
396 <groupId>org.onap.sdnc.oam</groupId>
397 <artifactId>data-migrator</artifactId>
398 <version>${project.version}</version>
407 <artifactId>exec-maven-plugin</artifactId>
408 <groupId>org.codehaus.mojo</groupId>
409 <version>1.5.0</version>
412 <id>change shell permissions</id>
413 <phase>process-sources</phase>
418 <executable>/usr/bin/find</executable>
420 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
421 <argument>-name</argument>
422 <argument>*.sh</argument>
423 <argument>-exec</argument>
424 <argument>chmod</argument>
425 <argument>+x</argument>
426 <argument>{}</argument>
427 <argument>;</argument>