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/maven-v4_0_0.xsd">
7 <name>onap-releases</name>
8 <url>https://nexus.onap.org/content/repositories/releases/</url>
13 <groupId>org.onap.ccsdk.parent</groupId>
14 <artifactId>odlparent-lite</artifactId>
15 <version>1.4.3</version>
18 <modelVersion>4.0.0</modelVersion>
19 <packaging>pom</packaging>
20 <groupId>org.onap.sdnc.oam</groupId>
21 <artifactId>installation-sdnc</artifactId>
22 <version>1.7.3-SNAPSHOT</version>
24 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
25 <description>Creates SDN Controller Docker container</description>
28 <image.name>onap/sdnc-aaf-image</image.name>
29 <standalone.image.name>nonrtric-a1-controller</standalone.image.name>
30 <sdnc.project.version>${project.version}</sdnc.project.version>
31 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
32 <sdnc.northbound.version>1.7.3-SNAPSHOT</sdnc.northbound.version>
33 <ccsdk.docker.version>0.6.3</ccsdk.docker.version>
34 <ccsdk.features.version>0.6.3</ccsdk.features.version>
35 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
36 <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
37 <sdnc.secureport>8443</sdnc.secureport>
38 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
39 <docker.push.phase>deploy</docker.push.phase>
40 <docker.verbose>true</docker.verbose>
41 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
46 <groupId>org.onap.sdnc.northbound</groupId>
47 <artifactId>generic-resource-api-installer</artifactId>
48 <version>${sdnc.northbound.version}</version>
49 <classifier>repo</classifier>
53 <groupId>org.onap.sdnc.northbound</groupId>
54 <artifactId>nonrt-ric-api-installer</artifactId>
55 <version>${sdnc.northbound.version}</version>
56 <classifier>repo</classifier>
60 <groupId>org.onap.sdnc.northbound</groupId>
61 <artifactId>vnfapi-installer</artifactId>
62 <version>${sdnc.northbound.version}</version>
63 <classifier>repo</classifier>
67 <groupId>org.onap.sdnc.northbound</groupId>
68 <artifactId>vnftools-installer</artifactId>
69 <version>${sdnc.northbound.version}</version>
70 <classifier>repo</classifier>
74 <groupId>org.onap.sdnc.northbound</groupId>
75 <artifactId>sdnc-northbound-features-installer</artifactId>
76 <version>${sdnc.northbound.version}</version>
77 <classifier>repo</classifier>
82 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
83 <artifactId>oofpcipoc-installer</artifactId>
84 <version>${ccsdk.features.version}</version>
85 <classifier>repo</classifier>
90 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
91 <artifactId>sdnr-northbound-features-installer</artifactId>
92 <version>${ccsdk.features.version}</version>
93 <classifier>repo</classifier>
97 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
98 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
99 <version>${ccsdk.features.version}</version>
100 <classifier>repo</classifier>
110 <groupId>org.codehaus.groovy.maven</groupId>
111 <artifactId>gmaven-plugin</artifactId>
114 <phase>validate</phase>
119 <source>${basedir}/../TagVersion.groovy</source>
126 <groupId>io.fabric8</groupId>
127 <artifactId>docker-maven-plugin</artifactId>
128 <version>0.30.0</version>
129 <inherited>false</inherited>
132 <id>generate-standalone-images</id>
133 <phase>package</phase>
140 <name>${standalone.image.name}</name>
142 <cleanup>try</cleanup>
143 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
144 <dockerFile>standalone.Dockerfile</dockerFile>
146 <tag>${project.docker.latestminortag.version}</tag>
147 <tag>${project.docker.latestfulltag.version}</tag>
148 <tag>${project.docker.latesttagtimestamp.version}</tag>
156 <id>push-standalone-images</id>
157 <phase>${docker.push.phase}</phase>
163 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
166 <name>${standalone.image.name}</name>
168 <cleanup>try</cleanup>
169 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
170 <dockerFile>standalone.Dockerfile</dockerFile>
172 <tag>${project.docker.latestminortag.version}</tag>
173 <tag>${project.docker.latestfulltag.version}</tag>
174 <tag>${project.docker.latesttagtimestamp.version}</tag>
184 <artifactId>maven-resources-plugin</artifactId>
185 <version>2.6</version>
188 <id>copy-dockerfile</id>
190 <goal>copy-resources</goal>
191 </goals><!-- here the phase you need -->
192 <phase>validate</phase>
194 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
197 <directory>src/main/docker</directory>
199 <include>standalone.Dockerfile</include>
201 <filtering>true</filtering>
207 <id>copy-scripts</id>
209 <goal>copy-resources</goal>
210 </goals><!-- here the phase you need -->
211 <phase>validate</phase>
213 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
216 <directory>src/main/scripts</directory>
218 <include>*.py</include>
219 <include>*.sh</include>
221 <filtering>false</filtering>
227 <id>copy-tarballs</id>
229 <goal>copy-resources</goal>
230 </goals><!-- here the phase you need -->
231 <phase>validate</phase>
233 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
236 <directory>src/main/resources</directory>
238 <include>idmlight.db.mv.db</include>
239 <include>truststoreONAPall.jks</include>
240 <include>aaa-app-config.xml</include>
242 <filtering>false</filtering>
250 <goal>copy-resources</goal>
251 </goals><!-- here the phase you need -->
252 <phase>validate</phase>
254 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
257 <directory>src/main/resources</directory>
259 <include>*.dump</include>
261 <filtering>false</filtering>
267 <id>copy-properties</id>
269 <goal>copy-resources</goal>
270 </goals><!-- here the phase you need -->
271 <phase>validate</phase>
273 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
276 <directory>../src/main/properties</directory>
278 <include>*.properties</include>
279 <include>*.props</include>
280 <include>*.csv</include>
282 <filtering>false</filtering>
288 <id>copy-keystores</id>
290 <goal>copy-resources</goal>
291 </goals><!-- here the phase you need -->
292 <phase>validate</phase>
294 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
297 <directory>../src/main/stores</directory>
299 <include>*.jks</include>
300 <include>*.keyfile</include>
301 <include>*.p12</include>
303 <filtering>false</filtering>
311 <groupId>org.apache.maven.plugins</groupId>
312 <artifactId>maven-dependency-plugin</artifactId>
313 <version>3.0.2</version>
316 <id>unpack sdnc features</id>
317 <phase>generate-sources</phase>
319 <goal>unpack-dependencies</goal>
322 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
323 <excludeTransitive>true</excludeTransitive>
328 <phase>generate-sources</phase>
333 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
336 <groupId>${project.groupId}</groupId>
337 <artifactId>platform-logic-installer</artifactId>
338 <version>${project.version}</version>
347 <artifactId>exec-maven-plugin</artifactId>
348 <groupId>org.codehaus.mojo</groupId>
349 <version>1.5.0</version>
352 <id>change shell permissions</id>
353 <phase>process-sources</phase>
358 <executable>/usr/bin/find</executable>
360 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
361 <argument>-name</argument>
362 <argument>*.sh</argument>
363 <argument>-exec</argument>
364 <argument>chmod</argument>
365 <argument>+x</argument>
366 <argument>{}</argument>
367 <argument>;</argument>