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/maven-v4_0_0.xsd">
7 <groupId>org.onap.ccsdk.parent</groupId>
8 <artifactId>odlparent-lite</artifactId>
9 <version>1.1.2-SNAPSHOT</version>
12 <modelVersion>4.0.0</modelVersion>
13 <packaging>pom</packaging>
14 <groupId>org.onap.sdnc.oam</groupId>
15 <artifactId>installation-sdnc</artifactId>
16 <version>1.4.2-SNAPSHOT</version>
18 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
19 <description>Creates SDN Controller Docker container</description>
22 <image.name>onap/sdnc-image</image.name>
23 <sdnc.project.version>${project.version}</sdnc.project.version>
24 <sdnc.northbound.version>1.4.2-SNAPSHOT</sdnc.northbound.version>
25 <ccsdk.docker.version>0.3-STAGING-latest</ccsdk.docker.version>
26 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
27 <docker.push.phase>deploy</docker.push.phase>
28 <docker.verbose>true</docker.verbose>
29 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
34 <groupId>org.onap.sdnc.northbound</groupId>
35 <artifactId>generic-resource-api-installer</artifactId>
36 <version>${sdnc.northbound.version}</version>
37 <classifier>repo</classifier>
41 <groupId>org.onap.sdnc.northbound</groupId>
42 <artifactId>vnfapi-installer</artifactId>
43 <version>${sdnc.northbound.version}</version>
44 <classifier>repo</classifier>
48 <groupId>org.onap.sdnc.northbound</groupId>
49 <artifactId>vnftools-installer</artifactId>
50 <version>${sdnc.northbound.version}</version>
51 <classifier>repo</classifier>
55 <groupId>org.onap.sdnc.northbound</groupId>
56 <artifactId>sdnc-northbound-features-installer</artifactId>
57 <version>${sdnc.northbound.version}</version>
58 <classifier>repo</classifier>
68 <groupId>org.codehaus.groovy.maven</groupId>
69 <artifactId>gmaven-plugin</artifactId>
72 <phase>validate</phase>
78 println project.properties['sdnc.project.version'];
80 if ( project.properties['sdnc.project.version'] != null ) {
81 versionArray = project.properties['sdnc.project.version'].split('\\.');
84 if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT"))
86 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
88 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
91 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
99 <groupId>io.fabric8</groupId>
100 <artifactId>docker-maven-plugin</artifactId>
101 <version>0.16.5</version>
102 <inherited>false</inherited>
106 <name>${image.name}</name>
108 <cleanup>try</cleanup>
109 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
110 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
112 <tag>${project.version}</tag>
113 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
114 <tag>${project.docker.latesttag.version}</tag>
122 <id>generate-images</id>
123 <phase>package</phase>
131 <phase>${docker.push.phase}</phase>
143 <artifactId>maven-resources-plugin</artifactId>
144 <version>2.6</version>
147 <id>copy-dockerfile</id>
149 <goal>copy-resources</goal>
150 </goals><!-- here the phase you need -->
151 <phase>validate</phase>
153 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
156 <directory>src/main/docker</directory>
158 <include>Dockerfile</include>
160 <filtering>true</filtering>
167 <id>copy-scripts</id>
169 <goal>copy-resources</goal>
170 </goals><!-- here the phase you need -->
171 <phase>validate</phase>
173 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
176 <directory>src/main/scripts</directory>
178 <include>*.sh</include>
180 <filtering>false</filtering>
187 <id>copy-tarballs</id>
189 <goal>copy-resources</goal>
190 </goals><!-- here the phase you need -->
191 <phase>validate</phase>
193 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
196 <directory>src/main/resources</directory>
198 <include>idmlight.db.mv.db</include>
199 <include>AAF_RootCA.cer</include>
200 <include>truststoreONAPall.jks</include>
202 <filtering>false</filtering>
210 <goal>copy-resources</goal>
211 </goals><!-- here the phase you need -->
212 <phase>validate</phase>
214 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
217 <directory>src/main/resources</directory>
219 <include>*.dump</include>
221 <filtering>false</filtering>
227 <id>copy-properties</id>
229 <goal>copy-resources</goal>
230 </goals><!-- here the phase you need -->
231 <phase>validate</phase>
233 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
236 <directory>../src/main/properties</directory>
238 <include>*.properties</include>
240 <filtering>false</filtering>
246 <id>copy-keystores</id>
248 <goal>copy-resources</goal>
249 </goals><!-- here the phase you need -->
250 <phase>validate</phase>
252 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
255 <directory>../src/main/stores</directory>
257 <include>*.jks</include>
259 <filtering>false</filtering>
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-dependency-plugin</artifactId>
269 <version>3.0.2</version>
272 <id>unpack sdnc features</id>
273 <phase>generate-sources</phase>
275 <goal>unpack-dependencies</goal>
278 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
279 <excludeTransitive>true</excludeTransitive>
284 <phase>generate-sources</phase>
289 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
292 <groupId>${project.groupId}</groupId>
293 <artifactId>platform-logic-installer</artifactId>
294 <version>${project.version}</version>
303 <artifactId>exec-maven-plugin</artifactId>
304 <groupId>org.codehaus.mojo</groupId>
305 <version>1.5.0</version>
309 <id>change shell permissions</id>
310 <phase>process-sources</phase>
315 <executable>/usr/bin/find</executable>
317 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
318 <argument>-name</argument>
319 <argument>*.sh</argument>
320 <argument>-exec</argument>
321 <argument>chmod</argument>
322 <argument>+x</argument>
323 <argument>{}</argument>
324 <argument>;</argument>