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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5 <groupId>org.onap.ccsdk.parent</groupId>
6 <artifactId>odlparent-lite</artifactId>
7 <version>1.1.3</version>
10 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <groupId>org.onap.sdnc.oam</groupId>
13 <artifactId>installation-sdnc</artifactId>
14 <version>1.4.3-SNAPSHOT</version>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates SDN Controller Docker container</description>
20 <image.name>onap/sdnc-image</image.name>
21 <sdnc.project.version>${project.version}</sdnc.project.version>
22 <sdnc.northbound.version>1.4.3</sdnc.northbound.version>
23 <ccsdk.docker.version>0.3.3</ccsdk.docker.version>
24 <sdnc.keystore>keystore.sdnc.p12</sdnc.keystore>
25 <sdnc.keypass>onap3.0</sdnc.keypass>
26 <sdnc.secureport>8443</sdnc.secureport>
27 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
28 <docker.push.phase>deploy</docker.push.phase>
29 <docker.verbose>true</docker.verbose>
30 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
35 <groupId>org.onap.sdnc.northbound</groupId>
36 <artifactId>generic-resource-api-installer</artifactId>
37 <version>${sdnc.northbound.version}</version>
38 <classifier>repo</classifier>
42 <groupId>org.onap.sdnc.northbound</groupId>
43 <artifactId>vnfapi-installer</artifactId>
44 <version>${sdnc.northbound.version}</version>
45 <classifier>repo</classifier>
49 <groupId>org.onap.sdnc.northbound</groupId>
50 <artifactId>vnftools-installer</artifactId>
51 <version>${sdnc.northbound.version}</version>
52 <classifier>repo</classifier>
56 <groupId>org.onap.sdnc.northbound</groupId>
57 <artifactId>sdnc-northbound-features-installer</artifactId>
58 <version>${sdnc.northbound.version}</version>
59 <classifier>repo</classifier>
69 <groupId>org.codehaus.groovy.maven</groupId>
70 <artifactId>gmaven-plugin</artifactId>
73 <phase>validate</phase>
79 println project.properties['sdnc.project.version'];
81 if ( project.properties['sdnc.project.version'] != null ) {
82 versionArray = project.properties['sdnc.project.version'].split('\\.');
85 if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT"))
87 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
89 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
92 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
100 <groupId>io.fabric8</groupId>
101 <artifactId>docker-maven-plugin</artifactId>
102 <version>0.16.5</version>
103 <inherited>false</inherited>
107 <name>${image.name}</name>
109 <cleanup>try</cleanup>
110 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
111 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
113 <tag>${project.version}</tag>
114 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
115 <tag>${project.docker.latesttag.version}</tag>
123 <id>generate-images</id>
124 <phase>package</phase>
132 <phase>${docker.push.phase}</phase>
144 <artifactId>maven-resources-plugin</artifactId>
145 <version>2.6</version>
148 <id>copy-dockerfile</id>
150 <goal>copy-resources</goal>
151 </goals><!-- here the phase you need -->
152 <phase>validate</phase>
154 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
157 <directory>src/main/docker</directory>
159 <include>Dockerfile</include>
161 <filtering>true</filtering>
168 <id>copy-scripts</id>
170 <goal>copy-resources</goal>
171 </goals><!-- here the phase you need -->
172 <phase>validate</phase>
174 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
177 <directory>src/main/scripts</directory>
179 <include>*.sh</include>
181 <filtering>false</filtering>
188 <id>copy-tarballs</id>
190 <goal>copy-resources</goal>
191 </goals><!-- here the phase you need -->
192 <phase>validate</phase>
194 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
197 <directory>src/main/resources</directory>
199 <include>idmlight.db.mv.db</include>
200 <include>AAF_RootCA.cer</include>
201 <include>truststoreONAPall.jks</include>
203 <filtering>false</filtering>
211 <goal>copy-resources</goal>
212 </goals><!-- here the phase you need -->
213 <phase>validate</phase>
215 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
218 <directory>src/main/resources</directory>
220 <include>*.dump</include>
222 <filtering>false</filtering>
228 <id>copy-properties</id>
230 <goal>copy-resources</goal>
231 </goals><!-- here the phase you need -->
232 <phase>validate</phase>
234 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
237 <directory>../src/main/properties</directory>
239 <include>*.properties</include>
241 <filtering>false</filtering>
247 <id>copy-keystores</id>
249 <goal>copy-resources</goal>
250 </goals><!-- here the phase you need -->
251 <phase>validate</phase>
253 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
256 <directory>../src/main/stores</directory>
258 <include>*.jks</include>
260 <filtering>false</filtering>
268 <groupId>org.apache.maven.plugins</groupId>
269 <artifactId>maven-dependency-plugin</artifactId>
270 <version>3.0.2</version>
273 <id>unpack sdnc features</id>
274 <phase>generate-sources</phase>
276 <goal>unpack-dependencies</goal>
279 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
280 <excludeTransitive>true</excludeTransitive>
285 <phase>generate-sources</phase>
290 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
293 <groupId>${project.groupId}</groupId>
294 <artifactId>platform-logic-installer</artifactId>
295 <version>${project.version}</version>
304 <artifactId>exec-maven-plugin</artifactId>
305 <groupId>org.codehaus.mojo</groupId>
306 <version>1.5.0</version>
310 <id>change shell permissions</id>
311 <phase>process-sources</phase>
316 <executable>/usr/bin/find</executable>
318 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
319 <argument>-name</argument>
320 <argument>*.sh</argument>
321 <argument>-exec</argument>
322 <argument>chmod</argument>
323 <argument>+x</argument>
324 <argument>{}</argument>
325 <argument>;</argument>