Update to release version
[sdnc/oam.git] / installation / sdnc-web / 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" 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>
4
5     <parent>
6         <groupId>org.onap.sdnc.oam</groupId>
7         <artifactId>installation</artifactId>
8         <version>2.0.0-SNAPSHOT</version>
9     </parent>
10
11     <groupId>org.onap.sdnc.oam</groupId>
12     <artifactId>installation-sdnc-web</artifactId>
13     <version>2.0.0-SNAPSHOT</version>
14     <packaging>pom</packaging>
15
16     <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17     <description>Creates SDN Controller WebUI Docker container</description>
18
19     <properties>
20         <base.image.repo>docker.io/bitnami/nginx:1.16-debian-9</base.image.repo>
21         <image.name>onap/sdnc-web-image</image.name>
22         <sdnc.project.version>${project.version}</sdnc.project.version>
23         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
24         <ccsdk.groupId>org.onap.ccsdk.features.sdnr.wt</ccsdk.groupId>
25         <ccsdk.features.version>1.0.0</ccsdk.features.version>
26         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
27         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
28         <docker.push.phase>deploy</docker.push.phase>
29         <docker.verbose>true</docker.verbose>
30     </properties>
31
32     <dependencies>
33         <dependency>
34             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
35             <artifactId>sdnr-wt-odlux-framework</artifactId>
36             <version>${ccsdk.features.version}</version>
37         </dependency>
38         <dependency>
39             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
40             <artifactId>sdnr-wt-odlux-apps-installer</artifactId>
41             <version>${ccsdk.features.version}</version>
42             <type>zip</type>
43             <classifier>repo</classifier>
44         </dependency>
45         <dependency>
46             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
47             <artifactId>sdnr-wt-helpserver-installer</artifactId>
48             <version>${ccsdk.features.version}</version>
49             <type>zip</type>
50             <classifier>repo</classifier>
51         </dependency>
52     </dependencies>
53
54     <build>
55         <plugins>
56             <plugin>
57                 <groupId>org.codehaus.groovy.maven</groupId>
58                 <artifactId>gmaven-plugin</artifactId>
59                 <version>1.0</version>
60                 <executions>
61                     <execution>
62                         <phase>validate</phase>
63                         <goals>
64                             <goal>execute</goal>
65                         </goals>
66                         <configuration>
67                             <source>${basedir}/../TagVersion.groovy</source>
68                         </configuration>
69                     </execution>
70                 </executions>
71             </plugin>
72             <plugin>
73                 <artifactId>maven-resources-plugin</artifactId>
74                 <version>2.6</version>
75                 <executions>
76                     <execution>
77                         <id>copy-dockerfile</id>
78                         <goals>
79                             <goal>copy-resources</goal>
80                         </goals>                        <!-- here the phase you need -->
81                         <phase>validate</phase>
82                         <configuration>
83                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
84                             <resources>
85                                 <resource>
86                                     <directory>src/main/docker</directory>
87                                     <includes>
88                                         <include>Dockerfile</include>
89                                     </includes>
90                                     <filtering>true</filtering>
91                                 </resource>
92                             </resources>
93                         </configuration>
94                     </execution>
95                     <execution>
96                         <id>copy-siteconf</id>
97                         <goals>
98                             <goal>copy-resources</goal>
99                         </goals>                        <!-- here the phase you need -->
100                         <phase>validate</phase>
101                         <configuration>
102                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
103                             <resources>
104                                 <resource>
105                                     <directory>src/main/resources</directory>
106                                     <includes>
107                                         <include>*.conf</include>
108                                     </includes>
109                                     <filtering>true</filtering>
110                                 </resource>
111                             </resources>
112                         </configuration>
113                     </execution>
114
115                     <execution>
116                         <id>copy-scripts</id>
117                         <goals>
118                             <goal>copy-resources</goal>
119                         </goals>                        <!-- here the phase you need -->
120                         <phase>validate</phase>
121                         <configuration>
122                             <outputDirectory>${basedir}/target/docker-stage/bin</outputDirectory>
123                             <resources>
124                                 <resource>
125                                     <directory>src/main/scripts</directory>
126                                     <includes>
127                                         <include>*.sh</include>
128                                     </includes>
129                                     <filtering>true</filtering>
130                                 </resource>
131                             </resources>
132                         </configuration>
133                     </execution>
134                 </executions>
135             </plugin>
136             <plugin>
137                 <groupId>org.apache.maven.plugins</groupId>
138                 <artifactId>maven-dependency-plugin</artifactId>
139                 <executions>
140                     <execution>
141                         <id>unpack features</id>
142                         <phase>generate-sources</phase>
143                         <goals>
144                             <goal>unpack</goal>
145                         </goals>
146
147                         <configuration>
148                             <artifactItems>
149                                 <artifactItem>
150                                     <groupId>${ccsdk.groupId}</groupId>
151                                     <artifactId>sdnr-wt-odlux-framework</artifactId>
152                                     <version>${ccsdk.features.version}</version>
153                                     <type>jar</type>
154                                     <overWrite>false</overWrite>
155                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
156                                     <includes>odlux/**</includes>
157                                 </artifactItem>
158                                 <!-- connectApp -->
159                                 <artifactItem>
160                                     <groupId>${ccsdk.groupId}</groupId>
161                                     <artifactId>sdnr-wt-odlux-app-connectApp</artifactId>
162                                     <version>${ccsdk.features.version}</version>
163                                     <type>jar</type>
164                                     <overWrite>false</overWrite>
165                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
166                                     <includes>odlux/**</includes>
167                                 </artifactItem>
168                                 <!-- eventLogApp -->
169                                 <artifactItem>
170                                     <groupId>${ccsdk.groupId}</groupId>
171                                     <artifactId>sdnr-wt-odlux-app-eventLogApp</artifactId>
172                                     <version>${ccsdk.features.version}</version>
173                                     <type>jar</type>
174                                     <overWrite>false</overWrite>
175                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
176                                     <includes>odlux/**</includes>
177                                 </artifactItem>
178                                 <!-- helpApp -->
179                                 <artifactItem>
180                                     <groupId>${ccsdk.groupId}</groupId>
181                                     <artifactId>sdnr-wt-odlux-app-helpApp</artifactId>
182                                     <version>${ccsdk.features.version}</version>
183                                     <type>jar</type>
184                                     <overWrite>false</overWrite>
185                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
186                                     <includes>odlux/**</includes>
187                                 </artifactItem>
188                                 <!-- maintenanceApp -->
189                                 <artifactItem>
190                                     <groupId>${ccsdk.groupId}</groupId>
191                                     <artifactId>sdnr-wt-odlux-app-maintenanceApp</artifactId>
192                                     <version>${ccsdk.features.version}</version>
193                                     <type>jar</type>
194                                     <overWrite>false</overWrite>
195                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
196                                     <includes>odlux/**</includes>
197                                 </artifactItem>
198                                 <!-- minimumApp -->
199                                 <artifactItem>
200                                     <groupId>${ccsdk.groupId}</groupId>
201                                     <artifactId>sdnr-wt-odlux-app-minimumApp</artifactId>
202                                     <version>${ccsdk.features.version}</version>
203                                     <type>jar</type>
204                                     <overWrite>false</overWrite>
205                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
206                                     <includes>odlux/**</includes>
207                                 </artifactItem>
208                                 <!-- configurationApp -->
209                                 <artifactItem>
210                                     <groupId>${ccsdk.groupId}</groupId>
211                                     <artifactId>sdnr-wt-odlux-app-configurationApp</artifactId>
212                                     <version>${ccsdk.features.version}</version>
213                                     <type>jar</type>
214                                     <overWrite>false</overWrite>
215                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
216                                     <includes>odlux/**</includes>
217                                 </artifactItem>
218                                 <!-- demoApp -->
219                                 <artifactItem>
220                                     <groupId>${ccsdk.groupId}</groupId>
221                                     <artifactId>sdnr-wt-odlux-app-demoApp</artifactId>
222                                     <version>${ccsdk.features.version}</version>
223                                     <type>jar</type>
224                                     <overWrite>false</overWrite>
225                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
226                                     <includes>odlux/**</includes>
227                                 </artifactItem>
228                                 <!-- faultApp -->
229                                 <artifactItem>
230                                     <groupId>${ccsdk.groupId}</groupId>
231                                     <artifactId>sdnr-wt-odlux-app-faultApp</artifactId>
232                                     <version>${ccsdk.features.version}</version>
233                                     <type>jar</type>
234                                     <overWrite>false</overWrite>
235                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
236                                     <includes>odlux/*</includes>
237                                 </artifactItem>
238                                 <!-- inventoryApp -->
239                                 <artifactItem>
240                                     <groupId>${ccsdk.groupId}</groupId>
241                                     <artifactId>sdnr-wt-odlux-app-inventoryApp</artifactId>
242                                     <version>${ccsdk.features.version}</version>
243                                     <type>jar</type>
244                                     <overWrite>false</overWrite>
245                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
246                                     <includes>odlux/**</includes>
247                                 </artifactItem>
248                                 <!-- mediatorApp -->
249                                 <artifactItem>
250                                     <groupId>${ccsdk.groupId}</groupId>
251                                     <artifactId>sdnr-wt-odlux-app-mediatorApp</artifactId>
252                                     <version>${ccsdk.features.version}</version>
253                                     <type>jar</type>
254                                     <overWrite>false</overWrite>
255                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
256                                     <includes>odlux/**</includes>
257                                 </artifactItem>
258                                 <!-- performanceHistoryApp -->
259                                 <artifactItem>
260                                     <groupId>${ccsdk.groupId}</groupId>
261                                     <artifactId>sdnr-wt-odlux-app-performanceHistoryApp</artifactId>
262                                     <version>${ccsdk.features.version}</version>
263                                     <type>jar</type>
264                                     <overWrite>false</overWrite>
265                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
266                                     <includes>odlux/**</includes>
267                                 </artifactItem>
268                                 <!-- helpserver resources -->
269                                 <artifactItem>
270                                     <groupId>${ccsdk.groupId}</groupId>
271                                     <artifactId>sdnr-wt-helpserver-provider</artifactId>
272                                     <version>${ccsdk.features.version}</version>
273                                     <type>jar</type>
274                                     <overWrite>false</overWrite>
275                                     <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
276                                     <includes>help/**</includes>
277                                 </artifactItem>
278                             </artifactItems>
279                         </configuration>
280                     </execution>
281                 </executions>
282             </plugin>
283             <plugin>
284                 <groupId>io.fabric8</groupId>
285                 <artifactId>docker-maven-plugin</artifactId>
286                 <version>0.16.5</version>
287                 <inherited>false</inherited>
288                 <configuration>
289                     <images>
290                         <image>
291                             <name>${image.name}</name>
292                             <build>
293                                 <cleanup>try</cleanup>
294                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
295                                 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
296                                 <tags>
297                                     <tag>${project.docker.latestminortag.version}</tag>
298                                     <tag>${project.docker.latestfulltag.version}</tag>
299                                     <tag>${project.docker.latesttagtimestamp.version}</tag>
300                                 </tags>
301                             </build>
302                         </image>
303                     </images>
304                 </configuration>
305                 <executions>
306                     <execution>
307                         <id>generate-images</id>
308                         <phase>package</phase>
309                         <goals>
310                             <goal>build</goal>
311                         </goals>
312                     </execution>
313                     <execution>
314                         <id>push-images</id>
315                         <phase>${docker.push.phase}</phase>
316                         <goals>
317                             <goal>build</goal>
318                             <goal>push</goal>
319                         </goals>
320                     </execution>
321                 </executions>
322             </plugin>
323         </plugins>
324     </build>
325 </project>