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/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
7 <groupId>org.onap.ccsdk.parent</groupId>
8 <artifactId>odlparent-lite</artifactId>
9 <version>1.0.1-SNAPSHOT</version>
13 <groupId>org.onap.ccsdk.distribution</groupId>
14 <artifactId>distribution-odlsli</artifactId>
15 <version>0.2.1-SNAPSHOT</version>
16 <packaging>pom</packaging>
18 <name>ccsdk-distribution :: odlsli</name>
19 <description>Creates SDN Controller Docker container</description>
21 <name>openECOMP</name>
25 <image.name>onap/ccsdk-odlsli-image</image.name>
26 <ccsdk.project.version>${project.version}</ccsdk.project.version>
27 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
33 <groupId>org.onap.ccsdk.sli.core</groupId>
34 <artifactId>dblib-installer</artifactId>
35 <version>${ccsdk.sli.core.version}</version>
39 <groupId>org.onap.ccsdk.sli.core</groupId>
40 <artifactId>filters-installer</artifactId>
41 <version>${ccsdk.sli.core.version}</version>
45 <groupId>org.onap.ccsdk.sli.core</groupId>
46 <artifactId>sli-installer</artifactId>
47 <version>${ccsdk.sli.core.version}</version>
51 <groupId>org.onap.ccsdk.sli.core</groupId>
52 <artifactId>sliapi-installer</artifactId>
53 <version>${ccsdk.sli.core.version}</version>
57 <groupId>org.onap.ccsdk.sli.core</groupId>
58 <artifactId>sliPluginUtils-installer</artifactId>
59 <version>${ccsdk.sli.core.version}</version>
63 <groupId>org.onap.ccsdk.sli.core</groupId>
64 <artifactId>utils-installer</artifactId>
65 <version>${ccsdk.sli.core.version}</version>
69 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
70 <artifactId>aai-service-installer</artifactId>
71 <version>${ccsdk.sli.adaptors.version}</version>
75 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
76 <artifactId>mdsal-resource-installer</artifactId>
77 <version>${ccsdk.sli.adaptors.version}</version>
81 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
82 <artifactId>resource-assignment-installer</artifactId>
83 <version>${ccsdk.sli.adaptors.version}</version>
87 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
88 <artifactId>sql-resource-installer</artifactId>
89 <version>${ccsdk.sli.adaptors.version}</version>
93 <groupId>org.onap.ccsdk.sli.northbound</groupId>
94 <artifactId>asdcApi-installer</artifactId>
95 <version>${ccsdk.sli.northbound.version}</version>
99 <groupId>org.onap.ccsdk.sli.northbound</groupId>
100 <artifactId>dataChange-installer</artifactId>
101 <version>${ccsdk.sli.northbound.version}</version>
105 <groupId>org.onap.ccsdk.sli.plugins</groupId>
106 <artifactId>properties-node-installer</artifactId>
107 <version>${ccsdk.sli.plugins.version}</version>
111 <groupId>org.onap.ccsdk.sli.plugins</groupId>
112 <artifactId>restapi-call-node-installer</artifactId>
113 <version>${ccsdk.sli.plugins.version}</version>
123 <groupId>org.codehaus.groovy.maven</groupId>
124 <artifactId>gmaven-plugin</artifactId>
127 <phase>validate</phase>
133 println project.properties['ccsdk.project.version'];
135 if (project.properties['ccsdk.project.version'] != null ) {
136 versionArray = project.properties['ccsdk.project.version'].split('\\.');
139 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) {
140 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
142 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
145 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
155 <artifactId>maven-resources-plugin</artifactId>
156 <version>2.6</version>
159 <id>copy-dockerfile</id>
161 <goal>copy-resources</goal>
162 </goals><!-- here the phase you need -->
163 <phase>validate</phase>
165 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
168 <directory>src/main/docker</directory>
170 <include>Dockerfile</include>
172 <filtering>true</filtering>
179 <id>copy-scripts</id>
181 <goal>copy-resources</goal>
182 </goals><!-- here the phase you need -->
183 <phase>validate</phase>
185 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
188 <directory>src/main/scripts</directory>
190 <include>*.sh</include>
192 <filtering>false</filtering>
199 <id>copy-tarballs</id>
201 <goal>copy-resources</goal>
202 </goals><!-- here the phase you need -->
203 <phase>validate</phase>
205 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
208 <directory>src/main/resources</directory>
210 <include>idmlight.db.mv.db</include>
212 <filtering>false</filtering>
220 <goal>copy-resources</goal>
221 </goals><!-- here the phase you need -->
222 <phase>validate</phase>
224 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
227 <directory>src/main/resources</directory>
229 <include>org.ops4j.pax.logging.cfg</include>
231 <filtering>false</filtering>
239 <goal>copy-resources</goal>
240 </goals><!-- here the phase you need -->
241 <phase>validate</phase>
243 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
246 <directory>src/main/resources</directory>
248 <include>*.dump</include>
250 <filtering>false</filtering>
256 <id>copy-properties</id>
258 <goal>copy-resources</goal>
259 </goals><!-- here the phase you need -->
260 <phase>validate</phase>
262 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
265 <directory>src/main/properties</directory>
267 <include>*.properties</include>
269 <filtering>false</filtering>
275 <id>copy-keystores</id>
277 <goal>copy-resources</goal>
278 </goals><!-- here the phase you need -->
279 <phase>validate</phase>
281 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
284 <directory>src/main/stores</directory>
286 <include>*.jks</include>
288 <filtering>false</filtering>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-dependency-plugin</artifactId>
298 <version>3.0.2</version>
301 <id>unpack features</id>
302 <phase>generate-sources</phase>
304 <goal>unpack-dependencies</goal>
307 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/features</outputDirectory>
308 <excludeTransitive>true</excludeTransitive>
314 <groupId>org.codehaus.mojo</groupId>
315 <artifactId>exec-maven-plugin</artifactId>
316 <version>1.5.0</version>
320 <id>Get features</id>
321 <phase>generate-sources</phase>
326 <executable>/bin/bash</executable>
327 <environmentVariables>
328 <SDNC_CORE_VERSION>${ccsdk.sli.core.version}</SDNC_CORE_VERSION>
329 <SDNC_ADAPTORS_VERSION>${ccsdk.sli.adaptors.version}</SDNC_ADAPTORS_VERSION>
330 <SDNC_NORTHBOUND_VERSION>${ccsdk.sli.northbound.version}</SDNC_NORTHBOUND_VERSION>
331 <SDNC_PLUGINS_VERSION>${ccsdk.sli.plugins.version}</SDNC_PLUGINS_VERSION>
332 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
333 </environmentVariables>
335 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
336 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
342 <id>change shell permissions</id>
343 <phase>process-sources</phase>
348 <executable>/usr/bin/find</executable>
350 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
351 <argument>-name</argument>
352 <argument>*.sh</argument>
353 <argument>-exec</argument>
354 <argument>chmod</argument>
355 <argument>+x</argument>
356 <argument>{}</argument>
357 <argument>;</argument>
374 <groupId>io.fabric8</groupId>
375 <artifactId>docker-maven-plugin</artifactId>
376 <version>0.16.5</version>
377 <inherited>false</inherited>
381 <name>${image.name}</name>
383 <cleanup>try</cleanup>
384 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
385 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
387 <tag>${project.version}</tag>
388 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
389 <tag>${project.docker.latesttag.version}</tag>
397 <id>generate-images</id>
398 <phase>package</phase>
406 <phase>deploy</phase>