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>
37 <groupId>org.onap.ccsdk.sli.core</groupId>
38 <artifactId>dblib-installer</artifactId>
39 <version>${ccsdk.sli.core.version}</version>
40 <classifier>repo</classifier>
44 <groupId>org.onap.ccsdk.sli.core</groupId>
45 <artifactId>filters-installer</artifactId>
46 <version>${ccsdk.sli.core.version}</version>
47 <classifier>repo</classifier>
51 <groupId>org.onap.ccsdk.sli.core</groupId>
52 <artifactId>sli-installer</artifactId>
53 <version>${ccsdk.sli.core.version}</version>
54 <classifier>repo</classifier>
58 <groupId>org.onap.ccsdk.sli.core</groupId>
59 <artifactId>sliapi-installer</artifactId>
60 <version>${ccsdk.sli.core.version}</version>
61 <classifier>repo</classifier>
65 <groupId>org.onap.ccsdk.sli.core</groupId>
66 <artifactId>sliPluginUtils-installer</artifactId>
67 <version>${ccsdk.sli.core.version}</version>
68 <classifier>repo</classifier>
72 <groupId>org.onap.ccsdk.sli.core</groupId>
73 <artifactId>utils-installer</artifactId>
74 <version>${ccsdk.sli.core.version}</version>
75 <classifier>repo</classifier>
79 <groupId>org.onap.ccsdk.sli.core</groupId>
80 <artifactId>slicore-features-installer</artifactId>
81 <version>${ccsdk.sli.core.version}</version>
82 <classifier>repo</classifier>
86 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
87 <artifactId>aai-service-installer</artifactId>
88 <version>${ccsdk.sli.adaptors.version}</version>
89 <classifier>repo</classifier>
93 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
94 <artifactId>ansible-adapter-installer</artifactId>
95 <version>${ccsdk.sli.adaptors.version}</version>
96 <classifier>repo</classifier>
100 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
101 <artifactId>mdsal-resource-installer</artifactId>
102 <version>${ccsdk.sli.adaptors.version}</version>
103 <classifier>repo</classifier>
107 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
108 <artifactId>resource-assignment-installer</artifactId>
109 <version>${ccsdk.sli.adaptors.version}</version>
110 <classifier>repo</classifier>
114 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
115 <artifactId>sql-resource-installer</artifactId>
116 <version>${ccsdk.sli.adaptors.version}</version>
117 <classifier>repo</classifier>
121 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
122 <artifactId>sliadaptors-features-installer</artifactId>
123 <version>${ccsdk.sli.adaptors.version}</version>
124 <classifier>repo</classifier>
128 <groupId>org.onap.ccsdk.sli.northbound</groupId>
129 <artifactId>asdcApi-installer</artifactId>
130 <version>${ccsdk.sli.northbound.version}</version>
131 <classifier>repo</classifier>
135 <groupId>org.onap.ccsdk.sli.northbound</groupId>
136 <artifactId>dataChange-installer</artifactId>
137 <version>${ccsdk.sli.northbound.version}</version>
138 <classifier>repo</classifier>
142 <groupId>org.onap.ccsdk.sli.northbound</groupId>
143 <artifactId>lcm-installer</artifactId>
144 <version>${ccsdk.sli.northbound.version}</version>
145 <classifier>repo</classifier>
149 <groupId>org.onap.ccsdk.sli.northbound</groupId>
150 <artifactId>slinorthbound-features-installer</artifactId>
151 <version>${ccsdk.sli.northbound.version}</version>
152 <classifier>repo</classifier>
156 <groupId>org.onap.ccsdk.sli.plugins</groupId>
157 <artifactId>properties-node-installer</artifactId>
158 <version>${ccsdk.sli.plugins.version}</version>
159 <classifier>repo</classifier>
163 <groupId>org.onap.ccsdk.sli.plugins</groupId>
164 <artifactId>restapi-call-node-installer</artifactId>
165 <version>${ccsdk.sli.plugins.version}</version>
166 <classifier>repo</classifier>
170 <groupId>org.onap.ccsdk.sli.plugins</groupId>
171 <artifactId>sliplugins-features-installer</artifactId>
172 <version>${ccsdk.sli.plugins.version}</version>
173 <classifier>repo</classifier>
183 <groupId>org.codehaus.groovy.maven</groupId>
184 <artifactId>gmaven-plugin</artifactId>
187 <phase>validate</phase>
193 println project.properties['ccsdk.project.version'];
195 if (project.properties['ccsdk.project.version'] != null ) {
196 versionArray = project.properties['ccsdk.project.version'].split('\\.');
199 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) {
200 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
202 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
205 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
215 <artifactId>maven-resources-plugin</artifactId>
216 <version>2.6</version>
219 <id>copy-dockerfile</id>
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/docker</directory>
230 <include>Dockerfile</include>
232 <filtering>true</filtering>
239 <id>copy-scripts</id>
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/bin</outputDirectory>
248 <directory>src/main/scripts</directory>
250 <include>*.sh</include>
252 <filtering>false</filtering>
259 <id>copy-odl-resources</id>
261 <goal>copy-resources</goal>
262 </goals><!-- here the phase you need -->
263 <phase>validate</phase>
265 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
268 <directory>src/main/resources</directory>
270 <include>idmlight.db.mv.db</include>
271 <include>org.ops4j.pax.logging.cfg</include>
272 <include>install_ccsdk.yml</include>
274 <filtering>false</filtering>
282 <goal>copy-resources</goal>
283 </goals><!-- here the phase you need -->
284 <phase>validate</phase>
286 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
289 <directory>src/main/resources</directory>
291 <include>org.ops4j.pax.logging.cfg</include>
293 <filtering>false</filtering>
301 <goal>copy-resources</goal>
302 </goals><!-- here the phase you need -->
303 <phase>validate</phase>
305 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory>
308 <directory>src/main/resources</directory>
310 <include>*.dump</include>
312 <filtering>false</filtering>
318 <id>copy-properties</id>
320 <goal>copy-resources</goal>
321 </goals><!-- here the phase you need -->
322 <phase>validate</phase>
324 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties</outputDirectory>
327 <directory>src/main/properties</directory>
329 <include>*.properties</include>
331 <filtering>false</filtering>
337 <id>copy-keystores</id>
339 <goal>copy-resources</goal>
340 </goals><!-- here the phase you need -->
341 <phase>validate</phase>
343 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory>
346 <directory>src/main/stores</directory>
348 <include>*.jks</include>
350 <filtering>false</filtering>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-dependency-plugin</artifactId>
360 <version>3.0.2</version>
363 <id>unpack features</id>
364 <phase>generate-sources</phase>
366 <goal>unpack-dependencies</goal>
369 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
370 <excludeTransitive>true</excludeTransitive>
375 <phase>generate-sources</phase>
380 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
383 <groupId>${project.groupId}</groupId>
384 <artifactId>platform-logic-installer</artifactId>
385 <version>${project.version}</version>
394 <groupId>org.codehaus.mojo</groupId>
395 <artifactId>exec-maven-plugin</artifactId>
396 <version>1.5.0</version>
400 <id>change shell permissions</id>
401 <phase>process-sources</phase>
406 <executable>/usr/bin/find</executable>
408 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
409 <argument>-name</argument>
410 <argument>*.sh</argument>
411 <argument>-exec</argument>
412 <argument>chmod</argument>
413 <argument>+x</argument>
414 <argument>{}</argument>
415 <argument>;</argument>
432 <groupId>io.fabric8</groupId>
433 <artifactId>docker-maven-plugin</artifactId>
434 <version>0.16.5</version>
435 <inherited>false</inherited>
439 <name>${image.name}</name>
441 <cleanup>try</cleanup>
442 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
443 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
445 <tag>${project.version}</tag>
446 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
447 <tag>${project.docker.latesttag.version}</tag>
455 <id>generate-images</id>
456 <phase>package</phase>
464 <phase>${docker.push.phase}</phase>