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.2-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.1-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</sdnc.northbound.version>
24 <ccsdk.docker.version>0.4.1-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>
150 <id>copy-scripts</id>
152 <goal>copy-resources</goal>
153 </goals><!-- here the phase you need -->
154 <phase>validate</phase>
156 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
159 <directory>src/main/scripts</directory>
161 <include>*.py</include>
162 <include>*.sh</include>
164 <filtering>false</filtering>
170 <id>copy-tarballs</id>
172 <goal>copy-resources</goal>
173 </goals><!-- here the phase you need -->
174 <phase>validate</phase>
176 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
179 <directory>src/main/resources</directory>
181 <include>idmlight.db.mv.db</include>
182 <include>AAF_RootCA.cer</include>
183 <include>truststoreONAPall.jks</include>
185 <filtering>false</filtering>
193 <goal>copy-resources</goal>
194 </goals><!-- here the phase you need -->
195 <phase>validate</phase>
197 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
200 <directory>src/main/resources</directory>
202 <include>*.dump</include>
204 <filtering>false</filtering>
210 <id>copy-properties</id>
212 <goal>copy-resources</goal>
213 </goals><!-- here the phase you need -->
214 <phase>validate</phase>
216 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
219 <directory>../src/main/properties</directory>
221 <include>*.properties</include>
223 <filtering>false</filtering>
229 <id>copy-keystores</id>
231 <goal>copy-resources</goal>
232 </goals><!-- here the phase you need -->
233 <phase>validate</phase>
235 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
238 <directory>../src/main/stores</directory>
240 <include>*.jks</include>
242 <filtering>false</filtering>
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-dependency-plugin</artifactId>
252 <version>3.0.2</version>
255 <id>unpack sdnc features</id>
256 <phase>generate-sources</phase>
258 <goal>unpack-dependencies</goal>
261 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
262 <excludeTransitive>true</excludeTransitive>
267 <phase>generate-sources</phase>
272 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
275 <groupId>${project.groupId}</groupId>
276 <artifactId>platform-logic-installer</artifactId>
277 <version>${project.version}</version>
286 <artifactId>exec-maven-plugin</artifactId>
287 <groupId>org.codehaus.mojo</groupId>
288 <version>1.5.0</version>
292 <id>change shell permissions</id>
293 <phase>process-sources</phase>
298 <executable>/usr/bin/find</executable>
300 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
301 <argument>-name</argument>
302 <argument>*.sh</argument>
303 <argument>-exec</argument>
304 <argument>chmod</argument>
305 <argument>+x</argument>
306 <argument>{}</argument>
307 <argument>;</argument>