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">
5 <groupId>org.onap.ccsdk.parent</groupId>
6 <artifactId>odlparent-lite</artifactId>
7 <version>1.4.3</version>
10 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <groupId>org.onap.sdnc.oam</groupId>
13 <artifactId>installation-sdnc</artifactId>
14 <version>1.7.3-SNAPSHOT</version>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates SDN Controller Docker container</description>
20 <image.name>onap/sdnc-aaf-image</image.name>
21 <standalone.image.name>onap/sdnc-image</standalone.image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
23 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
24 <sdnc.northbound.version>1.7.3-SNAPSHOT</sdnc.northbound.version>
25 <ccsdk.docker.version>0.6.3</ccsdk.docker.version>
26 <ccsdk.features.version>0.6.3</ccsdk.features.version>
27 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
28 <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
29 <sdnc.secureport>8443</sdnc.secureport>
30 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
31 <docker.push.phase>deploy</docker.push.phase>
32 <docker.verbose>true</docker.verbose>
33 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
38 <groupId>org.onap.sdnc.northbound</groupId>
39 <artifactId>generic-resource-api-installer</artifactId>
40 <version>${sdnc.northbound.version}</version>
41 <classifier>repo</classifier>
45 <groupId>org.onap.sdnc.northbound</groupId>
46 <artifactId>nonrt-ric-api-installer</artifactId>
47 <version>${sdnc.northbound.version}</version>
48 <classifier>repo</classifier>
52 <groupId>org.onap.sdnc.northbound</groupId>
53 <artifactId>vnfapi-installer</artifactId>
54 <version>${sdnc.northbound.version}</version>
55 <classifier>repo</classifier>
59 <groupId>org.onap.sdnc.northbound</groupId>
60 <artifactId>vnftools-installer</artifactId>
61 <version>${sdnc.northbound.version}</version>
62 <classifier>repo</classifier>
66 <groupId>org.onap.sdnc.northbound</groupId>
67 <artifactId>sdnc-northbound-features-installer</artifactId>
68 <version>${sdnc.northbound.version}</version>
69 <classifier>repo</classifier>
74 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
75 <artifactId>oofpcipoc-installer</artifactId>
76 <version>${ccsdk.features.version}</version>
77 <classifier>repo</classifier>
82 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
83 <artifactId>sdnr-northbound-features-installer</artifactId>
84 <version>${ccsdk.features.version}</version>
85 <classifier>repo</classifier>
89 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
90 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
91 <version>${ccsdk.features.version}</version>
92 <classifier>repo</classifier>
102 <groupId>org.codehaus.groovy.maven</groupId>
103 <artifactId>gmaven-plugin</artifactId>
106 <phase>validate</phase>
111 <source>${basedir}/../TagVersion.groovy</source>
118 <groupId>io.fabric8</groupId>
119 <artifactId>docker-maven-plugin</artifactId>
120 <version>0.28.0</version>
121 <inherited>false</inherited>
124 <id>generate-standalone-images</id>
125 <phase>package</phase>
132 <name>${standalone.image.name}</name>
134 <cleanup>try</cleanup>
135 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
136 <dockerFile>standalone.Dockerfile</dockerFile>
138 <tag>${project.docker.latestminortag.version}</tag>
139 <tag>${project.docker.latestfulltag.version}</tag>
140 <tag>${project.docker.latesttagtimestamp.version}</tag>
148 <id>push-standalone-images</id>
149 <phase>${docker.push.phase}</phase>
157 <name>${standalone.image.name}</name>
159 <cleanup>try</cleanup>
160 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
161 <dockerFile>standalone.Dockerfile</dockerFile>
163 <tag>${project.docker.latestminortag.version}</tag>
164 <tag>${project.docker.latestfulltag.version}</tag>
165 <tag>${project.docker.latesttagtimestamp.version}</tag>
175 <artifactId>maven-resources-plugin</artifactId>
176 <version>2.6</version>
179 <id>copy-dockerfile</id>
181 <goal>copy-resources</goal>
182 </goals><!-- here the phase you need -->
183 <phase>validate</phase>
185 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
188 <directory>src/main/docker</directory>
190 <include>standalone.Dockerfile</include>
192 <filtering>true</filtering>
198 <id>copy-scripts</id>
200 <goal>copy-resources</goal>
201 </goals><!-- here the phase you need -->
202 <phase>validate</phase>
204 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
207 <directory>src/main/scripts</directory>
209 <include>*.py</include>
210 <include>*.sh</include>
212 <filtering>false</filtering>
218 <id>copy-tarballs</id>
220 <goal>copy-resources</goal>
221 </goals><!-- here the phase you need -->
222 <phase>validate</phase>
224 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
227 <directory>src/main/resources</directory>
229 <include>idmlight.db.mv.db</include>
230 <include>truststoreONAPall.jks</include>
231 <include>aaa-app-config.xml</include>
233 <filtering>false</filtering>
241 <goal>copy-resources</goal>
242 </goals><!-- here the phase you need -->
243 <phase>validate</phase>
245 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
248 <directory>src/main/resources</directory>
250 <include>*.dump</include>
252 <filtering>false</filtering>
258 <id>copy-properties</id>
260 <goal>copy-resources</goal>
261 </goals><!-- here the phase you need -->
262 <phase>validate</phase>
264 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
267 <directory>../src/main/properties</directory>
269 <include>*.properties</include>
270 <include>*.props</include>
271 <include>*.csv</include>
273 <filtering>false</filtering>
279 <id>copy-keystores</id>
281 <goal>copy-resources</goal>
282 </goals><!-- here the phase you need -->
283 <phase>validate</phase>
285 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
288 <directory>../src/main/stores</directory>
290 <include>*.jks</include>
291 <include>*.keyfile</include>
292 <include>*.p12</include>
294 <filtering>false</filtering>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-dependency-plugin</artifactId>
304 <version>3.0.2</version>
307 <id>unpack sdnc features</id>
308 <phase>generate-sources</phase>
310 <goal>unpack-dependencies</goal>
313 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
314 <excludeTransitive>true</excludeTransitive>
319 <phase>generate-sources</phase>
324 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
327 <groupId>${project.groupId}</groupId>
328 <artifactId>platform-logic-installer</artifactId>
329 <version>${project.version}</version>
336 <id>unpack migration utility</id>
337 <phase>generate-sources</phase>
342 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
345 <groupId>org.onap.sdnc.oam</groupId>
346 <artifactId>data-migrator</artifactId>
347 <version>${project.version}</version>
356 <artifactId>exec-maven-plugin</artifactId>
357 <groupId>org.codehaus.mojo</groupId>
358 <version>1.5.0</version>
361 <id>change shell permissions</id>
362 <phase>process-sources</phase>
367 <executable>/usr/bin/find</executable>
369 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
370 <argument>-name</argument>
371 <argument>*.sh</argument>
372 <argument>-exec</argument>
373 <argument>chmod</argument>
374 <argument>+x</argument>
375 <argument>{}</argument>
376 <argument>;</argument>