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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
8 <version>1.2.0-SNAPSHOT</version>
11 <modelVersion>4.0.0</modelVersion>
12 <packaging>pom</packaging>
13 <groupId>org.onap.sdnc.oam</groupId>
14 <artifactId>installation-sdnc</artifactId>
15 <version>1.5.0-SNAPSHOT</version>
17 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
18 <description>Creates SDN Controller Docker container</description>
21 <image.name>onap/sdnc-image</image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
23 <sdnc.northbound.version>1.4.1</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>
77 println project.properties['sdnc.project.version'];
79 if ( project.properties['sdnc.project.version'] != null ) {
80 versionArray = project.properties['sdnc.project.version'].split('\\.');
83 if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT")) {
84 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
86 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
89 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
97 <groupId>io.fabric8</groupId>
98 <artifactId>docker-maven-plugin</artifactId>
99 <version>0.16.5</version>
100 <inherited>false</inherited>
104 <name>${image.name}</name>
106 <cleanup>try</cleanup>
107 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
108 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
110 <tag>${project.version}</tag>
111 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
112 <tag>${project.docker.latesttag.version}</tag>
120 <id>generate-images</id>
121 <phase>package</phase>
129 <phase>${docker.push.phase}</phase>
141 <artifactId>maven-resources-plugin</artifactId>
142 <version>2.6</version>
145 <id>copy-dockerfile</id>
147 <goal>copy-resources</goal>
148 </goals><!-- here the phase you need -->
149 <phase>validate</phase>
151 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
154 <directory>src/main/docker</directory>
156 <include>Dockerfile</include>
158 <filtering>true</filtering>
165 <id>copy-scripts</id>
167 <goal>copy-resources</goal>
168 </goals><!-- here the phase you need -->
169 <phase>validate</phase>
171 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
174 <directory>src/main/scripts</directory>
176 <include>*.sh</include>
178 <filtering>false</filtering>
185 <id>copy-tarballs</id>
187 <goal>copy-resources</goal>
188 </goals><!-- here the phase you need -->
189 <phase>validate</phase>
191 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
194 <directory>src/main/resources</directory>
196 <include>idmlight.db.mv.db</include>
197 <include>AAF_RootCA.cer</include>
198 <include>truststoreONAPall.jks</include>
200 <filtering>false</filtering>
208 <goal>copy-resources</goal>
209 </goals><!-- here the phase you need -->
210 <phase>validate</phase>
212 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
215 <directory>src/main/resources</directory>
217 <include>*.dump</include>
219 <filtering>false</filtering>
225 <id>copy-properties</id>
227 <goal>copy-resources</goal>
228 </goals><!-- here the phase you need -->
229 <phase>validate</phase>
231 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
234 <directory>../src/main/properties</directory>
236 <include>*.properties</include>
238 <filtering>false</filtering>
244 <id>copy-keystores</id>
246 <goal>copy-resources</goal>
247 </goals><!-- here the phase you need -->
248 <phase>validate</phase>
250 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
253 <directory>../src/main/stores</directory>
255 <include>*.jks</include>
257 <filtering>false</filtering>
265 <groupId>org.apache.maven.plugins</groupId>
266 <artifactId>maven-dependency-plugin</artifactId>
267 <version>3.0.2</version>
270 <id>unpack sdnc features</id>
271 <phase>generate-sources</phase>
273 <goal>unpack-dependencies</goal>
276 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
277 <excludeTransitive>true</excludeTransitive>
282 <phase>generate-sources</phase>
287 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
290 <groupId>${project.groupId}</groupId>
291 <artifactId>platform-logic-installer</artifactId>
292 <version>${project.version}</version>
301 <artifactId>exec-maven-plugin</artifactId>
302 <groupId>org.codehaus.mojo</groupId>
303 <version>1.5.0</version>
307 <id>change shell permissions</id>
308 <phase>process-sources</phase>
313 <executable>/usr/bin/find</executable>
315 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
316 <argument>-name</argument>
317 <argument>*.sh</argument>
318 <argument>-exec</argument>
319 <argument>chmod</argument>
320 <argument>+x</argument>
321 <argument>{}</argument>
322 <argument>;</argument>