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.3-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.3-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</sdnc.northbound.version>
25 <ccsdk.docker.version>0.3.2</ccsdk.docker.version>
26 <sdnc.keystore>keystore.sdnc.p12</sdnc.keystore>
27 <sdnc.keypass>onap3.0</sdnc.keypass>
28 <sdnc.secureport>8443</sdnc.secureport>
29 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
30 <docker.push.phase>deploy</docker.push.phase>
31 <docker.verbose>true</docker.verbose>
32 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
37 <groupId>org.onap.sdnc.northbound</groupId>
38 <artifactId>generic-resource-api-installer</artifactId>
39 <version>${sdnc.northbound.version}</version>
40 <classifier>repo</classifier>
44 <groupId>org.onap.sdnc.northbound</groupId>
45 <artifactId>vnfapi-installer</artifactId>
46 <version>${sdnc.northbound.version}</version>
47 <classifier>repo</classifier>
51 <groupId>org.onap.sdnc.northbound</groupId>
52 <artifactId>vnftools-installer</artifactId>
53 <version>${sdnc.northbound.version}</version>
54 <classifier>repo</classifier>
58 <groupId>org.onap.sdnc.northbound</groupId>
59 <artifactId>sdnc-northbound-features-installer</artifactId>
60 <version>${sdnc.northbound.version}</version>
61 <classifier>repo</classifier>
71 <groupId>org.codehaus.groovy.maven</groupId>
72 <artifactId>gmaven-plugin</artifactId>
75 <phase>validate</phase>
81 println project.properties['sdnc.project.version'];
83 if ( project.properties['sdnc.project.version'] != null ) {
84 versionArray = project.properties['sdnc.project.version'].split('\\.');
87 if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT"))
89 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
91 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
94 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
102 <groupId>io.fabric8</groupId>
103 <artifactId>docker-maven-plugin</artifactId>
104 <version>0.16.5</version>
105 <inherited>false</inherited>
109 <name>${image.name}</name>
111 <cleanup>try</cleanup>
112 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
113 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
115 <tag>${project.version}</tag>
116 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
117 <tag>${project.docker.latesttag.version}</tag>
125 <id>generate-images</id>
126 <phase>package</phase>
134 <phase>${docker.push.phase}</phase>
146 <artifactId>maven-resources-plugin</artifactId>
147 <version>2.6</version>
150 <id>copy-dockerfile</id>
152 <goal>copy-resources</goal>
153 </goals><!-- here the phase you need -->
154 <phase>validate</phase>
156 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
159 <directory>src/main/docker</directory>
161 <include>Dockerfile</include>
163 <filtering>true</filtering>
170 <id>copy-scripts</id>
172 <goal>copy-resources</goal>
173 </goals><!-- here the phase you need -->
174 <phase>validate</phase>
176 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
179 <directory>src/main/scripts</directory>
181 <include>*.sh</include>
183 <filtering>false</filtering>
190 <id>copy-tarballs</id>
192 <goal>copy-resources</goal>
193 </goals><!-- here the phase you need -->
194 <phase>validate</phase>
196 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
199 <directory>src/main/resources</directory>
201 <include>idmlight.db.mv.db</include>
202 <include>AAF_RootCA.cer</include>
203 <include>truststoreONAPall.jks</include>
205 <filtering>false</filtering>
213 <goal>copy-resources</goal>
214 </goals><!-- here the phase you need -->
215 <phase>validate</phase>
217 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
220 <directory>src/main/resources</directory>
222 <include>*.dump</include>
224 <filtering>false</filtering>
230 <id>copy-properties</id>
232 <goal>copy-resources</goal>
233 </goals><!-- here the phase you need -->
234 <phase>validate</phase>
236 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
239 <directory>../src/main/properties</directory>
241 <include>*.properties</include>
243 <filtering>false</filtering>
249 <id>copy-keystores</id>
251 <goal>copy-resources</goal>
252 </goals><!-- here the phase you need -->
253 <phase>validate</phase>
255 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
258 <directory>../src/main/stores</directory>
260 <include>*.jks</include>
262 <filtering>false</filtering>
270 <groupId>org.apache.maven.plugins</groupId>
271 <artifactId>maven-dependency-plugin</artifactId>
272 <version>3.0.2</version>
275 <id>unpack sdnc features</id>
276 <phase>generate-sources</phase>
278 <goal>unpack-dependencies</goal>
281 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
282 <excludeTransitive>true</excludeTransitive>
287 <phase>generate-sources</phase>
292 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
295 <groupId>${project.groupId}</groupId>
296 <artifactId>platform-logic-installer</artifactId>
297 <version>${project.version}</version>
306 <artifactId>exec-maven-plugin</artifactId>
307 <groupId>org.codehaus.mojo</groupId>
308 <version>1.5.0</version>
312 <id>change shell permissions</id>
313 <phase>process-sources</phase>
318 <executable>/usr/bin/find</executable>
320 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
321 <argument>-name</argument>
322 <argument>*.sh</argument>
323 <argument>-exec</argument>
324 <argument>chmod</argument>
325 <argument>+x</argument>
326 <argument>{}</argument>
327 <argument>;</argument>