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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
6 <groupId>org.openecomp.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
8 <version>1.1.0-SNAPSHOT</version>
11 <modelVersion>4.0.0</modelVersion>
12 <packaging>pom</packaging>
13 <groupId>org.openecomp.sdnc.oam</groupId>
14 <artifactId>installation-admportal</artifactId>
15 <version>1.1.0-SNAPSHOT</version>
17 <name>Installation - admportal</name>
18 <description>Creates admportal Docker container</description>
21 <image.name>ecomp/admportal-sdnc-image</image.name>
30 <groupId>io.fabric8</groupId>
31 <artifactId>docker-maven-plugin</artifactId>
32 <version>0.16.5</version>
33 <inherited>false</inherited>
38 <name>${image.name}</name>
40 <cleanup>try</cleanup>
41 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
42 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
44 <tag>${project.version}</tag>
53 <id>generate-images</id>
54 <phase>generate-sources</phase>
72 <artifactId>maven-resources-plugin</artifactId>
73 <version>2.6</version>
76 <id>copy-dockerfile</id>
78 <goal>copy-resources</goal>
79 </goals><!-- here the phase you need -->
80 <phase>validate</phase>
82 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
85 <directory>src/main/docker</directory>
87 <include>Dockerfile</include>
89 <filtering>true</filtering>
95 <id>copy-properties</id>
97 <goal>copy-resources</goal>
98 </goals><!-- here the phase you need -->
99 <phase>validate</phase>
101 <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties</outputDirectory>
104 <directory>../src/main/properties</directory>
106 <include>*.properties</include>
107 <include>*.properties.sdnctldb01</include>
109 <filtering>false</filtering>
117 <artifactId>exec-maven-plugin</artifactId>
118 <groupId>org.codehaus.mojo</groupId>
119 <version>1.5.0</version>
122 <id>Unzip admportal</id>
123 <phase>generate-sources</phase>
128 <executable>/usr/bin/unzip</executable>
130 <argument>-d</argument>
131 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument>
132 <argument>../../admportal/target/*.zip</argument>
138 <id>Copy admportal config</id>
139 <phase>generate-sources</phase>
144 <executable>/bin/cp</executable>
146 <argument>../../admportal/config/admportal.json</argument>
147 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties</argument>
153 <id>Copy admportal config1</id>
154 <phase>generate-sources</phase>
159 <executable>/bin/cp</executable>
161 <argument>../../admportal/config/admportal.log4js.json</argument>
162 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties</argument>
169 <id>change shell permissions</id>
170 <phase>process-sources</phase>
175 <executable>/usr/bin/find</executable>
177 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument>
178 <argument>-name</argument>
179 <argument>*.sh</argument>
180 <argument>-exec</argument>
181 <argument>chmod</argument>
182 <argument>+x</argument>
183 <argument>{}</argument>
184 <argument>;</argument>
196 <name>openECOMP</name>