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.0.0-SNAPSHOT</version>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-sdnc</artifactId>
13 <version>2.0.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.0.0</sdnc.northbound.version>
28 <ccsdk.docker.version>1.0-STAGING-latest</ccsdk.docker.version>
29 <ccsdk.features.version>1.0.0</ccsdk.features.version>
30 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
31 <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
32 <sdnc.secureport>8443</sdnc.secureport>
33 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
34 <docker.push.phase>deploy</docker.push.phase>
35 <docker.verbose>true</docker.verbose>
36 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
41 <groupId>org.onap.sdnc.northbound</groupId>
42 <artifactId>generic-resource-api-installer</artifactId>
43 <version>${sdnc.northbound.version}</version>
45 <classifier>repo</classifier>
48 <groupId>org.onap.sdnc.northbound</groupId>
49 <artifactId>optical-service-installer</artifactId>
50 <version>${sdnc.northbound.version}</version>
52 <classifier>repo</classifier>
55 <groupId>org.onap.sdnc.northbound</groupId>
56 <artifactId>vnftools-installer</artifactId>
57 <version>${sdnc.northbound.version}</version>
59 <classifier>repo</classifier>
62 <groupId>org.onap.sdnc.northbound</groupId>
63 <artifactId>sdnc-northbound-features-installer</artifactId>
64 <version>${sdnc.northbound.version}</version>
66 <classifier>repo</classifier>
75 <groupId>org.codehaus.groovy.maven</groupId>
76 <artifactId>gmaven-plugin</artifactId>
79 <phase>validate</phase>
84 <source>${basedir}/../TagVersion.groovy</source>
91 <groupId>io.fabric8</groupId>
92 <artifactId>docker-maven-plugin</artifactId>
93 <version>0.28.0</version>
94 <inherited>false</inherited>
97 <id>generate-images</id>
98 <phase>package</phase>
105 <name>${image.name}</name>
107 <cleanup>try</cleanup>
108 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
109 <dockerFile>Dockerfile</dockerFile>
111 <tag>${project.docker.latestminortag.version}</tag>
112 <tag>${project.docker.latestfulltag.version}</tag>
113 <tag>${project.docker.latesttagtimestamp.version}</tag>
122 <phase>${docker.push.phase}</phase>
130 <name>${image.name}</name>
132 <cleanup>try</cleanup>
133 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
134 <dockerFile>Dockerfile</dockerFile>
136 <tag>${project.docker.latestminortag.version}</tag>
137 <tag>${project.docker.latestfulltag.version}</tag>
138 <tag>${project.docker.latesttagtimestamp.version}</tag>
146 <id>generate-standalone-images</id>
147 <phase>package</phase>
154 <name>${standalone.image.name}</name>
156 <cleanup>try</cleanup>
157 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
158 <dockerFile>standalone.Dockerfile</dockerFile>
160 <tag>${project.docker.latestminortag.version}</tag>
161 <tag>${project.docker.latestfulltag.version}</tag>
162 <tag>${project.docker.latesttagtimestamp.version}</tag>
170 <id>push-standalone-images</id>
171 <phase>${docker.push.phase}</phase>
179 <name>${standalone.image.name}</name>
181 <cleanup>try</cleanup>
182 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
183 <dockerFile>standalone.Dockerfile</dockerFile>
185 <tag>${project.docker.latestminortag.version}</tag>
186 <tag>${project.docker.latestfulltag.version}</tag>
187 <tag>${project.docker.latesttagtimestamp.version}</tag>
197 <artifactId>maven-resources-plugin</artifactId>
198 <version>2.6</version>
201 <id>copy-dockerfile</id>
203 <goal>copy-resources</goal>
204 </goals><!-- here the phase you need -->
205 <phase>validate</phase>
207 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
210 <directory>src/main/docker</directory>
212 <include>Dockerfile</include>
213 <include>standalone.Dockerfile</include>
215 <filtering>true</filtering>
221 <id>copy-scripts</id>
223 <goal>copy-resources</goal>
224 </goals><!-- here the phase you need -->
225 <phase>validate</phase>
227 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
230 <directory>src/main/scripts</directory>
232 <include>*.py</include>
233 <include>*.sh</include>
235 <filtering>false</filtering>
241 <id>copy-tarballs</id>
243 <goal>copy-resources</goal>
244 </goals><!-- here the phase you need -->
245 <phase>validate</phase>
247 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
250 <directory>src/main/resources</directory>
252 <include>idmlight.db.mv.db</include>
253 <include>truststoreONAPall.jks</include>
254 <include>aaa-app-config.xml</include>
256 <filtering>false</filtering>
264 <goal>copy-resources</goal>
265 </goals><!-- here the phase you need -->
266 <phase>validate</phase>
268 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
271 <directory>src/main/resources</directory>
273 <include>*.dump</include>
275 <filtering>false</filtering>
281 <id>copy-properties</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/properties</outputDirectory>
290 <directory>../src/main/properties</directory>
292 <include>*.properties</include>
293 <include>*.props</include>
294 <include>*.csv</include>
296 <filtering>false</filtering>
302 <id>copy-keystores</id>
304 <goal>copy-resources</goal>
305 </goals><!-- here the phase you need -->
306 <phase>validate</phase>
308 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
311 <directory>../src/main/stores</directory>
313 <include>*.jks</include>
314 <include>*.keyfile</include>
315 <include>*.p12</include>
317 <filtering>false</filtering>
325 <groupId>org.apache.maven.plugins</groupId>
326 <artifactId>maven-dependency-plugin</artifactId>
327 <version>3.0.2</version>
330 <id>unpack sdnc features</id>
331 <phase>generate-sources</phase>
333 <goal>unpack-dependencies</goal>
336 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
337 <excludeTransitive>true</excludeTransitive>
342 <phase>generate-sources</phase>
347 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
350 <groupId>${project.groupId}</groupId>
351 <artifactId>platform-logic-installer</artifactId>
352 <version>${project.version}</version>
359 <id>unpack migration utility</id>
360 <phase>generate-sources</phase>
365 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
368 <groupId>org.onap.sdnc.oam</groupId>
369 <artifactId>data-migrator</artifactId>
370 <version>${project.version}</version>
379 <groupId>org.codehaus.mojo</groupId>
380 <artifactId>exec-maven-plugin</artifactId>
381 <version>1.5.0</version>
384 <id>change shell permissions</id>
385 <phase>process-sources</phase>
390 <executable>/usr/bin/find</executable>
392 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
393 <argument>-name</argument>
394 <argument>*.sh</argument>
395 <argument>-exec</argument>
396 <argument>chmod</argument>
397 <argument>+x</argument>
398 <argument>{}</argument>
399 <argument>;</argument>