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.1.0-SNAPSHOT</version>
13 <groupId>org.onap.ccsdk.distribution</groupId>
14 <artifactId>distribution-odlsli</artifactId>
15 <version>0.3.0-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>
28 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
29 <docker.push.phase>deploy</docker.push.phase>
35 <groupId>org.onap.ccsdk.sli.core</groupId>
36 <artifactId>dblib-installer</artifactId>
37 <version>${ccsdk.sli.core.version}</version>
41 <groupId>org.onap.ccsdk.sli.core</groupId>
42 <artifactId>filters-installer</artifactId>
43 <version>${ccsdk.sli.core.version}</version>
47 <groupId>org.onap.ccsdk.sli.core</groupId>
48 <artifactId>sli-installer</artifactId>
49 <version>${ccsdk.sli.core.version}</version>
53 <groupId>org.onap.ccsdk.sli.core</groupId>
54 <artifactId>sliapi-installer</artifactId>
55 <version>${ccsdk.sli.core.version}</version>
59 <groupId>org.onap.ccsdk.sli.core</groupId>
60 <artifactId>sliPluginUtils-installer</artifactId>
61 <version>${ccsdk.sli.core.version}</version>
65 <groupId>org.onap.ccsdk.sli.core</groupId>
66 <artifactId>utils-installer</artifactId>
67 <version>${ccsdk.sli.core.version}</version>
71 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
72 <artifactId>aai-service-installer</artifactId>
73 <version>${ccsdk.sli.adaptors.version}</version>
77 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
78 <artifactId>mdsal-resource-installer</artifactId>
79 <version>${ccsdk.sli.adaptors.version}</version>
83 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
84 <artifactId>resource-assignment-installer</artifactId>
85 <version>${ccsdk.sli.adaptors.version}</version>
89 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
90 <artifactId>sql-resource-installer</artifactId>
91 <version>${ccsdk.sli.adaptors.version}</version>
95 <groupId>org.onap.ccsdk.sli.northbound</groupId>
96 <artifactId>asdcApi-installer</artifactId>
97 <version>${ccsdk.sli.northbound.version}</version>
101 <groupId>org.onap.ccsdk.sli.northbound</groupId>
102 <artifactId>dataChange-installer</artifactId>
103 <version>${ccsdk.sli.northbound.version}</version>
107 <groupId>org.onap.ccsdk.sli.plugins</groupId>
108 <artifactId>properties-node-installer</artifactId>
109 <version>${ccsdk.sli.plugins.version}</version>
113 <groupId>org.onap.ccsdk.sli.plugins</groupId>
114 <artifactId>restapi-call-node-installer</artifactId>
115 <version>${ccsdk.sli.plugins.version}</version>
125 <groupId>org.codehaus.groovy.maven</groupId>
126 <artifactId>gmaven-plugin</artifactId>
129 <phase>validate</phase>
135 println project.properties['ccsdk.project.version'];
137 if (project.properties['ccsdk.project.version'] != null ) {
138 versionArray = project.properties['ccsdk.project.version'].split('\\.');
141 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) {
142 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
144 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
147 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
157 <artifactId>maven-resources-plugin</artifactId>
158 <version>2.6</version>
161 <id>copy-dockerfile</id>
163 <goal>copy-resources</goal>
164 </goals><!-- here the phase you need -->
165 <phase>validate</phase>
167 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
170 <directory>src/main/docker</directory>
172 <include>Dockerfile</include>
174 <filtering>true</filtering>
181 <id>copy-scripts</id>
183 <goal>copy-resources</goal>
184 </goals><!-- here the phase you need -->
185 <phase>validate</phase>
187 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
190 <directory>src/main/scripts</directory>
192 <include>*.sh</include>
194 <filtering>false</filtering>
201 <id>copy-tarballs</id>
203 <goal>copy-resources</goal>
204 </goals><!-- here the phase you need -->
205 <phase>validate</phase>
207 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
210 <directory>src/main/resources</directory>
212 <include>idmlight.db.mv.db</include>
214 <filtering>false</filtering>
222 <goal>copy-resources</goal>
223 </goals><!-- here the phase you need -->
224 <phase>validate</phase>
226 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
229 <directory>src/main/resources</directory>
231 <include>org.ops4j.pax.logging.cfg</include>
233 <filtering>false</filtering>
241 <goal>copy-resources</goal>
242 </goals><!-- here the phase you need -->
243 <phase>validate</phase>
245 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
248 <directory>src/main/resources</directory>
250 <include>*.dump</include>
252 <filtering>false</filtering>
258 <id>copy-properties</id>
260 <goal>copy-resources</goal>
261 </goals><!-- here the phase you need -->
262 <phase>validate</phase>
264 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
267 <directory>src/main/properties</directory>
269 <include>*.properties</include>
271 <filtering>false</filtering>
277 <id>copy-keystores</id>
279 <goal>copy-resources</goal>
280 </goals><!-- here the phase you need -->
281 <phase>validate</phase>
283 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
286 <directory>src/main/stores</directory>
288 <include>*.jks</include>
290 <filtering>false</filtering>
298 <groupId>org.apache.maven.plugins</groupId>
299 <artifactId>maven-dependency-plugin</artifactId>
300 <version>3.0.2</version>
303 <id>unpack features</id>
304 <phase>generate-sources</phase>
306 <goal>unpack-dependencies</goal>
309 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/features</outputDirectory>
310 <excludeTransitive>true</excludeTransitive>
315 <phase>generate-sources</phase>
320 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
323 <groupId>${project.groupId}</groupId>
324 <artifactId>platform-logic-installer</artifactId>
325 <version>${project.version}</version>
334 <groupId>org.codehaus.mojo</groupId>
335 <artifactId>exec-maven-plugin</artifactId>
336 <version>1.5.0</version>
340 <id>change shell permissions</id>
341 <phase>process-sources</phase>
346 <executable>/usr/bin/find</executable>
348 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
349 <argument>-name</argument>
350 <argument>*.sh</argument>
351 <argument>-exec</argument>
352 <argument>chmod</argument>
353 <argument>+x</argument>
354 <argument>{}</argument>
355 <argument>;</argument>
372 <groupId>io.fabric8</groupId>
373 <artifactId>docker-maven-plugin</artifactId>
374 <version>0.16.5</version>
375 <inherited>false</inherited>
379 <name>${image.name}</name>
381 <cleanup>try</cleanup>
382 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
383 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
385 <tag>${project.version}</tag>
386 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
387 <tag>${project.docker.latesttag.version}</tag>
395 <id>generate-images</id>
396 <phase>package</phase>
404 <phase>${docker.push.phase}</phase>