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.3.0-SNAPSHOT</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.6.0-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.6.0-SNAPSHOT</sdnc.northbound.version>
25 <ccsdk.docker.version>0.5.0-STAGING-latest</ccsdk.docker.version>
26 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
27 <sdnc.keypass><![CDATA[?w5&!M;8v1XF;:Xd;g*%S\$IY]]></sdnc.keypass>
28 <sdnc.secureport>8443</sdnc.secureport>
29 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
30 <docker.push.phase>deploy</docker.push.phase>
31 <docker.verbose>true</docker.verbose>
32 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
37 <groupId>org.onap.sdnc.northbound</groupId>
38 <artifactId>generic-resource-api-installer</artifactId>
39 <version>${sdnc.northbound.version}</version>
40 <classifier>repo</classifier>
44 <groupId>org.onap.sdnc.northbound</groupId>
45 <artifactId>vnfapi-installer</artifactId>
46 <version>${sdnc.northbound.version}</version>
47 <classifier>repo</classifier>
51 <groupId>org.onap.sdnc.northbound</groupId>
52 <artifactId>vnftools-installer</artifactId>
53 <version>${sdnc.northbound.version}</version>
54 <classifier>repo</classifier>
58 <groupId>org.onap.sdnc.northbound</groupId>
59 <artifactId>sdnc-northbound-features-installer</artifactId>
60 <version>${sdnc.northbound.version}</version>
61 <classifier>repo</classifier>
71 <groupId>org.codehaus.groovy.maven</groupId>
72 <artifactId>gmaven-plugin</artifactId>
75 <phase>validate</phase>
80 <source>${basedir}/../TagVersion.groovy</source>
87 <groupId>io.fabric8</groupId>
88 <artifactId>docker-maven-plugin</artifactId>
89 <version>0.28.0</version>
90 <inherited>false</inherited>
93 <id>generate-images</id>
94 <phase>package</phase>
101 <name>${image.name}</name>
103 <cleanup>try</cleanup>
104 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
105 <dockerFile>Dockerfile</dockerFile>
107 <tag>${project.docker.latestminortag.version}</tag>
108 <tag>${project.docker.latestfulltag.version}</tag>
109 <tag>${project.docker.latesttagtimestamp.version}</tag>
118 <phase>${docker.push.phase}</phase>
126 <name>${image.name}</name>
128 <cleanup>try</cleanup>
129 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
130 <dockerFile>Dockerfile</dockerFile>
132 <tag>${project.docker.latestminortag.version}</tag>
133 <tag>${project.docker.latestfulltag.version}</tag>
134 <tag>${project.docker.latesttagtimestamp.version}</tag>
142 <id>generate-standalone-images</id>
143 <phase>package</phase>
150 <name>${standalone.image.name}</name>
152 <cleanup>try</cleanup>
153 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
154 <dockerFile>standalone.Dockerfile</dockerFile>
156 <tag>${project.docker.latestminortag.version}</tag>
157 <tag>${project.docker.latestfulltag.version}</tag>
158 <tag>${project.docker.latesttagtimestamp.version}</tag>
166 <id>push-standalone-images</id>
167 <phase>${docker.push.phase}</phase>
175 <name>${standalone.image.name}</name>
177 <cleanup>try</cleanup>
178 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
179 <dockerFile>standalone.Dockerfile</dockerFile>
181 <tag>${project.docker.latestminortag.version}</tag>
182 <tag>${project.docker.latestfulltag.version}</tag>
183 <tag>${project.docker.latesttagtimestamp.version}</tag>
193 <artifactId>maven-resources-plugin</artifactId>
194 <version>2.6</version>
197 <id>copy-dockerfile</id>
199 <goal>copy-resources</goal>
200 </goals><!-- here the phase you need -->
201 <phase>validate</phase>
203 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
206 <directory>src/main/docker</directory>
208 <include>Dockerfile</include>
209 <include>standalone.Dockerfile</include>
211 <filtering>true</filtering>
217 <id>copy-scripts</id>
219 <goal>copy-resources</goal>
220 </goals><!-- here the phase you need -->
221 <phase>validate</phase>
223 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
226 <directory>src/main/scripts</directory>
228 <include>*.py</include>
229 <include>*.sh</include>
231 <filtering>false</filtering>
237 <id>copy-tarballs</id>
239 <goal>copy-resources</goal>
240 </goals><!-- here the phase you need -->
241 <phase>validate</phase>
243 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
246 <directory>src/main/resources</directory>
248 <include>idmlight.db.mv.db</include>
249 <include>truststoreONAPall.jks</include>
250 <include>aaa-app-config.xml</include>
252 <filtering>false</filtering>
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</outputDirectory>
267 <directory>src/main/resources</directory>
269 <include>*.dump</include>
271 <filtering>false</filtering>
277 <id>copy-properties</id>
279 <goal>copy-resources</goal>
280 </goals><!-- here the phase you need -->
281 <phase>validate</phase>
283 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
286 <directory>../src/main/properties</directory>
288 <include>*.properties</include>
289 <include>*.props</include>
290 <include>*.csv</include>
292 <filtering>false</filtering>
298 <id>copy-keystores</id>
300 <goal>copy-resources</goal>
301 </goals><!-- here the phase you need -->
302 <phase>validate</phase>
304 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
307 <directory>../src/main/stores</directory>
309 <include>*.jks</include>
310 <include>*.keyfile</include>
311 <include>*.p12</include>
313 <filtering>false</filtering>
321 <groupId>org.apache.maven.plugins</groupId>
322 <artifactId>maven-dependency-plugin</artifactId>
323 <version>3.0.2</version>
326 <id>unpack sdnc features</id>
327 <phase>generate-sources</phase>
329 <goal>unpack-dependencies</goal>
332 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
333 <excludeTransitive>true</excludeTransitive>
338 <phase>generate-sources</phase>
343 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
346 <groupId>${project.groupId}</groupId>
347 <artifactId>platform-logic-installer</artifactId>
348 <version>${project.version}</version>
355 <id>unpack migration utility</id>
356 <phase>generate-sources</phase>
361 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
364 <groupId>org.onap.sdnc.oam</groupId>
365 <artifactId>data-migrator</artifactId>
366 <version>1.5.1-SNAPSHOT</version>
375 <artifactId>exec-maven-plugin</artifactId>
376 <groupId>org.codehaus.mojo</groupId>
377 <version>1.5.0</version>
380 <id>change shell permissions</id>
381 <phase>process-sources</phase>
386 <executable>/usr/bin/find</executable>
388 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
389 <argument>-name</argument>
390 <argument>*.sh</argument>
391 <argument>-exec</argument>
392 <argument>chmod</argument>
393 <argument>+x</argument>
394 <argument>{}</argument>
395 <argument>;</argument>