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.6.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>
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,odl-restconf-nb-bierman02-</sdnc.features.boot>
48 <!-- <sdnc.features.repo>
49 mvn:org.onap.sdnc.northbound/sdnc-northbound-all/${sdnc.northbound.version}/xml/features, \
50 mvn:org.onap.ccsdk.odl-legacy.netconf/odl-restconf-nb-bierman02/${ccsdk.bierman.api.version}/xml/features
51 </sdnc.features.repo>-->
53 mvn:org.onap.sdnc.northbound/sdnc-northbound-all/${sdnc.northbound.version}/xml/features
58 <!-- Biermann RESTCONF northbound API -->
60 <groupId>org.onap.ccsdk.odl-legacy.netconf</groupId>
61 <artifactId>restconf-nb-bierman02-installer</artifactId>
62 <version>${ccsdk.bierman.api.version}</version>
64 <classifier>repo</classifier>
67 <groupId>org.onap.sdnc.northbound</groupId>
68 <artifactId>generic-resource-api-installer</artifactId>
69 <version>${sdnc.northbound.version}</version>
71 <classifier>repo</classifier>
74 <groupId>org.onap.sdnc.northbound</groupId>
75 <artifactId>optical-service-installer</artifactId>
76 <version>${sdnc.northbound.version}</version>
78 <classifier>repo</classifier>
81 <groupId>org.onap.sdnc.northbound</groupId>
82 <artifactId>vnftools-installer</artifactId>
83 <version>${sdnc.northbound.version}</version>
85 <classifier>repo</classifier>
88 <groupId>org.onap.sdnc.northbound</groupId>
89 <artifactId>sdnc-northbound-features-installer</artifactId>
90 <version>${sdnc.northbound.version}</version>
92 <classifier>repo</classifier>
94 <!-- SDNR Related Features : Start -->
96 <groupId>org.onap.ccsdk.features</groupId>
97 <artifactId>features-installer</artifactId>
98 <version>${ccsdk.features.version}</version>
100 <classifier>repo</classifier>
103 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
104 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
105 <version>${ccsdk.features.version}</version>
107 <classifier>repo</classifier>
110 <groupId>org.onap.ccsdk.features</groupId>
111 <artifactId>aafshiro-installer</artifactId>
112 <version>${ccsdk.features.version}</version>
114 <classifier>repo</classifier>
117 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
118 <artifactId>sdnr-northbound-features-installer</artifactId>
119 <version>${ccsdk.features.version}</version>
121 <classifier>repo</classifier>
124 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
125 <artifactId>oofpcipoc-installer</artifactId>
126 <version>${ccsdk.features.version}</version>
128 <classifier>repo</classifier>
131 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
132 <artifactId>CMNotify-installer</artifactId>
133 <version>${ccsdk.features.version}</version>
135 <classifier>repo</classifier>
138 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
139 <artifactId>ranSlice-installer</artifactId>
140 <version>${ccsdk.features.version}</version>
142 <classifier>repo</classifier>
145 <groupId>org.onap.ccsdk.oran</groupId>
146 <artifactId>a1-adapter-northbound-installer</artifactId>
147 <version>${ccsdk.oran.a1adapter.version}</version>
149 <classifier>repo</classifier>
152 <groupId>org.onap.ccsdk.oran</groupId>
153 <artifactId>a1-adapter-installer</artifactId>
154 <version>${ccsdk.oran.a1adapter.version}</version>
156 <classifier>repo</classifier>
158 <!-- SDNR Related Features : End -->
164 <groupId>org.codehaus.gmaven</groupId>
165 <artifactId>groovy-maven-plugin</artifactId>
166 <version>2.1.1</version>
169 <phase>validate</phase>
174 <source>${basedir}/../TagVersion.groovy</source>
181 <groupId>io.fabric8</groupId>
182 <artifactId>docker-maven-plugin</artifactId>
183 <version>0.34.0</version>
184 <inherited>false</inherited>
188 <name>${image.name}</name>
190 <cleanup>try</cleanup>
191 <noCache>true</noCache>
192 <contextDir>${basedir}/target/docker-stage</contextDir>
193 <dockerFile>Dockerfile</dockerFile>
198 <tag>${project.docker.latestminortag.version}</tag>
199 <tag>${project.docker.latestfulltag.version}</tag>
200 <tag>${project.docker.latesttagtimestamp.version}</tag>
205 <name>${standalone.image.name}</name>
207 <cleanup>try</cleanup>
208 <noCache>true</noCache>
209 <contextDir>${basedir}/target/docker-stage</contextDir>
210 <dockerFile>Dockerfile</dockerFile>
215 <tag>${project.docker.latestminortag.version}</tag>
216 <tag>${project.docker.latestfulltag.version}</tag>
217 <tag>${project.docker.latesttagtimestamp.version}</tag>
222 <verbose>${docker.verbose}</verbose>
223 <skipPush>${docker.skip.push}</skipPush>
227 <id>build-push-images</id>
236 <artifactId>maven-resources-plugin</artifactId>
237 <version>2.6</version>
240 <id>copy-dockerfile</id>
242 <goal>copy-resources</goal>
244 <!-- here the phase you need -->
245 <phase>validate</phase>
247 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
250 <directory>src/main/docker</directory>
252 <include>Dockerfile</include>
254 <filtering>true</filtering>
260 <id>copy-scripts</id>
262 <goal>copy-resources</goal>
264 <!-- here the phase you need -->
265 <phase>validate</phase>
267 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
270 <directory>src/main/scripts</directory>
272 <include>*.py</include>
273 <include>*.sh</include>
275 <filtering>true</filtering>
281 <id>copy-tarballs</id>
283 <goal>copy-resources</goal>
285 <!-- here the phase you need -->
286 <phase>validate</phase>
288 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
291 <directory>src/main/resources</directory>
293 <include>idmlight.db.mv.db</include>
294 <include>truststoreONAPall.jks</include>
295 <include>aaa-app-config.xml</include>
297 <filtering>false</filtering>
305 <goal>copy-resources</goal>
307 <!-- here the phase you need -->
308 <phase>validate</phase>
310 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
313 <directory>src/main/resources</directory>
315 <include>*.dump</include>
316 <include>oauth-aaa-app-config.xml</include>
318 <filtering>false</filtering>
324 <id>copy-properties</id>
326 <goal>copy-resources</goal>
328 <!-- here the phase you need -->
329 <phase>validate</phase>
331 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
334 <directory>../src/main/properties</directory>
336 <include>*.properties</include>
337 <include>*.props</include>
338 <include>*.csv</include>
340 <filtering>false</filtering>
346 <id>copy-keystores</id>
348 <goal>copy-resources</goal>
350 <!-- here the phase you need -->
351 <phase>validate</phase>
353 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
356 <directory>../src/main/stores</directory>
358 <include>*.jks</include>
359 <include>*.keyfile</include>
360 <include>*.p12</include>
362 <filtering>false</filtering>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-dependency-plugin</artifactId>
372 <version>3.0.2</version>
375 <id>unpack-sdnc-features</id>
376 <phase>generate-sources</phase>
378 <goal>unpack-dependencies</goal>
381 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
382 <excludeTransitive>true</excludeTransitive>
386 <id>unpack-platform-logic</id>
387 <phase>generate-sources</phase>
392 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
395 <groupId>${project.groupId}</groupId>
396 <artifactId>platform-logic-installer</artifactId>
397 <version>${project.version}</version>
406 <groupId>org.apache.maven.plugins</groupId>
407 <artifactId>maven-antrun-plugin</artifactId>
408 <version>1.8</version>
411 <id>change-shell-permissions</id>
412 <phase>process-sources</phase>
415 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-failsafe-plugin</artifactId>
430 <goal>integration-test</goal>
436 <skipITs>false</skipITs>
437 <environmentVariables>
438 <SDNC_PORT>${sdnc.port}</SDNC_PORT>
439 </environmentVariables>