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.2.1-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.5.0-SNAPSHOT</version>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates SDN Controller Docker container</description>
20 <image.name>onap/sdnc-image</image.name>
21 <sdnc.project.version>${project.version}</sdnc.project.version>
22 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
23 <sdnc.northbound.version>1.5.0-SNAPSHOT</sdnc.northbound.version>
24 <ccsdk.docker.version>0.4-STAGING-latest</ccsdk.docker.version>
25 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
26 <docker.push.phase>deploy</docker.push.phase>
27 <docker.verbose>true</docker.verbose>
28 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
33 <groupId>org.onap.sdnc.northbound</groupId>
34 <artifactId>generic-resource-api-installer</artifactId>
35 <version>${sdnc.northbound.version}</version>
36 <classifier>repo</classifier>
40 <groupId>org.onap.sdnc.northbound</groupId>
41 <artifactId>vnfapi-installer</artifactId>
42 <version>${sdnc.northbound.version}</version>
43 <classifier>repo</classifier>
47 <groupId>org.onap.sdnc.northbound</groupId>
48 <artifactId>vnftools-installer</artifactId>
49 <version>${sdnc.northbound.version}</version>
50 <classifier>repo</classifier>
54 <groupId>org.onap.sdnc.northbound</groupId>
55 <artifactId>sdnc-northbound-features-installer</artifactId>
56 <version>${sdnc.northbound.version}</version>
57 <classifier>repo</classifier>
67 <groupId>org.codehaus.groovy.maven</groupId>
68 <artifactId>gmaven-plugin</artifactId>
71 <phase>validate</phase>
76 <source>${basedir}/../TagVersion.groovy</source>
83 <groupId>io.fabric8</groupId>
84 <artifactId>docker-maven-plugin</artifactId>
85 <version>0.28.0</version>
86 <inherited>false</inherited>
90 <name>${image.name}</name>
92 <cleanup>try</cleanup>
93 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
94 <dockerFile>Dockerfile</dockerFile>
96 <tag>${project.docker.latestminortag.version}</tag>
97 <tag>${project.docker.latestfulltag.version}</tag>
98 <tag>${project.docker.latesttagtimestamp.version}</tag>
106 <id>generate-images</id>
107 <phase>package</phase>
115 <phase>${docker.push.phase}</phase>
127 <artifactId>maven-resources-plugin</artifactId>
128 <version>2.6</version>
131 <id>copy-dockerfile</id>
133 <goal>copy-resources</goal>
134 </goals><!-- here the phase you need -->
135 <phase>validate</phase>
137 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
140 <directory>src/main/docker</directory>
142 <include>Dockerfile</include>
144 <filtering>true</filtering>
151 <id>copy-scripts</id>
153 <goal>copy-resources</goal>
154 </goals><!-- here the phase you need -->
155 <phase>validate</phase>
157 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
160 <directory>src/main/scripts</directory>
162 <include>*.sh</include>
164 <filtering>false</filtering>
171 <id>copy-tarballs</id>
173 <goal>copy-resources</goal>
174 </goals><!-- here the phase you need -->
175 <phase>validate</phase>
177 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
180 <directory>src/main/resources</directory>
182 <include>idmlight.db.mv.db</include>
183 <include>AAF_RootCA.cer</include>
184 <include>truststoreONAPall.jks</include>
186 <filtering>false</filtering>
194 <goal>copy-resources</goal>
195 </goals><!-- here the phase you need -->
196 <phase>validate</phase>
198 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
201 <directory>src/main/resources</directory>
203 <include>*.dump</include>
205 <filtering>false</filtering>
211 <id>copy-properties</id>
213 <goal>copy-resources</goal>
214 </goals><!-- here the phase you need -->
215 <phase>validate</phase>
217 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
220 <directory>../src/main/properties</directory>
222 <include>*.properties</include>
224 <filtering>false</filtering>
230 <id>copy-keystores</id>
232 <goal>copy-resources</goal>
233 </goals><!-- here the phase you need -->
234 <phase>validate</phase>
236 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
239 <directory>../src/main/stores</directory>
241 <include>*.jks</include>
243 <filtering>false</filtering>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-dependency-plugin</artifactId>
253 <version>3.0.2</version>
256 <id>unpack sdnc features</id>
257 <phase>generate-sources</phase>
259 <goal>unpack-dependencies</goal>
262 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
263 <excludeTransitive>true</excludeTransitive>
268 <phase>generate-sources</phase>
273 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
276 <groupId>${project.groupId}</groupId>
277 <artifactId>platform-logic-installer</artifactId>
278 <version>${project.version}</version>
287 <artifactId>exec-maven-plugin</artifactId>
288 <groupId>org.codehaus.mojo</groupId>
289 <version>1.5.0</version>
293 <id>change shell permissions</id>
294 <phase>process-sources</phase>
299 <executable>/usr/bin/find</executable>
301 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
302 <argument>-name</argument>
303 <argument>*.sh</argument>
304 <argument>-exec</argument>
305 <argument>chmod</argument>
306 <argument>+x</argument>
307 <argument>{}</argument>
308 <argument>;</argument>