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.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
8 <version>1.0.1-SNAPSHOT</version>
11 <modelVersion>4.0.0</modelVersion>
12 <packaging>pom</packaging>
13 <groupId>org.onap.sdnc.oam</groupId>
14 <artifactId>installation-sdnc</artifactId>
15 <version>1.3.1-SNAPSHOT</version>
17 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
18 <description>Creates SDN Controller Docker container</description>
21 <image.name>onap/sdnc-image</image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
23 <sdnc.northbound.version>1.3.1-SNAPSHOT</sdnc.northbound.version>
24 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
25 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
30 <groupId>org.onap.sdnc.northbound</groupId>
31 <artifactId>generic-resource-api-installer</artifactId>
32 <version>${sdnc.northbound.version}</version>
36 <groupId>org.onap.sdnc.northbound</groupId>
37 <artifactId>vnfapi-installer</artifactId>
38 <version>${sdnc.northbound.version}</version>
42 <groupId>org.onap.sdnc.northbound</groupId>
43 <artifactId>vnftools-installer</artifactId>
44 <version>${sdnc.northbound.version}</version>
48 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
49 <artifactId>ansible-adapter-installer</artifactId>
50 <version>${ccsdk.sli.adaptors.version}</version>
54 <groupId>org.onap.ccsdk.sli.northbound</groupId>
55 <artifactId>lcm-installer</artifactId>
56 <version>${ccsdk.sli.northbound.version}</version>
66 <groupId>org.codehaus.groovy.maven</groupId>
67 <artifactId>gmaven-plugin</artifactId>
70 <phase>validate</phase>
76 println project.properties['sdnc.project.version'];
78 if ( project.properties['sdnc.project.version'] != null ) {
79 versionArray = project.properties['sdnc.project.version'].split('\\.');
82 if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT")) {
83 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
85 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
88 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
96 <groupId>io.fabric8</groupId>
97 <artifactId>docker-maven-plugin</artifactId>
98 <version>0.16.5</version>
99 <inherited>false</inherited>
103 <name>${image.name}</name>
105 <cleanup>try</cleanup>
106 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
107 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
109 <tag>${project.version}</tag>
110 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
111 <tag>${project.docker.latesttag.version}</tag>
119 <id>generate-images</id>
120 <phase>package</phase>
128 <phase>deploy</phase>
140 <artifactId>maven-resources-plugin</artifactId>
141 <version>2.6</version>
144 <id>copy-dockerfile</id>
146 <goal>copy-resources</goal>
147 </goals><!-- here the phase you need -->
148 <phase>validate</phase>
150 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
153 <directory>src/main/docker</directory>
155 <include>Dockerfile</include>
157 <filtering>true</filtering>
164 <id>copy-scripts</id>
166 <goal>copy-resources</goal>
167 </goals><!-- here the phase you need -->
168 <phase>validate</phase>
170 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
173 <directory>src/main/scripts</directory>
175 <include>*.sh</include>
177 <filtering>false</filtering>
184 <id>copy-tarballs</id>
186 <goal>copy-resources</goal>
187 </goals><!-- here the phase you need -->
188 <phase>validate</phase>
190 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
193 <directory>src/main/resources</directory>
195 <include>idmlight.db.mv.db</include>
197 <filtering>false</filtering>
205 <goal>copy-resources</goal>
206 </goals><!-- here the phase you need -->
207 <phase>validate</phase>
209 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
212 <directory>src/main/resources</directory>
214 <include>*.dump</include>
216 <filtering>false</filtering>
222 <id>copy-properties</id>
224 <goal>copy-resources</goal>
225 </goals><!-- here the phase you need -->
226 <phase>validate</phase>
228 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
231 <directory>../src/main/properties</directory>
233 <include>*.properties</include>
235 <filtering>false</filtering>
241 <id>copy-keystores</id>
243 <goal>copy-resources</goal>
244 </goals><!-- here the phase you need -->
245 <phase>validate</phase>
247 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
250 <directory>../src/main/stores</directory>
252 <include>*.jks</include>
254 <filtering>false</filtering>
262 <groupId>org.apache.maven.plugins</groupId>
263 <artifactId>maven-dependency-plugin</artifactId>
264 <version>3.0.2</version>
267 <id>unpack-sdnc-features</id>
268 <phase>generate-sources</phase>
270 <goal>unpack-dependencies</goal>
273 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/features</outputDirectory>
274 <includeGroupIds>org.onap.sdnc</includeGroupIds>
275 <excludeTransitive>true</excludeTransitive>
279 <id>unpack-extra-ccsdk-features</id>
280 <phase>generate-sources</phase>
282 <goal>unpack-dependencies</goal>
285 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/features</outputDirectory>
286 <includeGroupIds>org.onap.ccsdk</includeGroupIds>
287 <excludeTransitive>true</excludeTransitive>
292 <phase>generate-sources</phase>
297 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
300 <groupId>${project.groupId}</groupId>
301 <artifactId>platform-logic-installer</artifactId>
302 <version>${project.version}</version>
311 <artifactId>exec-maven-plugin</artifactId>
312 <groupId>org.codehaus.mojo</groupId>
313 <version>1.5.0</version>
317 <id>change shell permissions</id>
318 <phase>process-sources</phase>
323 <executable>/usr/bin/find</executable>
325 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
326 <argument>-name</argument>
327 <argument>*.sh</argument>
328 <argument>-exec</argument>
329 <argument>chmod</argument>
330 <argument>+x</argument>
331 <argument>{}</argument>
332 <argument>;</argument>
344 <name>openECOMP</name>