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/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
8 <version>2.2.0-SNAPSHOT</version>
11 <artifactId>installation-sdnc</artifactId>
12 <packaging>pom</packaging>
14 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
15 <description>Creates SDN Controller Docker container</description>
21 <image.name>onap/sdnc-aaf-image</image.name>
22 <standalone.image.name>onap/sdnc-image</standalone.image.name>
23 <ccsdk.docker.version>${ccsdk.docker.odlsli.alpine.version}</ccsdk.docker.version>
24 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
25 <sdnc.keypass><![CDATA[;:G58,7ZhqOSI:7^oZCY[9Dv]]></sdnc.keypass>
26 <sdnc.secureport>8443</sdnc.secureport>
28 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
29 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
31 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
32 <docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks>
37 <groupId>org.onap.sdnc.northbound</groupId>
38 <artifactId>generic-resource-api-installer</artifactId>
39 <version>${sdnc.northbound.version}</version>
41 <classifier>repo</classifier>
44 <groupId>org.onap.sdnc.northbound</groupId>
45 <artifactId>optical-service-installer</artifactId>
46 <version>${sdnc.northbound.version}</version>
48 <classifier>repo</classifier>
51 <groupId>org.onap.sdnc.northbound</groupId>
52 <artifactId>vnftools-installer</artifactId>
53 <version>${sdnc.northbound.version}</version>
55 <classifier>repo</classifier>
58 <groupId>org.onap.sdnc.northbound</groupId>
59 <artifactId>sdnc-northbound-features-installer</artifactId>
60 <version>${sdnc.northbound.version}</version>
62 <classifier>repo</classifier>
69 <groupId>org.codehaus.groovy.maven</groupId>
70 <artifactId>gmaven-plugin</artifactId>
71 <version>1.0</version>
74 <phase>validate</phase>
79 <source>${basedir}/../TagVersion.groovy</source>
86 <groupId>io.fabric8</groupId>
87 <artifactId>docker-maven-plugin</artifactId>
88 <version>0.34.0</version>
89 <inherited>false</inherited>
93 <name>${image.name}</name>
95 <cleanup>try</cleanup>
96 <noCache>true</noCache>
97 <contextDir>${basedir}/target/docker-stage</contextDir>
98 <dockerFile>Dockerfile</dockerFile>
103 <tag>${project.docker.latestminortag.version}</tag>
104 <tag>${project.docker.latestfulltag.version}</tag>
105 <tag>${project.docker.latesttagtimestamp.version}</tag>
110 <name>${standalone.image.name}</name>
112 <cleanup>try</cleanup>
113 <noCache>true</noCache>
114 <contextDir>${basedir}/target/docker-stage</contextDir>
115 <dockerFile>Dockerfile</dockerFile>
120 <tag>${project.docker.latestminortag.version}</tag>
121 <tag>${project.docker.latestfulltag.version}</tag>
122 <tag>${project.docker.latesttagtimestamp.version}</tag>
127 <verbose>${docker.verbose}</verbose>
128 <skipPush>${docker.skip.push}</skipPush>
132 <id>build-push-images</id>
141 <artifactId>maven-resources-plugin</artifactId>
142 <version>2.6</version>
145 <id>copy-dockerfile</id>
147 <goal>copy-resources</goal>
148 </goals><!-- here the phase you need -->
149 <phase>validate</phase>
151 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
154 <directory>src/main/docker</directory>
156 <include>Dockerfile</include>
158 <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>*.py</include>
176 <include>*.sh</include>
178 <filtering>true</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>
196 <include>truststoreONAPall.jks</include>
197 <include>aaa-app-config.xml</include>
199 <filtering>false</filtering>
207 <goal>copy-resources</goal>
208 </goals><!-- here the phase you need -->
209 <phase>validate</phase>
211 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
214 <directory>src/main/resources</directory>
216 <include>*.dump</include>
217 <include>oauth-aaa-app-config.xml</include>
219 <filtering>false</filtering>
225 <id>copy-properties</id>
227 <goal>copy-resources</goal>
228 </goals><!-- here the phase you need -->
229 <phase>validate</phase>
231 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
234 <directory>../src/main/properties</directory>
236 <include>*.properties</include>
237 <include>*.props</include>
238 <include>*.csv</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>
258 <include>*.keyfile</include>
259 <include>*.p12</include>
261 <filtering>false</filtering>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-dependency-plugin</artifactId>
271 <version>3.0.2</version>
274 <id>unpack-sdnc-features</id>
275 <phase>generate-sources</phase>
277 <goal>unpack-dependencies</goal>
280 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
281 <excludeTransitive>true</excludeTransitive>
285 <id>unpack-platform-logic</id>
286 <phase>generate-sources</phase>
291 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
294 <groupId>${project.groupId}</groupId>
295 <artifactId>platform-logic-installer</artifactId>
296 <version>${project.version}</version>
303 <id>unpack-data-migrator</id>
304 <phase>generate-sources</phase>
309 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data-migrator</outputDirectory>
312 <groupId>org.onap.sdnc.oam</groupId>
313 <artifactId>data-migrator</artifactId>
314 <version>${project.version}</version>
323 <groupId>org.apache.maven.plugins</groupId>
324 <artifactId>maven-antrun-plugin</artifactId>
325 <version>1.8</version>
328 <id>change-shell-permissions</id>
329 <phase>process-sources</phase>
332 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-failsafe-plugin</artifactId>
347 <goal>integration-test</goal>
353 <skipITs>false</skipITs>
354 <environmentVariables>
355 <SDNC_PORT>${sdnc.port}</SDNC_PORT>
356 </environmentVariables>