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.5.5-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>
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
55 <!-- Biermann RESTCONF northbound API -->
57 <groupId>org.onap.ccsdk.odl-legacy.netconf</groupId>
58 <artifactId>restconf-nb-bierman02-installer</artifactId>
59 <version>${ccsdk.bierman.api.version}</version>
61 <classifier>repo</classifier>
64 <groupId>org.onap.sdnc.northbound</groupId>
65 <artifactId>generic-resource-api-installer</artifactId>
66 <version>${sdnc.northbound.version}</version>
68 <classifier>repo</classifier>
71 <groupId>org.onap.sdnc.northbound</groupId>
72 <artifactId>optical-service-installer</artifactId>
73 <version>${sdnc.northbound.version}</version>
75 <classifier>repo</classifier>
78 <groupId>org.onap.sdnc.northbound</groupId>
79 <artifactId>vnftools-installer</artifactId>
80 <version>${sdnc.northbound.version}</version>
82 <classifier>repo</classifier>
85 <groupId>org.onap.sdnc.northbound</groupId>
86 <artifactId>sdnc-northbound-features-installer</artifactId>
87 <version>${sdnc.northbound.version}</version>
89 <classifier>repo</classifier>
91 <!-- SDNR Related Features : Start -->
93 <groupId>org.onap.ccsdk.features</groupId>
94 <artifactId>features-installer</artifactId>
95 <version>${ccsdk.features.version}</version>
97 <classifier>repo</classifier>
100 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
101 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
102 <version>${ccsdk.features.version}</version>
104 <classifier>repo</classifier>
107 <groupId>org.onap.ccsdk.features</groupId>
108 <artifactId>aafshiro-installer</artifactId>
109 <version>${ccsdk.features.version}</version>
111 <classifier>repo</classifier>
114 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
115 <artifactId>sdnr-northbound-features-installer</artifactId>
116 <version>${ccsdk.features.version}</version>
118 <classifier>repo</classifier>
121 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
122 <artifactId>oofpcipoc-installer</artifactId>
123 <version>${ccsdk.features.version}</version>
125 <classifier>repo</classifier>
128 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
129 <artifactId>CMNotify-installer</artifactId>
130 <version>${ccsdk.features.version}</version>
132 <classifier>repo</classifier>
135 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
136 <artifactId>ranSlice-installer</artifactId>
137 <version>${ccsdk.features.version}</version>
139 <classifier>repo</classifier>
142 <groupId>org.onap.ccsdk.oran</groupId>
143 <artifactId>a1-adapter-northbound-installer</artifactId>
144 <version>${ccsdk.oran.a1adapter.version}</version>
146 <classifier>repo</classifier>
149 <groupId>org.onap.ccsdk.oran</groupId>
150 <artifactId>a1-adapter-installer</artifactId>
151 <version>${ccsdk.oran.a1adapter.version}</version>
153 <classifier>repo</classifier>
155 <!-- SDNR Related Features : End -->
161 <groupId>org.codehaus.gmaven</groupId>
162 <artifactId>groovy-maven-plugin</artifactId>
163 <version>2.1.1</version>
166 <phase>validate</phase>
171 <source>${basedir}/../TagVersion.groovy</source>
178 <groupId>io.fabric8</groupId>
179 <artifactId>docker-maven-plugin</artifactId>
180 <version>0.34.0</version>
181 <inherited>false</inherited>
185 <name>${image.name}</name>
187 <cleanup>try</cleanup>
188 <noCache>true</noCache>
189 <contextDir>${basedir}/target/docker-stage</contextDir>
190 <dockerFile>Dockerfile</dockerFile>
195 <tag>${project.docker.latestminortag.version}</tag>
196 <tag>${project.docker.latestfulltag.version}</tag>
197 <tag>${project.docker.latesttagtimestamp.version}</tag>
202 <name>${standalone.image.name}</name>
204 <cleanup>try</cleanup>
205 <noCache>true</noCache>
206 <contextDir>${basedir}/target/docker-stage</contextDir>
207 <dockerFile>Dockerfile</dockerFile>
212 <tag>${project.docker.latestminortag.version}</tag>
213 <tag>${project.docker.latestfulltag.version}</tag>
214 <tag>${project.docker.latesttagtimestamp.version}</tag>
219 <verbose>${docker.verbose}</verbose>
220 <skipPush>${docker.skip.push}</skipPush>
224 <id>build-push-images</id>
233 <artifactId>maven-resources-plugin</artifactId>
234 <version>2.6</version>
237 <id>copy-dockerfile</id>
239 <goal>copy-resources</goal>
241 <!-- here the phase you need -->
242 <phase>validate</phase>
244 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
247 <directory>src/main/docker</directory>
249 <include>Dockerfile</include>
251 <filtering>true</filtering>
257 <id>copy-scripts</id>
259 <goal>copy-resources</goal>
261 <!-- here the phase you need -->
262 <phase>validate</phase>
264 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
267 <directory>src/main/scripts</directory>
269 <include>*.py</include>
270 <include>*.sh</include>
272 <filtering>true</filtering>
278 <id>copy-tarballs</id>
280 <goal>copy-resources</goal>
282 <!-- here the phase you need -->
283 <phase>validate</phase>
285 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
288 <directory>src/main/resources</directory>
290 <include>idmlight.db.mv.db</include>
291 <include>truststoreONAPall.jks</include>
292 <include>aaa-app-config.xml</include>
294 <filtering>false</filtering>
302 <goal>copy-resources</goal>
304 <!-- here the phase you need -->
305 <phase>validate</phase>
307 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
310 <directory>src/main/resources</directory>
312 <include>*.dump</include>
313 <include>oauth-aaa-app-config.xml</include>
315 <filtering>false</filtering>
321 <id>copy-properties</id>
323 <goal>copy-resources</goal>
325 <!-- here the phase you need -->
326 <phase>validate</phase>
328 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
331 <directory>../src/main/properties</directory>
333 <include>*.properties</include>
334 <include>*.props</include>
335 <include>*.csv</include>
337 <filtering>false</filtering>
343 <id>copy-keystores</id>
345 <goal>copy-resources</goal>
347 <!-- here the phase you need -->
348 <phase>validate</phase>
350 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
353 <directory>../src/main/stores</directory>
355 <include>*.jks</include>
356 <include>*.keyfile</include>
357 <include>*.p12</include>
359 <filtering>false</filtering>
367 <groupId>org.apache.maven.plugins</groupId>
368 <artifactId>maven-dependency-plugin</artifactId>
369 <version>3.0.2</version>
372 <id>unpack-sdnc-features</id>
373 <phase>generate-sources</phase>
375 <goal>unpack-dependencies</goal>
378 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
379 <excludeTransitive>true</excludeTransitive>
383 <id>unpack-platform-logic</id>
384 <phase>generate-sources</phase>
389 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
392 <groupId>${project.groupId}</groupId>
393 <artifactId>platform-logic-installer</artifactId>
394 <version>${project.version}</version>
403 <groupId>org.apache.maven.plugins</groupId>
404 <artifactId>maven-antrun-plugin</artifactId>
405 <version>1.8</version>
408 <id>change-shell-permissions</id>
409 <phase>process-sources</phase>
412 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-failsafe-plugin</artifactId>
427 <goal>integration-test</goal>
433 <skipITs>false</skipITs>
434 <environmentVariables>
435 <SDNC_PORT>${sdnc.port}</SDNC_PORT>
436 </environmentVariables>