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.1.0-SNAPSHOT</version>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-sdnc</artifactId>
13 <version>2.1.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates SDN Controller Docker container</description>
23 <image.name>onap/sdnc-aaf-image</image.name>
24 <standalone.image.name>onap/sdnc-image</standalone.image.name>
25 <sdnc.project.version>${project.version}</sdnc.project.version>
26 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
27 <sdnc.northbound.version>2.1.0-SNAPSHOT</sdnc.northbound.version>
28 <ccsdk.docker.version>1.1-STAGING-latest</ccsdk.docker.version>
29 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
30 <sdnc.keypass><![CDATA[;:G58,7ZhqOSI:7^oZCY[9Dv]]></sdnc.keypass>
31 <sdnc.secureport>8443</sdnc.secureport>
32 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
33 <docker.push.phase>deploy</docker.push.phase>
34 <docker.verbose>true</docker.verbose>
35 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
40 <groupId>org.onap.sdnc.northbound</groupId>
41 <artifactId>generic-resource-api-installer</artifactId>
42 <version>${sdnc.northbound.version}</version>
44 <classifier>repo</classifier>
47 <groupId>org.onap.sdnc.northbound</groupId>
48 <artifactId>optical-service-installer</artifactId>
49 <version>${sdnc.northbound.version}</version>
51 <classifier>repo</classifier>
54 <groupId>org.onap.sdnc.northbound</groupId>
55 <artifactId>vnftools-installer</artifactId>
56 <version>${sdnc.northbound.version}</version>
58 <classifier>repo</classifier>
61 <groupId>org.onap.sdnc.northbound</groupId>
62 <artifactId>sdnc-northbound-features-installer</artifactId>
63 <version>${sdnc.northbound.version}</version>
65 <classifier>repo</classifier>
74 <groupId>org.codehaus.groovy.maven</groupId>
75 <artifactId>gmaven-plugin</artifactId>
78 <phase>validate</phase>
83 <source>${basedir}/../TagVersion.groovy</source>
90 <groupId>io.fabric8</groupId>
91 <artifactId>docker-maven-plugin</artifactId>
92 <version>0.28.0</version>
93 <inherited>false</inherited>
96 <id>generate-images</id>
97 <phase>package</phase>
104 <name>${image.name}</name>
106 <cleanup>try</cleanup>
107 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
108 <dockerFile>Dockerfile</dockerFile>
110 <tag>${project.docker.latestminortag.version}</tag>
111 <tag>${project.docker.latestfulltag.version}</tag>
112 <tag>${project.docker.latesttagtimestamp.version}</tag>
121 <phase>${docker.push.phase}</phase>
129 <name>${image.name}</name>
131 <cleanup>try</cleanup>
132 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
133 <dockerFile>Dockerfile</dockerFile>
135 <tag>${project.docker.latestminortag.version}</tag>
136 <tag>${project.docker.latestfulltag.version}</tag>
137 <tag>${project.docker.latesttagtimestamp.version}</tag>
145 <id>generate-standalone-images</id>
146 <phase>package</phase>
153 <name>${standalone.image.name}</name>
155 <cleanup>try</cleanup>
156 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
157 <dockerFile>standalone.Dockerfile</dockerFile>
159 <tag>${project.docker.latestminortag.version}</tag>
160 <tag>${project.docker.latestfulltag.version}</tag>
161 <tag>${project.docker.latesttagtimestamp.version}</tag>
169 <id>push-standalone-images</id>
170 <phase>${docker.push.phase}</phase>
178 <name>${standalone.image.name}</name>
180 <cleanup>try</cleanup>
181 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
182 <dockerFile>standalone.Dockerfile</dockerFile>
184 <tag>${project.docker.latestminortag.version}</tag>
185 <tag>${project.docker.latestfulltag.version}</tag>
186 <tag>${project.docker.latesttagtimestamp.version}</tag>
196 <artifactId>maven-resources-plugin</artifactId>
197 <version>2.6</version>
200 <id>copy-dockerfile</id>
202 <goal>copy-resources</goal>
203 </goals><!-- here the phase you need -->
204 <phase>validate</phase>
206 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
209 <directory>src/main/docker</directory>
211 <include>Dockerfile</include>
212 <include>standalone.Dockerfile</include>
214 <filtering>true</filtering>
220 <id>copy-scripts</id>
222 <goal>copy-resources</goal>
223 </goals><!-- here the phase you need -->
224 <phase>validate</phase>
226 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
229 <directory>src/main/scripts</directory>
231 <include>*.py</include>
232 <include>*.sh</include>
234 <filtering>false</filtering>
240 <id>copy-tarballs</id>
242 <goal>copy-resources</goal>
243 </goals><!-- here the phase you need -->
244 <phase>validate</phase>
246 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
249 <directory>src/main/resources</directory>
251 <include>idmlight.db.mv.db</include>
252 <include>truststoreONAPall.jks</include>
253 <include>aaa-app-config.xml</include>
255 <filtering>false</filtering>
263 <goal>copy-resources</goal>
264 </goals><!-- here the phase you need -->
265 <phase>validate</phase>
267 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
270 <directory>src/main/resources</directory>
272 <include>*.dump</include>
274 <filtering>false</filtering>
280 <id>copy-properties</id>
282 <goal>copy-resources</goal>
283 </goals><!-- here the phase you need -->
284 <phase>validate</phase>
286 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
289 <directory>../src/main/properties</directory>
291 <include>*.properties</include>
292 <include>*.props</include>
293 <include>*.csv</include>
295 <filtering>false</filtering>
301 <id>copy-keystores</id>
303 <goal>copy-resources</goal>
304 </goals><!-- here the phase you need -->
305 <phase>validate</phase>
307 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
310 <directory>../src/main/stores</directory>
312 <include>*.jks</include>
313 <include>*.keyfile</include>
314 <include>*.p12</include>
316 <filtering>false</filtering>
324 <groupId>org.apache.maven.plugins</groupId>
325 <artifactId>maven-dependency-plugin</artifactId>
326 <version>3.0.2</version>
329 <id>unpack sdnc features</id>
330 <phase>generate-sources</phase>
332 <goal>unpack-dependencies</goal>
335 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
336 <excludeTransitive>true</excludeTransitive>
341 <phase>generate-sources</phase>
346 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
349 <groupId>${project.groupId}</groupId>
350 <artifactId>platform-logic-installer</artifactId>
351 <version>${project.version}</version>
358 <id>unpack migration utility</id>
359 <phase>generate-sources</phase>
364 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
367 <groupId>org.onap.sdnc.oam</groupId>
368 <artifactId>data-migrator</artifactId>
369 <version>${project.version}</version>
378 <groupId>org.codehaus.mojo</groupId>
379 <artifactId>exec-maven-plugin</artifactId>
380 <version>1.5.0</version>
383 <id>change shell permissions</id>
384 <phase>process-sources</phase>
389 <executable>/usr/bin/find</executable>
391 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
392 <argument>-name</argument>
393 <argument>*.sh</argument>
394 <argument>-exec</argument>
395 <argument>chmod</argument>
396 <argument>+x</argument>
397 <argument>{}</argument>
398 <argument>;</argument>