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/maven-v4_0_0.xsd">
6 <groupId>org.onap.ccsdk.distribution</groupId>
7 <artifactId>distribution-root</artifactId>
8 <version>0.1.1-SNAPSHOT</version>
10 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <artifactId>distribution-odlsli</artifactId>
13 <version>0.1.1-SNAPSHOT</version>
15 <name>Distribution - odlsli</name>
16 <description>Creates SDN Controller Docker container</description>
19 <image.name>onap/ccsdk-odlsli-image</image.name>
20 <ccsdk.project.version>${project.version}</ccsdk.project.version>
21 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
30 <groupId>org.codehaus.groovy.maven</groupId>
31 <artifactId>gmaven-plugin</artifactId>
34 <phase>validate</phase>
40 println project.properties['ccsdk.project.version'];
42 if ( project.properties['ccsdk.project.version'] != null ) {
43 versionArray = project.properties['ccsdk.project.version'].split('\\.');
46 if (project.properties['ccsdk.project.version'].endsWith("-amsterdam"))
48 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
50 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
53 println 'New Tag for docker:' +
54 project.properties['project.docker.latesttag.version'];
64 <artifactId>maven-resources-plugin</artifactId>
65 <version>2.6</version>
68 <id>copy-dockerfile</id>
70 <goal>copy-resources</goal>
71 </goals><!-- here the phase you need -->
72 <phase>validate</phase>
74 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
77 <directory>src/main/docker</directory>
79 <include>Dockerfile</include>
81 <filtering>true</filtering>
90 <goal>copy-resources</goal>
91 </goals><!-- here the phase you need -->
92 <phase>validate</phase>
94 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
97 <directory>src/main/scripts</directory>
99 <include>*.sh</include>
101 <filtering>false</filtering>
108 <id>copy-tarballs</id>
110 <goal>copy-resources</goal>
111 </goals><!-- here the phase you need -->
112 <phase>validate</phase>
114 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
117 <directory>src/main/resources</directory>
119 <include>idmlight.db.mv.db</include>
121 <filtering>false</filtering>
129 <goal>copy-resources</goal>
130 </goals><!-- here the phase you need -->
131 <phase>validate</phase>
133 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
136 <directory>src/main/resources</directory>
138 <include>org.ops4j.pax.logging.cfg</include>
140 <filtering>false</filtering>
148 <goal>copy-resources</goal>
149 </goals><!-- here the phase you need -->
150 <phase>validate</phase>
152 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
155 <directory>src/main/resources</directory>
157 <include>*.dump</include>
159 <filtering>false</filtering>
165 <id>copy-properties</id>
167 <goal>copy-resources</goal>
168 </goals><!-- here the phase you need -->
169 <phase>validate</phase>
171 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
174 <directory>src/main/properties</directory>
176 <include>*.properties</include>
178 <filtering>false</filtering>
184 <id>copy-keystores</id>
186 <goal>copy-resources</goal>
187 </goals><!-- here the phase you need -->
188 <phase>validate</phase>
190 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
193 <directory>src/main/stores</directory>
195 <include>*.jks</include>
197 <filtering>false</filtering>
205 <artifactId>exec-maven-plugin</artifactId>
206 <groupId>org.codehaus.mojo</groupId>
207 <version>1.5.0</version>
211 <id>Get features</id>
212 <phase>generate-sources</phase>
217 <executable>/bin/bash</executable>
218 <environmentVariables>
219 <SDNC_CORE_VERSION>${ccsdk.sli.core.version}</SDNC_CORE_VERSION>
220 <SDNC_ADAPTORS_VERSION>${ccsdk.sli.adaptors.version}</SDNC_ADAPTORS_VERSION>
221 <SDNC_NORTHBOUND_VERSION>${ccsdk.sli.northbound.version}</SDNC_NORTHBOUND_VERSION>
222 <SDNC_PLUGINS_VERSION>${ccsdk.sli.plugins.version}</SDNC_PLUGINS_VERSION>
223 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
224 </environmentVariables>
226 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
227 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
233 <id>change shell permissions</id>
234 <phase>process-sources</phase>
239 <executable>/usr/bin/find</executable>
241 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
242 <argument>-name</argument>
243 <argument>*.sh</argument>
244 <argument>-exec</argument>
245 <argument>chmod</argument>
246 <argument>+x</argument>
247 <argument>{}</argument>
248 <argument>;</argument>
266 <groupId>io.fabric8</groupId>
267 <artifactId>docker-maven-plugin</artifactId>
268 <version>0.16.5</version>
269 <inherited>false</inherited>
273 <name>${image.name}</name>
275 <cleanup>try</cleanup>
276 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
277 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
279 <tag>${project.version}</tag>
280 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
281 <tag>${project.docker.latesttag.version}</tag>
289 <id>generate-images</id>
290 <phase>package</phase>
298 <phase>deploy</phase>
311 <name>openECOMP</name>