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.2.0-SNAPSHOT</version>
11 <artifactId>installation-sdnc</artifactId>
12 <packaging>pom</packaging>
14 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
15 <description>Creates SDN Controller Docker container</description>
21 <image.name>onap/sdnc-aaf-image</image.name>
22 <standalone.image.name>onap/sdnc-image</standalone.image.name>
23 <ccsdk.docker.version>${ccsdk.docker.odlsli.alpine.version}</ccsdk.docker.version>
24 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
25 <sdnc.keypass><![CDATA[;:G58,7ZhqOSI:7^oZCY[9Dv]]></sdnc.keypass>
26 <sdnc.secureport>8443</sdnc.secureport>
28 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
29 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
31 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
32 <docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks>
37 <groupId>org.onap.sdnc.northbound</groupId>
38 <artifactId>generic-resource-api-installer</artifactId>
39 <version>${sdnc.northbound.version}</version>
41 <classifier>repo</classifier>
44 <groupId>org.onap.sdnc.northbound</groupId>
45 <artifactId>optical-service-installer</artifactId>
46 <version>${sdnc.northbound.version}</version>
48 <classifier>repo</classifier>
51 <groupId>org.onap.sdnc.northbound</groupId>
52 <artifactId>vnftools-installer</artifactId>
53 <version>${sdnc.northbound.version}</version>
55 <classifier>repo</classifier>
58 <groupId>org.onap.sdnc.northbound</groupId>
59 <artifactId>sdnc-northbound-features-installer</artifactId>
60 <version>${sdnc.northbound.version}</version>
62 <classifier>repo</classifier>
64 <!-- SDNR Related Features : Start -->
66 <groupId>org.onap.ccsdk.features</groupId>
67 <artifactId>features-installer</artifactId>
68 <version>${ccsdk.features.version}</version>
70 <classifier>repo</classifier>
73 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
74 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
75 <version>${ccsdk.features.version}</version>
77 <classifier>repo</classifier>
80 <groupId>org.onap.ccsdk.features</groupId>
81 <artifactId>aafshiro-installer</artifactId>
82 <version>${ccsdk.features.version}</version>
84 <classifier>repo</classifier>
87 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
88 <artifactId>sdnr-northbound-features-installer</artifactId>
89 <version>${ccsdk.features.version}</version>
91 <classifier>repo</classifier>
94 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
95 <artifactId>oofpcipoc-installer</artifactId>
96 <version>${ccsdk.features.version}</version>
98 <classifier>repo</classifier>
101 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
102 <artifactId>CMNotify-installer</artifactId>
103 <version>${ccsdk.features.version}</version>
105 <classifier>repo</classifier>
108 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
109 <artifactId>ranSlice-installer</artifactId>
110 <version>${ccsdk.features.version}</version>
112 <classifier>repo</classifier>
115 <groupId>org.onap.ccsdk.oran</groupId>
116 <artifactId>a1-adapter-northbound-installer</artifactId>
117 <version>${ccsdk.oran.a1adapter.version}</version>
119 <classifier>repo</classifier>
122 <groupId>org.onap.ccsdk.oran</groupId>
123 <artifactId>a1-adapter-installer</artifactId>
124 <version>${ccsdk.oran.a1adapter.version}</version>
126 <classifier>repo</classifier>
128 <!-- SDNR Related Features : End -->
134 <groupId>org.codehaus.groovy.maven</groupId>
135 <artifactId>gmaven-plugin</artifactId>
136 <version>1.0</version>
139 <phase>validate</phase>
144 <source>${basedir}/../TagVersion.groovy</source>
151 <groupId>io.fabric8</groupId>
152 <artifactId>docker-maven-plugin</artifactId>
153 <version>0.34.0</version>
154 <inherited>false</inherited>
158 <name>${image.name}</name>
160 <cleanup>try</cleanup>
161 <noCache>true</noCache>
162 <contextDir>${basedir}/target/docker-stage</contextDir>
163 <dockerFile>Dockerfile</dockerFile>
168 <tag>${project.docker.latestminortag.version}</tag>
169 <tag>${project.docker.latestfulltag.version}</tag>
170 <tag>${project.docker.latesttagtimestamp.version}</tag>
175 <name>${standalone.image.name}</name>
177 <cleanup>try</cleanup>
178 <noCache>true</noCache>
179 <contextDir>${basedir}/target/docker-stage</contextDir>
180 <dockerFile>Dockerfile</dockerFile>
185 <tag>${project.docker.latestminortag.version}</tag>
186 <tag>${project.docker.latestfulltag.version}</tag>
187 <tag>${project.docker.latesttagtimestamp.version}</tag>
192 <verbose>${docker.verbose}</verbose>
193 <skipPush>${docker.skip.push}</skipPush>
197 <id>build-push-images</id>
206 <artifactId>maven-resources-plugin</artifactId>
207 <version>2.6</version>
210 <id>copy-dockerfile</id>
212 <goal>copy-resources</goal>
214 <!-- here the phase you need -->
215 <phase>validate</phase>
217 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
220 <directory>src/main/docker</directory>
222 <include>Dockerfile</include>
224 <filtering>true</filtering>
230 <id>copy-scripts</id>
232 <goal>copy-resources</goal>
234 <!-- here the phase you need -->
235 <phase>validate</phase>
237 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
240 <directory>src/main/scripts</directory>
242 <include>*.py</include>
243 <include>*.sh</include>
245 <filtering>true</filtering>
251 <id>copy-tarballs</id>
253 <goal>copy-resources</goal>
255 <!-- here the phase you need -->
256 <phase>validate</phase>
258 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
261 <directory>src/main/resources</directory>
263 <include>idmlight.db.mv.db</include>
264 <include>truststoreONAPall.jks</include>
265 <include>aaa-app-config.xml</include>
267 <filtering>false</filtering>
275 <goal>copy-resources</goal>
277 <!-- here the phase you need -->
278 <phase>validate</phase>
280 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
283 <directory>src/main/resources</directory>
285 <include>*.dump</include>
286 <include>oauth-aaa-app-config.xml</include>
288 <filtering>false</filtering>
294 <id>copy-properties</id>
296 <goal>copy-resources</goal>
298 <!-- here the phase you need -->
299 <phase>validate</phase>
301 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
304 <directory>../src/main/properties</directory>
306 <include>*.properties</include>
307 <include>*.props</include>
308 <include>*.csv</include>
310 <filtering>false</filtering>
316 <id>copy-keystores</id>
318 <goal>copy-resources</goal>
320 <!-- here the phase you need -->
321 <phase>validate</phase>
323 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
326 <directory>../src/main/stores</directory>
328 <include>*.jks</include>
329 <include>*.keyfile</include>
330 <include>*.p12</include>
332 <filtering>false</filtering>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-dependency-plugin</artifactId>
342 <version>3.0.2</version>
345 <id>unpack-sdnc-features</id>
346 <phase>generate-sources</phase>
348 <goal>unpack-dependencies</goal>
351 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
352 <excludeTransitive>true</excludeTransitive>
356 <id>unpack-platform-logic</id>
357 <phase>generate-sources</phase>
362 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
365 <groupId>${project.groupId}</groupId>
366 <artifactId>platform-logic-installer</artifactId>
367 <version>${project.version}</version>
374 <id>unpack-data-migrator</id>
375 <phase>generate-sources</phase>
380 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
383 <groupId>org.onap.sdnc.oam</groupId>
384 <artifactId>data-migrator</artifactId>
385 <version>${project.version}</version>
394 <groupId>org.apache.maven.plugins</groupId>
395 <artifactId>maven-antrun-plugin</artifactId>
396 <version>1.8</version>
399 <id>change-shell-permissions</id>
400 <phase>process-sources</phase>
403 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
413 <groupId>org.apache.maven.plugins</groupId>
414 <artifactId>maven-failsafe-plugin</artifactId>
418 <goal>integration-test</goal>
424 <skipITs>false</skipITs>
425 <environmentVariables>
426 <SDNC_PORT>${sdnc.port}</SDNC_PORT>
427 </environmentVariables>