1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
8 <groupId>org.onap.ccsdk.parent</groupId>
9 <artifactId>odlparent-lite</artifactId>
10 <version>1.1.0-SNAPSHOT</version>
14 <groupId>org.onap.ccsdk.distribution</groupId>
15 <artifactId>distribution-odlsli</artifactId>
16 <version>0.3.0-SNAPSHOT</version>
17 <packaging>pom</packaging>
19 <name>ccsdk-distribution :: odlsli</name>
20 <description>Creates SDN Controller Docker container</description>
22 <name>openECOMP</name>
26 <image.name>onap/ccsdk-odlsli-image</image.name>
27 <ccsdk.project.version>${project.version}</ccsdk.project.version>
28 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
29 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
30 <opendaylight.root>opt/opendaylight</opendaylight.root>
31 <docker.push.phase>deploy</docker.push.phase>
32 <docker.verbose>true</docker.verbose>
38 <groupId>org.onap.ccsdk.sli.core</groupId>
39 <artifactId>dblib-installer</artifactId>
40 <version>${ccsdk.sli.core.version}</version>
41 <classifier>repo</classifier>
45 <groupId>org.onap.ccsdk.sli.core</groupId>
46 <artifactId>filters-installer</artifactId>
47 <version>${ccsdk.sli.core.version}</version>
48 <classifier>repo</classifier>
52 <groupId>org.onap.ccsdk.sli.core</groupId>
53 <artifactId>sli-installer</artifactId>
54 <version>${ccsdk.sli.core.version}</version>
55 <classifier>repo</classifier>
59 <groupId>org.onap.ccsdk.sli.core</groupId>
60 <artifactId>sliapi-installer</artifactId>
61 <version>${ccsdk.sli.core.version}</version>
62 <classifier>repo</classifier>
66 <groupId>org.onap.ccsdk.sli.core</groupId>
67 <artifactId>sliPluginUtils-installer</artifactId>
68 <version>${ccsdk.sli.core.version}</version>
69 <classifier>repo</classifier>
73 <groupId>org.onap.ccsdk.sli.core</groupId>
74 <artifactId>utils-installer</artifactId>
75 <version>${ccsdk.sli.core.version}</version>
76 <classifier>repo</classifier>
80 <groupId>org.onap.ccsdk.sli.core</groupId>
81 <artifactId>slicore-features-installer</artifactId>
82 <version>${ccsdk.sli.core.version}</version>
83 <classifier>repo</classifier>
87 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
88 <artifactId>aai-service-installer</artifactId>
89 <version>${ccsdk.sli.adaptors.version}</version>
90 <classifier>repo</classifier>
94 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
95 <artifactId>ansible-adapter-installer</artifactId>
96 <version>${ccsdk.sli.adaptors.version}</version>
97 <classifier>repo</classifier>
101 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
102 <artifactId>mdsal-resource-installer</artifactId>
103 <version>${ccsdk.sli.adaptors.version}</version>
104 <classifier>repo</classifier>
108 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
109 <artifactId>resource-assignment-installer</artifactId>
110 <version>${ccsdk.sli.adaptors.version}</version>
111 <classifier>repo</classifier>
115 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
116 <artifactId>sql-resource-installer</artifactId>
117 <version>${ccsdk.sli.adaptors.version}</version>
118 <classifier>repo</classifier>
122 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
123 <artifactId>sliadaptors-features-installer</artifactId>
124 <version>${ccsdk.sli.adaptors.version}</version>
125 <classifier>repo</classifier>
129 <groupId>org.onap.ccsdk.sli.northbound</groupId>
130 <artifactId>asdcApi-installer</artifactId>
131 <version>${ccsdk.sli.northbound.version}</version>
132 <classifier>repo</classifier>
136 <groupId>org.onap.ccsdk.sli.northbound</groupId>
137 <artifactId>dataChange-installer</artifactId>
138 <version>${ccsdk.sli.northbound.version}</version>
139 <classifier>repo</classifier>
143 <groupId>org.onap.ccsdk.sli.northbound</groupId>
144 <artifactId>lcm-installer</artifactId>
145 <version>${ccsdk.sli.northbound.version}</version>
146 <classifier>repo</classifier>
150 <groupId>org.onap.ccsdk.sli.northbound</groupId>
151 <artifactId>slinorthbound-features-installer</artifactId>
152 <version>${ccsdk.sli.northbound.version}</version>
153 <classifier>repo</classifier>
157 <groupId>org.onap.ccsdk.sli.plugins</groupId>
158 <artifactId>properties-node-installer</artifactId>
159 <version>${ccsdk.sli.plugins.version}</version>
160 <classifier>repo</classifier>
164 <groupId>org.onap.ccsdk.sli.plugins</groupId>
165 <artifactId>restapi-call-node-installer</artifactId>
166 <version>${ccsdk.sli.plugins.version}</version>
167 <classifier>repo</classifier>
171 <groupId>org.onap.ccsdk.sli.plugins</groupId>
172 <artifactId>sliplugins-features-installer</artifactId>
173 <version>${ccsdk.sli.plugins.version}</version>
174 <classifier>repo</classifier>
184 <groupId>org.codehaus.groovy.maven</groupId>
185 <artifactId>gmaven-plugin</artifactId>
188 <phase>validate</phase>
194 println project.properties['ccsdk.project.version'];
196 if (project.properties['ccsdk.project.version'] != null ) {
197 versionArray = project.properties['ccsdk.project.version'].split('\\.');
200 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) {
201 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
203 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
206 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
216 <artifactId>maven-resources-plugin</artifactId>
217 <version>2.6</version>
220 <id>copy-dockerfile</id>
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/docker</directory>
231 <include>Dockerfile</include>
233 <filtering>true</filtering>
240 <id>copy-scripts</id>
242 <goal>copy-resources</goal>
243 </goals><!-- here the phase you need -->
244 <phase>validate</phase>
246 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
249 <directory>src/main/scripts</directory>
251 <include>*.sh</include>
253 <filtering>false</filtering>
260 <id>copy-odl-resources</id>
262 <goal>copy-resources</goal>
263 </goals><!-- here the phase you need -->
264 <phase>validate</phase>
266 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
269 <directory>src/main/resources</directory>
271 <include>idmlight.db.mv.db</include>
272 <include>org.ops4j.pax.logging.cfg</include>
273 <include>install_ccsdk.yml</include>
275 <filtering>false</filtering>
283 <goal>copy-resources</goal>
284 </goals><!-- here the phase you need -->
285 <phase>validate</phase>
287 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
290 <directory>src/main/resources</directory>
292 <include>org.ops4j.pax.logging.cfg</include>
294 <filtering>false</filtering>
302 <goal>copy-resources</goal>
303 </goals><!-- here the phase you need -->
304 <phase>validate</phase>
306 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
309 <directory>src/main/resources</directory>
311 <include>*.dump</include>
313 <filtering>false</filtering>
319 <id>copy-properties</id>
321 <goal>copy-resources</goal>
322 </goals><!-- here the phase you need -->
323 <phase>validate</phase>
325 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
328 <directory>src/main/properties</directory>
330 <include>*.properties</include>
332 <filtering>false</filtering>
338 <id>copy-keystores</id>
340 <goal>copy-resources</goal>
341 </goals><!-- here the phase you need -->
342 <phase>validate</phase>
344 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
347 <directory>src/main/stores</directory>
349 <include>*.jks</include>
351 <filtering>false</filtering>
359 <groupId>org.apache.maven.plugins</groupId>
360 <artifactId>maven-dependency-plugin</artifactId>
361 <version>3.0.2</version>
364 <id>unpack features</id>
365 <phase>generate-sources</phase>
367 <goal>unpack-dependencies</goal>
370 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
371 <excludeTransitive>true</excludeTransitive>
376 <phase>generate-sources</phase>
381 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
384 <groupId>${project.groupId}</groupId>
385 <artifactId>platform-logic-installer</artifactId>
386 <version>${project.version}</version>
395 <groupId>org.codehaus.mojo</groupId>
396 <artifactId>exec-maven-plugin</artifactId>
397 <version>1.5.0</version>
401 <id>change shell permissions</id>
402 <phase>process-sources</phase>
407 <executable>/usr/bin/find</executable>
409 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
410 <argument>-name</argument>
411 <argument>*.sh</argument>
412 <argument>-exec</argument>
413 <argument>chmod</argument>
414 <argument>+x</argument>
415 <argument>{}</argument>
416 <argument>;</argument>
433 <groupId>io.fabric8</groupId>
434 <artifactId>docker-maven-plugin</artifactId>
435 <version>0.16.5</version>
436 <inherited>false</inherited>
440 <name>${image.name}</name>
442 <cleanup>try</cleanup>
443 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
444 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
446 <tag>${project.version}</tag>
447 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
448 <tag>${project.docker.latesttag.version}</tag>
456 <id>generate-images</id>
457 <phase>package</phase>
465 <phase>${docker.push.phase}</phase>