Chore: Add gerrit maven verify GHA workflow
[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.7.0-SNAPSHOT</version>
9     </parent>
10
11     <artifactId>installation-sdnc-web</artifactId>
12     <packaging>pom</packaging>
13
14     <name>sdnc-oam :: installation :: ${project.artifactId}</name>
15     <description>Creates SDN Controller WebUI Docker container</description>
16
17     <properties>
18         <base.image.repo>docker.io/bitnami/nginx:1.21-debian-10</base.image.repo>
19         <image.name>onap/sdnc-web-image</image.name>
20         <sdnc.project.version>${project.version}</sdnc.project.version>
21         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
22         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
23         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
24     </properties>
25
26     <dependencies>
27         <dependency>
28             <groupId>org.onap.ccsdk.features.sdnr.odlux</groupId>
29             <artifactId>sdnr-odlux-installer</artifactId>
30             <version>${ccsdk.features.version}</version>
31             <type>zip</type>
32             <classifier>repo</classifier>
33         </dependency>
34     </dependencies>
35
36     <build>
37         <plugins>
38             <plugin>
39                 <groupId>org.codehaus.gmaven</groupId>
40                 <artifactId>groovy-maven-plugin</artifactId>
41                 <version>2.1.1</version>
42                 <executions>
43                     <execution>
44                         <phase>validate</phase>
45                         <goals>
46                             <goal>execute</goal>
47                         </goals>
48                         <configuration>
49                             <source>${basedir}/../TagVersion.groovy</source>
50                         </configuration>
51                     </execution>
52                 </executions>
53             </plugin>
54             <plugin>
55                 <artifactId>maven-resources-plugin</artifactId>
56                 <version>2.6</version>
57                 <executions>
58                     <execution>
59                         <id>copy-dockerfile</id>
60                         <goals>
61                             <goal>copy-resources</goal>
62                         </goals>
63                         <phase>validate</phase>
64                         <configuration>
65                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
66                             <resources>
67                                 <resource>
68                                     <directory>src/main/docker</directory>
69                                     <includes>
70                                         <include>Dockerfile</include>
71                                     </includes>
72                                     <filtering>true</filtering>
73                                 </resource>
74                             </resources>
75                         </configuration>
76                     </execution>
77                     <execution>
78                         <id>copy-siteconf</id>
79                         <goals>
80                             <goal>copy-resources</goal>
81                         </goals>
82                         <phase>validate</phase>
83                         <configuration>
84                             <outputDirectory>${basedir}/target/docker-stage/conf</outputDirectory>
85                             <resources>
86                                 <resource>
87                                     <directory>src/main/resources</directory>
88                                     <includes>
89                                         <include>*.conf</include>
90                                         <include>*.rules</include>
91                                     </includes>
92                                     <filtering>true</filtering>
93                                 </resource>
94                             </resources>
95                         </configuration>
96                     </execution>
97                     <execution>
98                         <id>copy-scripts</id>
99                         <goals>
100                             <goal>copy-resources</goal>
101                         </goals>
102                         <phase>validate</phase>
103                         <configuration>
104                             <outputDirectory>${basedir}/target/docker-stage/bin</outputDirectory>
105                             <resources>
106                                 <resource>
107                                     <directory>src/main/scripts</directory>
108                                     <includes>
109                                         <include>*.sh</include>
110                                         <include>*.py</include>
111                                     </includes>
112                                     <filtering>true</filtering>
113                                 </resource>
114                             </resources>
115                         </configuration>
116                     </execution>
117                     <execution>
118                         <id>copy-favicon</id>
119                         <goals>
120                             <goal>copy-resources</goal>
121                         </goals>
122                         <phase>validate</phase>
123                         <configuration>
124                             <outputDirectory>${basedir}/target/docker-stage/html</outputDirectory>
125                             <resources>
126                                 <resource>
127                                     <directory>src/main/resources</directory>
128                                     <includes>
129                                         <include>favicon.ico</include>
130                                         <include>odlux.application.list</include>
131                                     </includes>
132                                     <filtering>false</filtering>
133                                 </resource>
134                             </resources>
135                         </configuration>
136                     </execution>
137                 </executions>
138             </plugin>
139             <plugin>
140                 <groupId>org.apache.maven.plugins</groupId>
141                 <artifactId>maven-dependency-plugin</artifactId>
142                 <executions>
143                     <execution>
144                         <id>unpack features</id>
145                         <phase>generate-sources</phase>
146                         <goals>
147                             <goal>unpack-dependencies</goal>
148                         </goals>
149                         <configuration>
150                             <outputDirectory>${basedir}/target/docker-stage/html</outputDirectory>
151                             <excludeTransitive>true</excludeTransitive>
152                             <overWriteReleases>false</overWriteReleases>
153                             <overWriteSnapshots>true</overWriteSnapshots>
154                             <overWriteIfNewer>true</overWriteIfNewer>
155                         </configuration>
156                     </execution>
157                 </executions>
158             </plugin>
159             <plugin>
160                 <groupId>io.fabric8</groupId>
161                 <artifactId>docker-maven-plugin</artifactId>
162                 <version>0.34.0</version>
163                 <inherited>false</inherited>
164                 <configuration>
165                     <images>
166                         <image>
167                             <name>${image.name}</name>
168                             <build>
169                                 <cleanup>try</cleanup>
170                                 <noCache>true</noCache>
171                                 <contextDir>${basedir}/target/docker-stage</contextDir>
172                                 <dockerFile>Dockerfile</dockerFile>
173                                 <tags>
174                                     <tag>${project.docker.latestminortag.version}</tag>
175                                     <tag>${project.docker.latestfulltag.version}</tag>
176                                     <tag>${project.docker.latesttagtimestamp.version}</tag>
177                                 </tags>
178                             </build>
179                         </image>
180                     </images>
181                     <verbose>${docker.verbose}</verbose>
182                     <skipPush>${docker.skip.push}</skipPush>
183                 </configuration>
184                 <executions>
185                     <execution>
186                         <id>build-push-images</id>
187                         <goals>
188                             <goal>build</goal>
189                             <goal>push</goal>
190                         </goals>
191                     </execution>
192                 </executions>
193             </plugin>
194         </plugins>
195     </build>
196 </project>