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.2</version>
13 <groupId>org.onap.ccsdk.distribution</groupId>
14 <artifactId>distribution-odlsli</artifactId>
15 <version>0.2.2-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>
34 <groupId>org.onap.ccsdk.sli.core</groupId>
35 <artifactId>dblib-installer</artifactId>
36 <version>${ccsdk.sli.core.version}</version>
40 <groupId>org.onap.ccsdk.sli.core</groupId>
41 <artifactId>filters-installer</artifactId>
42 <version>${ccsdk.sli.core.version}</version>
46 <groupId>org.onap.ccsdk.sli.core</groupId>
47 <artifactId>sli-installer</artifactId>
48 <version>${ccsdk.sli.core.version}</version>
52 <groupId>org.onap.ccsdk.sli.core</groupId>
53 <artifactId>sliapi-installer</artifactId>
54 <version>${ccsdk.sli.core.version}</version>
58 <groupId>org.onap.ccsdk.sli.core</groupId>
59 <artifactId>sliPluginUtils-installer</artifactId>
60 <version>${ccsdk.sli.core.version}</version>
64 <groupId>org.onap.ccsdk.sli.core</groupId>
65 <artifactId>utils-installer</artifactId>
66 <version>${ccsdk.sli.core.version}</version>
70 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
71 <artifactId>aai-service-installer</artifactId>
72 <version>${ccsdk.sli.adaptors.version}</version>
76 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
77 <artifactId>mdsal-resource-installer</artifactId>
78 <version>${ccsdk.sli.adaptors.version}</version>
82 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
83 <artifactId>resource-assignment-installer</artifactId>
84 <version>${ccsdk.sli.adaptors.version}</version>
88 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
89 <artifactId>sql-resource-installer</artifactId>
90 <version>${ccsdk.sli.adaptors.version}</version>
94 <groupId>org.onap.ccsdk.sli.northbound</groupId>
95 <artifactId>asdcApi-installer</artifactId>
96 <version>${ccsdk.sli.northbound.version}</version>
100 <groupId>org.onap.ccsdk.sli.northbound</groupId>
101 <artifactId>dataChange-installer</artifactId>
102 <version>${ccsdk.sli.northbound.version}</version>
106 <groupId>org.onap.ccsdk.sli.plugins</groupId>
107 <artifactId>properties-node-installer</artifactId>
108 <version>${ccsdk.sli.plugins.version}</version>
112 <groupId>org.onap.ccsdk.sli.plugins</groupId>
113 <artifactId>restapi-call-node-installer</artifactId>
114 <version>${ccsdk.sli.plugins.version}</version>
124 <groupId>org.codehaus.groovy.maven</groupId>
125 <artifactId>gmaven-plugin</artifactId>
128 <phase>validate</phase>
134 println project.properties['ccsdk.project.version'];
136 if (project.properties['ccsdk.project.version'] != null ) {
137 versionArray = project.properties['ccsdk.project.version'].split('\\.');
140 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) {
141 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
143 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
146 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
156 <artifactId>maven-resources-plugin</artifactId>
157 <version>2.6</version>
160 <id>copy-dockerfile</id>
162 <goal>copy-resources</goal>
163 </goals><!-- here the phase you need -->
164 <phase>validate</phase>
166 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
169 <directory>src/main/docker</directory>
171 <include>Dockerfile</include>
173 <filtering>true</filtering>
180 <id>copy-scripts</id>
182 <goal>copy-resources</goal>
183 </goals><!-- here the phase you need -->
184 <phase>validate</phase>
186 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
189 <directory>src/main/scripts</directory>
191 <include>*.sh</include>
193 <filtering>false</filtering>
200 <id>copy-tarballs</id>
202 <goal>copy-resources</goal>
203 </goals><!-- here the phase you need -->
204 <phase>validate</phase>
206 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
209 <directory>src/main/resources</directory>
211 <include>idmlight.db.mv.db</include>
213 <filtering>false</filtering>
221 <goal>copy-resources</goal>
222 </goals><!-- here the phase you need -->
223 <phase>validate</phase>
225 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
228 <directory>src/main/resources</directory>
230 <include>org.ops4j.pax.logging.cfg</include>
232 <filtering>false</filtering>
240 <goal>copy-resources</goal>
241 </goals><!-- here the phase you need -->
242 <phase>validate</phase>
244 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
247 <directory>src/main/resources</directory>
249 <include>*.dump</include>
251 <filtering>false</filtering>
257 <id>copy-properties</id>
259 <goal>copy-resources</goal>
260 </goals><!-- here the phase you need -->
261 <phase>validate</phase>
263 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
266 <directory>src/main/properties</directory>
268 <include>*.properties</include>
270 <filtering>false</filtering>
276 <id>copy-keystores</id>
278 <goal>copy-resources</goal>
279 </goals><!-- here the phase you need -->
280 <phase>validate</phase>
282 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
285 <directory>src/main/stores</directory>
287 <include>*.jks</include>
289 <filtering>false</filtering>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-dependency-plugin</artifactId>
299 <version>3.0.2</version>
302 <id>unpack features</id>
303 <phase>generate-sources</phase>
305 <goal>unpack-dependencies</goal>
308 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/features</outputDirectory>
309 <excludeTransitive>true</excludeTransitive>
314 <phase>generate-sources</phase>
319 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
322 <groupId>${project.groupId}</groupId>
323 <artifactId>platform-logic-installer</artifactId>
324 <version>${project.version}</version>
333 <groupId>org.codehaus.mojo</groupId>
334 <artifactId>exec-maven-plugin</artifactId>
335 <version>1.5.0</version>
339 <id>change shell permissions</id>
340 <phase>process-sources</phase>
345 <executable>/usr/bin/find</executable>
347 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
348 <argument>-name</argument>
349 <argument>*.sh</argument>
350 <argument>-exec</argument>
351 <argument>chmod</argument>
352 <argument>+x</argument>
353 <argument>{}</argument>
354 <argument>;</argument>
371 <groupId>io.fabric8</groupId>
372 <artifactId>docker-maven-plugin</artifactId>
373 <version>0.16.5</version>
374 <inherited>false</inherited>
378 <name>${image.name}</name>
380 <cleanup>try</cleanup>
381 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
382 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
384 <tag>${project.version}</tag>
385 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
386 <tag>${project.docker.latesttag.version}</tag>
394 <id>generate-images</id>
395 <phase>package</phase>
403 <phase>deploy</phase>