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.3.1-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>
224 <artifactId>maven-resources-plugin</artifactId>
225 <version>2.6</version>
228 <id>copy-dockerfile</id>
230 <goal>copy-resources</goal>
232 <!-- 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>
242 <filtering>true</filtering>
248 <id>copy-scripts</id>
250 <goal>copy-resources</goal>
252 <!-- 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>true</filtering>
269 <id>copy-tarballs</id>
271 <goal>copy-resources</goal>
273 <!-- here the phase you need -->
274 <phase>validate</phase>
276 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
279 <directory>src/main/resources</directory>
281 <include>idmlight.db.mv.db</include>
282 <include>truststoreONAPall.jks</include>
283 <include>aaa-app-config.xml</include>
285 <filtering>false</filtering>
293 <goal>copy-resources</goal>
295 <!-- here the phase you need -->
296 <phase>validate</phase>
298 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
301 <directory>src/main/resources</directory>
303 <include>*.dump</include>
304 <include>oauth-aaa-app-config.xml</include>
306 <filtering>false</filtering>
312 <id>copy-properties</id>
314 <goal>copy-resources</goal>
316 <!-- here the phase you need -->
317 <phase>validate</phase>
319 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
322 <directory>../src/main/properties</directory>
324 <include>*.properties</include>
325 <include>*.props</include>
326 <include>*.csv</include>
328 <filtering>false</filtering>
334 <id>copy-keystores</id>
336 <goal>copy-resources</goal>
338 <!-- here the phase you need -->
339 <phase>validate</phase>
341 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
344 <directory>../src/main/stores</directory>
346 <include>*.jks</include>
347 <include>*.keyfile</include>
348 <include>*.p12</include>
350 <filtering>false</filtering>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-dependency-plugin</artifactId>
360 <version>3.0.2</version>
363 <id>unpack-sdnc-features</id>
364 <phase>generate-sources</phase>
366 <goal>unpack-dependencies</goal>
369 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
370 <excludeTransitive>true</excludeTransitive>
374 <id>unpack-platform-logic</id>
375 <phase>generate-sources</phase>
380 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
383 <groupId>${project.groupId}</groupId>
384 <artifactId>platform-logic-installer</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>