Release version 2.1.2 dockers and roll 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.1.3-SNAPSHOT</version>
9     </parent>
10
11     <groupId>org.onap.sdnc.oam</groupId>
12     <artifactId>installation-sdnc-web</artifactId>
13     <version>2.1.3-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         <ccsdk.features.version>1.1.1-SNAPSHOT</ccsdk.features.version>
24         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
25         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
26         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
27         <docker.push.phase>deploy</docker.push.phase>
28         <docker.verbose>true</docker.verbose>
29     </properties>
30
31     <dependencies>
32         <dependency>
33             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
34             <artifactId>sdnr-wt-odlux-installer</artifactId>
35             <version>${ccsdk.features.version}</version>
36             <type>zip</type>
37             <classifier>repo</classifier>
38         </dependency>
39     </dependencies>
40
41     <build>
42         <plugins>
43             <plugin>
44                 <groupId>org.codehaus.groovy.maven</groupId>
45                 <artifactId>gmaven-plugin</artifactId>
46                 <version>1.0</version>
47                 <executions>
48                     <execution>
49                         <phase>validate</phase>
50                         <goals>
51                             <goal>execute</goal>
52                         </goals>
53                         <configuration>
54                             <source>${basedir}/../TagVersion.groovy</source>
55                         </configuration>
56                     </execution>
57                 </executions>
58             </plugin>
59             <plugin>
60                 <artifactId>maven-resources-plugin</artifactId>
61                 <version>2.6</version>
62                 <executions>
63                     <execution>
64                         <id>copy-dockerfile</id>
65                         <goals>
66                             <goal>copy-resources</goal>
67                         </goals>                        <!-- here the phase you need -->
68                         <phase>validate</phase>
69                         <configuration>
70                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
71                             <resources>
72                                 <resource>
73                                     <directory>src/main/docker</directory>
74                                     <includes>
75                                         <include>Dockerfile</include>
76                                     </includes>
77                                     <filtering>true</filtering>
78                                 </resource>
79                             </resources>
80                         </configuration>
81                     </execution>
82                     <execution>
83                         <id>copy-siteconf</id>
84                         <goals>
85                             <goal>copy-resources</goal>
86                         </goals>                        <!-- here the phase you need -->
87                         <phase>validate</phase>
88                         <configuration>
89                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
90                             <resources>
91                                 <resource>
92                                     <directory>src/main/resources</directory>
93                                     <includes>
94                                         <include>*.conf</include>
95                                     </includes>
96                                     <filtering>true</filtering>
97                                 </resource>
98                             </resources>
99                         </configuration>
100                     </execution>
101
102                     <execution>
103                         <id>copy-scripts</id>
104                         <goals>
105                             <goal>copy-resources</goal>
106                         </goals>                        <!-- here the phase you need -->
107                         <phase>validate</phase>
108                         <configuration>
109                             <outputDirectory>${basedir}/target/docker-stage/bin</outputDirectory>
110                             <resources>
111                                 <resource>
112                                     <directory>src/main/scripts</directory>
113                                     <includes>
114                                         <include>*.sh</include>
115                                     </includes>
116                                     <filtering>true</filtering>
117                                 </resource>
118                             </resources>
119                         </configuration>
120                     </execution>
121                 </executions>
122             </plugin>
123             <plugin>
124                 <groupId>org.apache.maven.plugins</groupId>
125                 <artifactId>maven-dependency-plugin</artifactId>
126                 <executions>
127                     <execution>
128                         <id>unpack features</id>
129                         <phase>generate-sources</phase>
130                         <goals>
131                             <goal>unpack-dependencies</goal>
132                         </goals>
133                         <configuration>
134                             <outputDirectory>${basedir}/target/docker-stage/html</outputDirectory>
135                             <excludeTransitive>true</excludeTransitive>
136                             <overWriteReleases>false</overWriteReleases>
137                             <overWriteSnapshots>true</overWriteSnapshots>
138                             <overWriteIfNewer>true</overWriteIfNewer>
139                         </configuration>
140                     </execution>
141                 </executions>
142             </plugin>
143             <plugin>
144                 <groupId>io.fabric8</groupId>
145                 <artifactId>docker-maven-plugin</artifactId>
146                 <version>0.16.5</version>
147                 <inherited>false</inherited>
148                 <configuration>
149                     <images>
150                         <image>
151                             <name>${image.name}</name>
152                             <build>
153                                 <cleanup>try</cleanup>
154                                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
155                                 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
156                                 <tags>
157                                     <tag>${project.docker.latestminortag.version}</tag>
158                                     <tag>${project.docker.latestfulltag.version}</tag>
159                                     <tag>${project.docker.latesttagtimestamp.version}</tag>
160                                 </tags>
161                             </build>
162                         </image>
163                     </images>
164                 </configuration>
165                 <executions>
166                     <execution>
167                         <id>generate-images</id>
168                         <phase>package</phase>
169                         <goals>
170                             <goal>build</goal>
171                         </goals>
172                     </execution>
173                     <execution>
174                         <id>push-images</id>
175                         <phase>${docker.push.phase}</phase>
176                         <goals>
177                             <goal>build</goal>
178                             <goal>push</goal>
179                         </goals>
180                     </execution>
181                 </executions>
182             </plugin>
183         </plugins>
184     </build>
185 </project>