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>
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>
198 <phase>${docker.push.phase}</phase>
207 <artifactId>maven-resources-plugin</artifactId>
208 <version>2.6</version>
211 <id>copy-dockerfile</id>
213 <goal>copy-resources</goal>
215 <!-- here the phase you need -->
216 <phase>validate</phase>
218 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
221 <directory>src/main/docker</directory>
223 <include>Dockerfile</include>
225 <filtering>true</filtering>
231 <id>copy-scripts</id>
233 <goal>copy-resources</goal>
235 <!-- here the phase you need -->
236 <phase>validate</phase>
238 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
241 <directory>src/main/scripts</directory>
243 <include>*.py</include>
244 <include>*.sh</include>
246 <filtering>true</filtering>
252 <id>copy-tarballs</id>
254 <goal>copy-resources</goal>
256 <!-- here the phase you need -->
257 <phase>validate</phase>
259 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
262 <directory>src/main/resources</directory>
264 <include>idmlight.db.mv.db</include>
265 <include>truststoreONAPall.jks</include>
266 <include>aaa-app-config.xml</include>
268 <filtering>false</filtering>
276 <goal>copy-resources</goal>
278 <!-- here the phase you need -->
279 <phase>validate</phase>
281 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
284 <directory>src/main/resources</directory>
286 <include>*.dump</include>
287 <include>oauth-aaa-app-config.xml</include>
289 <filtering>false</filtering>
295 <id>copy-properties</id>
297 <goal>copy-resources</goal>
299 <!-- here the phase you need -->
300 <phase>validate</phase>
302 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
305 <directory>../src/main/properties</directory>
307 <include>*.properties</include>
308 <include>*.props</include>
309 <include>*.csv</include>
311 <filtering>false</filtering>
317 <id>copy-keystores</id>
319 <goal>copy-resources</goal>
321 <!-- here the phase you need -->
322 <phase>validate</phase>
324 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
327 <directory>../src/main/stores</directory>
329 <include>*.jks</include>
330 <include>*.keyfile</include>
331 <include>*.p12</include>
333 <filtering>false</filtering>
341 <groupId>org.apache.maven.plugins</groupId>
342 <artifactId>maven-dependency-plugin</artifactId>
343 <version>3.0.2</version>
346 <id>unpack-sdnc-features</id>
347 <phase>generate-sources</phase>
349 <goal>unpack-dependencies</goal>
352 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
353 <excludeTransitive>true</excludeTransitive>
357 <id>unpack-platform-logic</id>
358 <phase>generate-sources</phase>
363 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
366 <groupId>${project.groupId}</groupId>
367 <artifactId>platform-logic-installer</artifactId>
368 <version>${project.version}</version>
375 <id>unpack-data-migrator</id>
376 <phase>generate-sources</phase>
381 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
384 <groupId>org.onap.sdnc.oam</groupId>
385 <artifactId>data-migrator</artifactId>
386 <version>${project.version}</version>
395 <groupId>org.apache.maven.plugins</groupId>
396 <artifactId>maven-antrun-plugin</artifactId>
397 <version>1.8</version>
400 <id>change-shell-permissions</id>
401 <phase>process-sources</phase>
404 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
414 <groupId>org.apache.maven.plugins</groupId>
415 <artifactId>maven-failsafe-plugin</artifactId>
419 <goal>integration-test</goal>
425 <skipITs>false</skipITs>
426 <environmentVariables>
427 <SDNC_PORT>${sdnc.port}</SDNC_PORT>
428 </environmentVariables>