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