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.4.3</version>
10 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <groupId>org.onap.sdnc.oam</groupId>
13 <artifactId>installation-admportal</artifactId>
14 <version>1.7.3-SNAPSHOT</version>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates admportal Docker container</description>
20 <image.name>onap/admportal-sdnc-image</image.name>
21 <sdnc.project.version>${project.version}</sdnc.project.version>
22 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
23 <ccsdk.docker.version>0.6.3</ccsdk.docker.version>
24 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
32 <groupId>org.codehaus.groovy.maven</groupId>
33 <artifactId>gmaven-plugin</artifactId>
36 <phase>validate</phase>
41 <source>${basedir}/../TagVersion.groovy</source>
47 <groupId>io.fabric8</groupId>
48 <artifactId>docker-maven-plugin</artifactId>
49 <version>0.28.0</version>
50 <inherited>false</inherited>
55 <name>${image.name}</name>
57 <cleanup>try</cleanup>
58 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
59 <dockerFile>Dockerfile</dockerFile>
61 <tag>${project.docker.latestminortag.version}</tag>
62 <tag>${project.docker.latestfulltag.version}</tag>
63 <tag>${project.docker.latesttagtimestamp.version}</tag>
71 <id>generate-images</id>
72 <phase>process-sources</phase>
90 <artifactId>maven-resources-plugin</artifactId>
91 <version>2.6</version>
94 <id>copy-dockerfile</id>
96 <goal>copy-resources</goal>
97 </goals><!-- here the phase you need -->
98 <phase>validate</phase>
100 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
103 <directory>src/main/docker</directory>
105 <include>Dockerfile</include>
107 <filtering>true</filtering>
113 <id>copy-properties</id>
115 <goal>copy-resources</goal>
116 </goals><!-- here the phase you need -->
117 <phase>validate</phase>
119 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
122 <directory>../src/main/properties</directory>
124 <include>*.properties</include>
125 <include>*.properties.sdnctldb01</include>
127 <filtering>false</filtering>
133 <id>copy-keystores</id>
135 <goal>copy-resources</goal>
136 </goals><!-- here the phase you need -->
137 <phase>validate</phase>
139 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
142 <directory>../src/main/stores</directory>
144 <include>*.p12</include>
146 <filtering>false</filtering>
154 <artifactId>exec-maven-plugin</artifactId>
155 <groupId>org.codehaus.mojo</groupId>
156 <version>1.5.0</version>
159 <id>Unzip admportal</id>
160 <phase>generate-sources</phase>
165 <executable>/usr/bin/unzip</executable>
167 <argument>-d</argument>
168 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
169 <argument>../../admportal/target/*.zip</argument>
175 <id>Copy admportal config</id>
176 <phase>generate-sources</phase>
181 <executable>/bin/cp</executable>
183 <argument>../../admportal/config/admportal.json</argument>
184 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
190 <id>Copy admportal config1</id>
191 <phase>generate-sources</phase>
196 <executable>/bin/cp</executable>
198 <argument>../../admportal/config/admportal.log4js.json</argument>
199 <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument>
206 <id>change shell permissions</id>
207 <phase>process-sources</phase>
212 <executable>/usr/bin/find</executable>
214 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
215 <argument>-name</argument>
216 <argument>*.sh</argument>
217 <argument>-exec</argument>
218 <argument>chmod</argument>
219 <argument>+x</argument>
220 <argument>{}</argument>
221 <argument>;</argument>
233 <name>openECOMP</name>