[VERSION] Roll back to snapshot
[sdnc/oam.git] / installation / sdnc / pom.xml
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">
4
5         <parent>
6                 <groupId>org.openecomp.sdnc.oam</groupId>
7                 <artifactId>installation</artifactId>
8                 <version>1.0.0-SNAPSHOT</version>
9         </parent>
10
11         <modelVersion>4.0.0</modelVersion>
12         <packaging>pom</packaging>
13         <groupId>org.openecomp.sdnc.oam</groupId>
14         <artifactId>installation-sdnc</artifactId>
15         <version>1.0.0-SNAPSHOT</version>
16
17         <name>Installation - sdnc</name>
18         <description>Creates SDN Controller Docker container</description>
19
20         <properties>
21                 <image.name>ecomp/sdnc-image</image.name>
22                 <sdnc.core.version>${project.version}</sdnc.core.version>
23                 <sdnc.adaptors.version>${project.version}</sdnc.adaptors.version>
24                 <sdnc.northbound.version>${project.version}</sdnc.northbound.version>
25                 <sdnc.plugins.version>${project.version}</sdnc.plugins.version>
26         </properties>
27
28
29         <build>
30                 <plugins>
31
32
33                         <plugin>
34                                 <groupId>io.fabric8</groupId>
35                                 <artifactId>docker-maven-plugin</artifactId>
36                                 <version>0.16.5</version>
37                                 <inherited>false</inherited>
38                                 <configuration>
39
40                                         <images>
41                                                 <image>
42                                                         <name>${image.name}</name>
43                                                         <build>
44                                                                 <cleanup>try</cleanup>
45                                                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
46                                                                 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
47                                                                 <tags>
48                                                                         <tag>${project.version}</tag>
49                                                                         <tag>latest</tag>
50                                                                 </tags>
51                                                         </build>
52                                                 </image>
53                                         </images>
54                                 </configuration>
55                                 <executions>
56                                         <execution>
57                                                 <id>generate-images</id>
58                                                 <phase>generate-sources</phase>
59                                                 <goals>
60                                                         <goal>build</goal>
61                                                 </goals>
62                                         </execution>
63
64                                         <execution>
65                                                 <id>push-images</id>
66                                                 <phase>deploy</phase>
67                                                 <goals>
68                                                         <goal>build</goal>
69                                                         <goal>push</goal>
70                                                 </goals>
71                                         </execution>
72                                 </executions>
73                         </plugin>
74
75                         <plugin>
76                                 <artifactId>maven-resources-plugin</artifactId>
77                                 <version>2.6</version>
78                                 <executions>
79                                         <execution>
80                                                 <id>copy-dockerfile</id>
81                                                 <goals>
82                                                         <goal>copy-resources</goal>
83                                                 </goals><!-- here the phase you need -->
84                                                 <phase>validate</phase>
85                                                 <configuration>
86                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
87                                                         <resources>
88                                                                 <resource>
89                                                                         <directory>src/main/docker</directory>
90                                                                         <includes>
91                                                                                 <include>Dockerfile</include>
92                                                                         </includes>
93                                                                         <filtering>true</filtering>
94                                                                 </resource>
95                                                         </resources>
96                                                 </configuration>
97                                         </execution>
98
99                                         <execution>
100                                                 <id>copy-scripts</id>
101                                                 <goals>
102                                                         <goal>copy-resources</goal>
103                                                 </goals><!-- here the phase you need -->
104                                                 <phase>validate</phase>
105                                                 <configuration>
106                                                         <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/bin</outputDirectory>
107                                                         <resources>
108                                                                 <resource>
109                                                                         <directory>src/main/scripts</directory>
110                                                                         <includes>
111                                                                                 <include>*.sh</include>
112                                                                         </includes>
113                                                                         <filtering>false</filtering>
114                                                                 </resource>
115                                                         </resources>
116                                                 </configuration>
117                                         </execution>
118                                         <execution>
119                                                 <id>copy-tarballs</id>
120                                                 <goals>
121                                                         <goal>copy-resources</goal>
122                                                 </goals><!-- here the phase you need -->
123                                                 <phase>validate</phase>
124                                                 <configuration>
125                                                         <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
126                                                         <resources>
127                                                                 <resource>
128                                                                         <directory>src/main/resources</directory>
129                                                                         <includes>
130                                                                                 <include>*.tgz</include>
131                                                                                 <include>*.tar.gz</include>
132                                                                                 <include>idmlight.db.mv.db</include>
133                                                                         </includes>
134                                                                         <filtering>false</filtering>
135                                                                 </resource>
136                                                         </resources>
137                                                 </configuration>
138                                         </execution>
139                                         <execution>
140                                                 <id>copy-data</id>
141                                                 <goals>
142                                                         <goal>copy-resources</goal>
143                                                 </goals><!-- here the phase you need -->
144                                                 <phase>validate</phase>
145                                                 <configuration>
146                                                         <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data</outputDirectory>
147                                                         <resources>
148                                                                 <resource>
149                                                                         <directory>src/main/resources</directory>
150                                                                         <includes>
151                                                                                 <include>*.dump</include>
152                                                                         </includes>
153                                                                         <filtering>false</filtering>
154                                                                 </resource>
155                                                         </resources>
156                                                 </configuration>
157                                         </execution>
158                                         <execution>
159                                                 <id>copy-properties</id>
160                                                 <goals>
161                                                         <goal>copy-resources</goal>
162                                                 </goals><!-- here the phase you need -->
163                                                 <phase>validate</phase>
164                                                 <configuration>
165                                                         <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties</outputDirectory>
166                                                         <resources>
167                                                                 <resource>
168                                                                         <directory>../src/main/properties</directory>
169                                                                         <includes>
170                                                                                 <include>*.properties</include>
171                                                                         </includes>
172                                                                         <filtering>false</filtering>
173                                                                 </resource>
174                                                         </resources>
175                                                 </configuration>
176                                         </execution>
177                                         <execution>
178                                                 <id>copy-keystores</id>
179                                                 <goals>
180                                                         <goal>copy-resources</goal>
181                                                 </goals><!-- here the phase you need -->
182                                                 <phase>validate</phase>
183                                                 <configuration>
184                                                         <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/stores</outputDirectory>
185                                                         <resources>
186                                                                 <resource>
187                                                                         <directory>../src/main/stores</directory>
188                                                                         <includes>
189                                                                                 <include>*.jks</include>
190                                                                         </includes>
191                                                                         <filtering>false</filtering>
192                                                                 </resource>
193                                                         </resources>
194                                                 </configuration>
195                                         </execution>
196                                 </executions>
197                         </plugin>
198                         <plugin>
199                                 <artifactId>exec-maven-plugin</artifactId>
200                                 <groupId>org.codehaus.mojo</groupId>
201                                 <executions>
202
203                                         <execution>
204                                                 <id>Get features</id>
205                                                 <phase>generate-sources</phase>
206                                                 <goals>
207                                                         <goal>exec</goal>
208                                                 </goals>
209                                                 <configuration>
210                                                         <executable>/bin/bash</executable>
211                                                         <environmentVariables>
212                                                                 <SDNC_CORE_VERSION>${sdnc.core.version}</SDNC_CORE_VERSION>
213                                                                 <SDNC_ADAPTORS_VERSION>${sdnc.adaptors.version}</SDNC_ADAPTORS_VERSION>
214                                                                 <SDNC_NORTHBOUND_VERSION>${sdnc.northbound.version}</SDNC_NORTHBOUND_VERSION>
215                                                                 <SDNC_PLUGINS_VERSION>${sdnc.plugins.version}</SDNC_PLUGINS_VERSION>
216                                                                 <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
217                                                         </environmentVariables>
218                                                         <arguments>
219                                                                 <argument>${basedir}/src/main/scripts/installZips.sh</argument>
220                                                                 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument>
221                                                         </arguments>
222                                                 </configuration>
223                                         </execution>
224
225                                         <execution>
226                                                 <id>change shell permissions</id>
227                                                 <phase>process-sources</phase>
228                                                 <goals>
229                                                         <goal>exec</goal>
230                                                 </goals>
231                                                 <configuration>
232                                                         <executable>/usr/bin/find</executable>
233                                                         <arguments>
234                                                                 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument>
235                                                                 <argument>-name</argument>
236                                                                 <argument>*.sh</argument>
237                                                                 <argument>-exec</argument>
238                                                                 <argument>chmod</argument>
239                                                                 <argument>+x</argument>
240                                                                 <argument>{}</argument>
241                                                                 <argument>;</argument>
242                                                         </arguments>
243                                                 </configuration>
244                                         </execution>
245                                 </executions>
246                         </plugin>
247
248
249                 </plugins>
250
251         </build>
252         <organization>
253                 <name>openECOMP</name>
254         </organization>
255 </project>