1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
4 Modifications Copyright (C) 2019 Nordix Foundation.
5 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
21 <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/maven-v4_0_0.xsd">
25 <id>onap-releases</id>
26 <name>onap-releases</name>
27 <url>https://nexus.onap.org/content/repositories/releases/</url>
32 <groupId>org.onap.ccsdk.parent</groupId>
33 <artifactId>odlparent-lite</artifactId>
34 <version>1.4.3</version>
37 <modelVersion>4.0.0</modelVersion>
38 <packaging>pom</packaging>
39 <groupId>org.onap.sdnc.oam</groupId>
40 <artifactId>installation-sdnc</artifactId>
41 <version>1.7.3-SNAPSHOT</version>
43 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
44 <description>Creates SDN Controller Docker container</description>
47 <image.name>onap/sdnc-aaf-image</image.name>
48 <standalone.image.name>o-ran-sc/nonrtric-a1-controller</standalone.image.name>
49 <standalone.image.version>1.7.4-SNAPSHOT</standalone.image.version>
50 <sdnc.project.version>${project.version}</sdnc.project.version>
51 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
52 <sdnc.northbound.version>1.7.3-SNAPSHOT</sdnc.northbound.version>
53 <ccsdk.docker.version>0.6.3</ccsdk.docker.version>
54 <ccsdk.features.version>0.6.3</ccsdk.features.version>
55 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
56 <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
57 <sdnc.secureport>8443</sdnc.secureport>
58 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
59 <docker.push.phase>deploy</docker.push.phase>
60 <docker.verbose>true</docker.verbose>
61 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
66 <groupId>org.onap.sdnc.northbound</groupId>
67 <artifactId>nonrt-ric-api-installer</artifactId>
68 <version>${sdnc.northbound.version}</version>
69 <classifier>repo</classifier>
73 <groupId>org.onap.sdnc.northbound</groupId>
74 <artifactId>sdnc-northbound-features-installer</artifactId>
75 <version>${sdnc.northbound.version}</version>
76 <classifier>repo</classifier>
80 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
81 <artifactId>oofpcipoc-installer</artifactId>
82 <version>${ccsdk.features.version}</version>
83 <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>
90 <classifier>repo</classifier>
94 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
95 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
96 <version>${ccsdk.features.version}</version>
97 <classifier>repo</classifier>
107 <groupId>org.codehaus.groovy.maven</groupId>
108 <artifactId>gmaven-plugin</artifactId>
111 <phase>validate</phase>
116 <source>${basedir}/../TagVersion.groovy</source>
123 <groupId>io.fabric8</groupId>
124 <artifactId>docker-maven-plugin</artifactId>
125 <version>0.30.0</version>
126 <inherited>false</inherited>
129 <id>generate-standalone-images</id>
130 <phase>package</phase>
137 <name>${standalone.image.name}:${standalone.image.version}</name>
139 <cleanup>try</cleanup>
140 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
141 <dockerFile>standalone.Dockerfile</dockerFile>
143 <tag>${standalone.image.version}</tag>
151 <id>push-standalone-images</id>
152 <phase>${docker.push.phase}</phase>
158 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
161 <name>${standalone.image.name}:${standalone.image.version}</name>
163 <cleanup>try</cleanup>
164 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
165 <dockerFile>standalone.Dockerfile</dockerFile>
167 <tag>${standalone.image.version}</tag>
177 <artifactId>maven-resources-plugin</artifactId>
178 <version>2.6</version>
181 <id>copy-dockerfile</id>
183 <goal>copy-resources</goal>
184 </goals><!-- here the phase you need -->
185 <phase>validate</phase>
187 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
190 <directory>src/main/docker</directory>
192 <include>standalone.Dockerfile</include>
194 <filtering>true</filtering>
200 <id>copy-scripts</id>
202 <goal>copy-resources</goal>
203 </goals><!-- here the phase you need -->
204 <phase>validate</phase>
206 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
209 <directory>src/main/scripts</directory>
211 <include>*.py</include>
212 <include>*.sh</include>
214 <filtering>false</filtering>
220 <id>copy-tarballs</id>
222 <goal>copy-resources</goal>
223 </goals><!-- here the phase you need -->
224 <phase>validate</phase>
226 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
229 <directory>src/main/resources</directory>
231 <include>idmlight.db.mv.db</include>
232 <include>truststoreONAPall.jks</include>
233 <include>aaa-app-config.xml</include>
235 <filtering>false</filtering>
243 <goal>copy-resources</goal>
244 </goals><!-- here the phase you need -->
245 <phase>validate</phase>
247 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
250 <directory>src/main/resources</directory>
252 <include>*.dump</include>
254 <filtering>false</filtering>
260 <id>copy-properties</id>
262 <goal>copy-resources</goal>
263 </goals><!-- here the phase you need -->
264 <phase>validate</phase>
266 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
269 <directory>../src/main/properties</directory>
271 <include>*.properties</include>
272 <include>*.props</include>
273 <include>*.csv</include>
275 <filtering>false</filtering>
281 <id>copy-keystores</id>
283 <goal>copy-resources</goal>
284 </goals><!-- here the phase you need -->
285 <phase>validate</phase>
287 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
290 <directory>../src/main/stores</directory>
292 <include>*.jks</include>
293 <include>*.keyfile</include>
294 <include>*.p12</include>
296 <filtering>false</filtering>
304 <groupId>org.apache.maven.plugins</groupId>
305 <artifactId>maven-dependency-plugin</artifactId>
306 <version>3.0.2</version>
309 <id>unpack sdnc features</id>
310 <phase>generate-sources</phase>
312 <goal>unpack-dependencies</goal>
315 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
316 <excludeTransitive>true</excludeTransitive>
321 <phase>generate-sources</phase>
326 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
329 <groupId>${project.groupId}</groupId>
330 <artifactId>platform-logic-installer</artifactId>
331 <version>${project.version}</version>
340 <artifactId>exec-maven-plugin</artifactId>
341 <groupId>org.codehaus.mojo</groupId>
342 <version>1.5.0</version>
345 <id>change shell permissions</id>
346 <phase>process-sources</phase>
351 <executable>/usr/bin/find</executable>
353 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
354 <argument>-name</argument>
355 <argument>*.sh</argument>
356 <argument>-exec</argument>
357 <argument>chmod</argument>
358 <argument>+x</argument>
359 <argument>{}</argument>
360 <argument>;</argument>