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.1.7-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>
34 <!-- SDNR Features Boot -->
35 <sdnr.features.boot>ccsdk-features-all</sdnr.features.boot>
37 mvn:org.onap.ccsdk.oran/a1-adapter-northbound/${ccsdk.oran.a1adapter.version}/xml/features,\
38 mvn:org.onap.ccsdk.features/ccsdk-features-all/${ccsdk.features.version}/xml/features,\
39 mvn:org.onap.ccsdk.features.sdnr.northbound/sdnr-northbound-all/${ccsdk.features.version}/xml/features,\
40 mvn:org.onap.ccsdk.features.sdnr.wt/sdnr-wt-feature-aggregator/${ccsdk.features.version}/xml/features,\
41 mvn:org.onap.ccsdk.features.sdnr.wt/sdnr-wt-feature-aggregator-oauth/${ccsdk.features.version}/xml/features,\
42 mvn:org.onap.ccsdk.features.sdnr.wt/sdnr-wt-feature-aggregator-devicemanager/${ccsdk.features.version}/xml/features,\
43 mvn:org.onap.ccsdk.features.sdnr.wt/sdnr-wt-feature-aggregator-devicemanager-base/${ccsdk.features.version}/xml/features
46 <!-- SDNC Features Boot -->
47 <sdnc.features.boot>sdnc-northbound-all</sdnc.features.boot>
49 mvn:org.onap.sdnc.northbound/sdnc-northbound-all/${sdnc.northbound.version}/xml/features
55 <groupId>org.onap.sdnc.northbound</groupId>
56 <artifactId>generic-resource-api-installer</artifactId>
57 <version>${sdnc.northbound.version}</version>
59 <classifier>repo</classifier>
62 <groupId>org.onap.sdnc.northbound</groupId>
63 <artifactId>optical-service-installer</artifactId>
64 <version>${sdnc.northbound.version}</version>
66 <classifier>repo</classifier>
69 <groupId>org.onap.sdnc.northbound</groupId>
70 <artifactId>vnftools-installer</artifactId>
71 <version>${sdnc.northbound.version}</version>
73 <classifier>repo</classifier>
76 <groupId>org.onap.sdnc.northbound</groupId>
77 <artifactId>sdnc-northbound-features-installer</artifactId>
78 <version>${sdnc.northbound.version}</version>
80 <classifier>repo</classifier>
82 <!-- SDNR Related Features : Start -->
84 <groupId>org.onap.ccsdk.features</groupId>
85 <artifactId>features-installer</artifactId>
86 <version>${ccsdk.features.version}</version>
88 <classifier>repo</classifier>
91 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
92 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
93 <version>${ccsdk.features.version}</version>
95 <classifier>repo</classifier>
98 <groupId>org.onap.ccsdk.features</groupId>
99 <artifactId>aafshiro-installer</artifactId>
100 <version>${ccsdk.features.version}</version>
102 <classifier>repo</classifier>
105 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
106 <artifactId>sdnr-northbound-features-installer</artifactId>
107 <version>${ccsdk.features.version}</version>
109 <classifier>repo</classifier>
112 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
113 <artifactId>oofpcipoc-installer</artifactId>
114 <version>${ccsdk.features.version}</version>
116 <classifier>repo</classifier>
119 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
120 <artifactId>CMNotify-installer</artifactId>
121 <version>${ccsdk.features.version}</version>
123 <classifier>repo</classifier>
126 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
127 <artifactId>ranSlice-installer</artifactId>
128 <version>${ccsdk.features.version}</version>
130 <classifier>repo</classifier>
133 <groupId>org.onap.ccsdk.oran</groupId>
134 <artifactId>a1-adapter-northbound-installer</artifactId>
135 <version>${ccsdk.oran.a1adapter.version}</version>
137 <classifier>repo</classifier>
140 <groupId>org.onap.ccsdk.oran</groupId>
141 <artifactId>a1-adapter-installer</artifactId>
142 <version>${ccsdk.oran.a1adapter.version}</version>
144 <classifier>repo</classifier>
146 <!-- SDNR Related Features : End -->
152 <groupId>org.codehaus.groovy.maven</groupId>
153 <artifactId>gmaven-plugin</artifactId>
154 <version>1.0</version>
157 <phase>validate</phase>
162 <source>${basedir}/../TagVersion.groovy</source>
169 <groupId>io.fabric8</groupId>
170 <artifactId>docker-maven-plugin</artifactId>
171 <version>0.34.0</version>
172 <inherited>false</inherited>
176 <name>${image.name}</name>
178 <cleanup>try</cleanup>
179 <noCache>true</noCache>
180 <contextDir>${basedir}/target/docker-stage</contextDir>
181 <dockerFile>Dockerfile</dockerFile>
186 <tag>${project.docker.latestminortag.version}</tag>
187 <tag>${project.docker.latestfulltag.version}</tag>
188 <tag>${project.docker.latesttagtimestamp.version}</tag>
193 <name>${standalone.image.name}</name>
195 <cleanup>try</cleanup>
196 <noCache>true</noCache>
197 <contextDir>${basedir}/target/docker-stage</contextDir>
198 <dockerFile>Dockerfile</dockerFile>
203 <tag>${project.docker.latestminortag.version}</tag>
204 <tag>${project.docker.latestfulltag.version}</tag>
205 <tag>${project.docker.latesttagtimestamp.version}</tag>
210 <verbose>${docker.verbose}</verbose>
211 <skipPush>${docker.skip.push}</skipPush>
215 <id>build-push-images</id>
216 <phase>${docker.push.phase}</phase>
225 <artifactId>maven-resources-plugin</artifactId>
226 <version>2.6</version>
229 <id>copy-dockerfile</id>
231 <goal>copy-resources</goal>
233 <!-- here the phase you need -->
234 <phase>validate</phase>
236 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
239 <directory>src/main/docker</directory>
241 <include>Dockerfile</include>
243 <filtering>true</filtering>
249 <id>copy-scripts</id>
251 <goal>copy-resources</goal>
253 <!-- here the phase you need -->
254 <phase>validate</phase>
256 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
259 <directory>src/main/scripts</directory>
261 <include>*.py</include>
262 <include>*.sh</include>
264 <filtering>true</filtering>
270 <id>copy-tarballs</id>
272 <goal>copy-resources</goal>
274 <!-- 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>
296 <!-- here the phase you need -->
297 <phase>validate</phase>
299 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
302 <directory>src/main/resources</directory>
304 <include>*.dump</include>
305 <include>oauth-aaa-app-config.xml</include>
307 <filtering>false</filtering>
313 <id>copy-properties</id>
315 <goal>copy-resources</goal>
317 <!-- here the phase you need -->
318 <phase>validate</phase>
320 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
323 <directory>../src/main/properties</directory>
325 <include>*.properties</include>
326 <include>*.props</include>
327 <include>*.csv</include>
329 <filtering>false</filtering>
335 <id>copy-keystores</id>
337 <goal>copy-resources</goal>
339 <!-- here the phase you need -->
340 <phase>validate</phase>
342 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
345 <directory>../src/main/stores</directory>
347 <include>*.jks</include>
348 <include>*.keyfile</include>
349 <include>*.p12</include>
351 <filtering>false</filtering>
359 <groupId>org.apache.maven.plugins</groupId>
360 <artifactId>maven-dependency-plugin</artifactId>
361 <version>3.0.2</version>
364 <id>unpack-sdnc-features</id>
365 <phase>generate-sources</phase>
367 <goal>unpack-dependencies</goal>
370 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
371 <excludeTransitive>true</excludeTransitive>
375 <id>unpack-platform-logic</id>
376 <phase>generate-sources</phase>
381 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
384 <groupId>${project.groupId}</groupId>
385 <artifactId>platform-logic-installer</artifactId>
386 <version>${project.version}</version>
393 <id>unpack-data-migrator</id>
394 <phase>generate-sources</phase>
399 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
402 <groupId>org.onap.sdnc.oam</groupId>
403 <artifactId>data-migrator</artifactId>
404 <version>${project.version}</version>
413 <groupId>org.apache.maven.plugins</groupId>
414 <artifactId>maven-antrun-plugin</artifactId>
415 <version>1.8</version>
418 <id>change-shell-permissions</id>
419 <phase>process-sources</phase>
422 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
432 <groupId>org.apache.maven.plugins</groupId>
433 <artifactId>maven-failsafe-plugin</artifactId>
437 <goal>integration-test</goal>
443 <skipITs>false</skipITs>
444 <environmentVariables>
445 <SDNC_PORT>${sdnc.port}</SDNC_PORT>
446 </environmentVariables>