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 <artifactId>distribution-odlsli</artifactId>
14 <version>0.2.1-SNAPSHOT</version>
15 <packaging>pom</packaging>
17 <name>ccsdk-distribution :: odlsli</name>
18 <description>Creates SDN Controller Docker container</description>
20 <name>openECOMP</name>
24 <image.name>onap/ccsdk-odlsli-image</image.name>
25 <ccsdk.project.version>${project.version}</ccsdk.project.version>
26 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
32 <groupId>org.onap.ccsdk.sli.core</groupId>
33 <artifactId>dblib-installer</artifactId>
34 <version>${ccsdk.sli.core.version}</version>
38 <groupId>org.onap.ccsdk.sli.core</groupId>
39 <artifactId>filters-installer</artifactId>
40 <version>${ccsdk.sli.core.version}</version>
44 <groupId>org.onap.ccsdk.sli.core</groupId>
45 <artifactId>sli-installer</artifactId>
46 <version>${ccsdk.sli.core.version}</version>
50 <groupId>org.onap.ccsdk.sli.core</groupId>
51 <artifactId>sliapi-installer</artifactId>
52 <version>${ccsdk.sli.core.version}</version>
56 <groupId>org.onap.ccsdk.sli.core</groupId>
57 <artifactId>sliPluginUtils-installer</artifactId>
58 <version>${ccsdk.sli.core.version}</version>
62 <groupId>org.onap.ccsdk.sli.core</groupId>
63 <artifactId>utils-installer</artifactId>
64 <version>${ccsdk.sli.core.version}</version>
68 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
69 <artifactId>aai-service-installer</artifactId>
70 <version>${ccsdk.sli.adaptors.version}</version>
74 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
75 <artifactId>mdsal-resource-installer</artifactId>
76 <version>${ccsdk.sli.adaptors.version}</version>
80 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
81 <artifactId>resource-assignment-installer</artifactId>
82 <version>${ccsdk.sli.adaptors.version}</version>
86 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
87 <artifactId>sql-resource-installer</artifactId>
88 <version>${ccsdk.sli.adaptors.version}</version>
92 <groupId>org.onap.ccsdk.sli.northbound</groupId>
93 <artifactId>asdcApi-installer</artifactId>
94 <version>${ccsdk.sli.northbound.version}</version>
98 <groupId>org.onap.ccsdk.sli.northbound</groupId>
99 <artifactId>dataChange-installer</artifactId>
100 <version>${ccsdk.sli.northbound.version}</version>
104 <groupId>org.onap.ccsdk.sli.plugins</groupId>
105 <artifactId>properties-node-installer</artifactId>
106 <version>${ccsdk.sli.plugins.version}</version>
110 <groupId>org.onap.ccsdk.sli.plugins</groupId>
111 <artifactId>restapi-call-node-installer</artifactId>
112 <version>${ccsdk.sli.plugins.version}</version>
122 <groupId>org.codehaus.groovy.maven</groupId>
123 <artifactId>gmaven-plugin</artifactId>
126 <phase>validate</phase>
132 println project.properties['ccsdk.project.version'];
134 if (project.properties['ccsdk.project.version'] != null ) {
135 versionArray = project.properties['ccsdk.project.version'].split('\\.');
138 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) {
139 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
141 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
144 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
154 <artifactId>maven-resources-plugin</artifactId>
155 <version>2.6</version>
158 <id>copy-dockerfile</id>
160 <goal>copy-resources</goal>
161 </goals><!-- here the phase you need -->
162 <phase>validate</phase>
164 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
167 <directory>src/main/docker</directory>
169 <include>Dockerfile</include>
171 <filtering>true</filtering>
178 <id>copy-scripts</id>
180 <goal>copy-resources</goal>
181 </goals><!-- here the phase you need -->
182 <phase>validate</phase>
184 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
187 <directory>src/main/scripts</directory>
189 <include>*.sh</include>
191 <filtering>false</filtering>
198 <id>copy-tarballs</id>
200 <goal>copy-resources</goal>
201 </goals><!-- here the phase you need -->
202 <phase>validate</phase>
204 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
207 <directory>src/main/resources</directory>
209 <include>idmlight.db.mv.db</include>
211 <filtering>false</filtering>
219 <goal>copy-resources</goal>
220 </goals><!-- here the phase you need -->
221 <phase>validate</phase>
223 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
226 <directory>src/main/resources</directory>
228 <include>org.ops4j.pax.logging.cfg</include>
230 <filtering>false</filtering>
238 <goal>copy-resources</goal>
239 </goals><!-- here the phase you need -->
240 <phase>validate</phase>
242 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
245 <directory>src/main/resources</directory>
247 <include>*.dump</include>
249 <filtering>false</filtering>
255 <id>copy-properties</id>
257 <goal>copy-resources</goal>
258 </goals><!-- here the phase you need -->
259 <phase>validate</phase>
261 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
264 <directory>src/main/properties</directory>
266 <include>*.properties</include>
268 <filtering>false</filtering>
274 <id>copy-keystores</id>
276 <goal>copy-resources</goal>
277 </goals><!-- here the phase you need -->
278 <phase>validate</phase>
280 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
283 <directory>src/main/stores</directory>
285 <include>*.jks</include>
287 <filtering>false</filtering>
295 <groupId>org.apache.maven.plugins</groupId>
296 <artifactId>maven-dependency-plugin</artifactId>
297 <version>3.0.2</version>
300 <id>unpack features</id>
301 <phase>generate-sources</phase>
303 <goal>unpack-dependencies</goal>
306 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/features</outputDirectory>
307 <excludeTransitive>true</excludeTransitive>
313 <groupId>org.codehaus.mojo</groupId>
314 <artifactId>exec-maven-plugin</artifactId>
315 <version>1.5.0</version>
319 <id>Get features</id>
320 <phase>generate-sources</phase>
325 <executable>/bin/bash</executable>
326 <environmentVariables>
327 <SDNC_CORE_VERSION>${ccsdk.sli.core.version}</SDNC_CORE_VERSION>
328 <SDNC_ADAPTORS_VERSION>${ccsdk.sli.adaptors.version}</SDNC_ADAPTORS_VERSION>
329 <SDNC_NORTHBOUND_VERSION>${ccsdk.sli.northbound.version}</SDNC_NORTHBOUND_VERSION>
330 <SDNC_PLUGINS_VERSION>${ccsdk.sli.plugins.version}</SDNC_PLUGINS_VERSION>
331 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
332 </environmentVariables>
334 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
335 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
341 <id>change shell permissions</id>
342 <phase>process-sources</phase>
347 <executable>/usr/bin/find</executable>
349 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
350 <argument>-name</argument>
351 <argument>*.sh</argument>
352 <argument>-exec</argument>
353 <argument>chmod</argument>
354 <argument>+x</argument>
355 <argument>{}</argument>
356 <argument>;</argument>
373 <groupId>io.fabric8</groupId>
374 <artifactId>docker-maven-plugin</artifactId>
375 <version>0.16.5</version>
376 <inherited>false</inherited>
380 <name>${image.name}</name>
382 <cleanup>try</cleanup>
383 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
384 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
386 <tag>${project.version}</tag>
387 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
388 <tag>${project.docker.latesttag.version}</tag>
396 <id>generate-images</id>
397 <phase>package</phase>
405 <phase>deploy</phase>