blob: 9574600a40fd4f2d12acbdc9d9b6f7ded8be1b4f [file] [log] [blame]
danielhanrahan608e6252021-08-20 16:55:19 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2021 Nordix Foundation.
4 ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 SPDX-License-Identifier: Apache-2.0
18 ============LICENSE_END=========================================================
19-->
20
21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
24 <modelVersion>4.0.0</modelVersion>
25
26 <parent>
27 <groupId>org.onap.policy.gui</groupId>
28 <artifactId>gui-packages</artifactId>
29 <version>2.1.0-SNAPSHOT</version>
30 </parent>
31
32 <packaging>pom</packaging>
33 <artifactId>policy-gui-docker</artifactId>
34 <name>${project.artifactId}</name>
35 <description>Policy gui docker image</description>
36
37 <properties>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40 <dist.project.version>${project.version}</dist.project.version>
41 <docker.skip>false</docker.skip>
42 <docker.skip.build>false</docker.skip.build>
43 <docker.skip.push>false</docker.skip.push>
44 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
45 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
46 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
47 </properties>
48
49 <build>
50 <finalName>${project.artifactId}-${project.version}</finalName>
51 <plugins>
52 <plugin>
53 <groupId>org.codehaus.gmaven</groupId>
54 <artifactId>groovy-maven-plugin</artifactId>
55 <version>2.1.1</version>
56 <executions>
57 <execution>
58 <phase>validate</phase>
59 <goals>
60 <goal>execute</goal>
61 </goals>
62 <configuration>
63 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
64 </configuration>
65 </execution>
66 </executions>
67 </plugin>
68
69 <plugin>
70 <groupId>io.fabric8</groupId>
71 <artifactId>docker-maven-plugin</artifactId>
72
73 <configuration>
74 <verbose>true</verbose>
75 <apiVersion>1.23</apiVersion>
76 <pullRegistry>${docker.pull.registry}</pullRegistry>
77 <pushRegistry>${docker.push.registry}</pushRegistry>
78
79 <images>
80 <image>
81 <name>onap/policy-gui</name>
82 <build>
83 <cleanup>try</cleanup>
84 <dockerFile>Dockerfile</dockerFile>
85 <tags>
86 <tag>${project.version}</tag>
87 <tag>${project.version}-${maven.build.timestamp}</tag>
88 <tag>${project.docker.latest.minmax.tag.version}</tag>
89 </tags>
90 <assembly>
91 <inline>
92 <dependencySets>
93 <dependencySet>
94 <includes>
95 <include>org.onap.policy.gui:gui-clamp:tar.gz:clamp-build:${project.version}</include>
96 </includes>
danielhanrahana8af9622021-08-30 17:35:18 +010097 <outputFileNameMapping>gui-clamp-html.tar.gz</outputFileNameMapping>
98 </dependencySet>
99 <dependencySet>
100 <includes>
101 <include>org.onap.policy.gui:gui-pdp-monitoring:tar.gz:frontend:${project.version}</include>
102 </includes>
103 <outputFileNameMapping>gui-pdp-monitoring-html.tar.gz</outputFileNameMapping>
danielhanrahan608e6252021-08-20 16:55:19 +0100104 </dependencySet>
105 <dependencySet>
106 <includes>
107 <include>org.onap.policy.gui:gui-pdp-monitoring:uber.jar:${project.version}</include>
108 </includes>
109 <outputFileNameMapping>gui-pdp-monitoring-uber.jar</outputFileNameMapping>
110 </dependencySet>
111 <dependencySet>
112 <includes>
113 <include>org.onap.policy.gui.editors:gui-editor-apex:uber.jar:${project.version}</include>
114 </includes>
115 <outputFileNameMapping>gui-editor-apex-uber.jar</outputFileNameMapping>
116 </dependencySet>
117 </dependencySets>
118 </inline>
119 </assembly>
120 </build>
121 </image>
122 </images>
123 </configuration>
124
125 <executions>
126 <execution>
127 <id>clean-images</id>
128 <phase>pre-clean</phase>
129 <goals>
130 <goal>remove</goal>
131 </goals>
132 <configuration>
133 <removeAll>true</removeAll>
134 </configuration>
135 </execution>
136
137 <execution>
138 <id>generate-images</id>
139 <phase>generate-sources</phase>
140 <goals>
141 <goal>build</goal>
142 </goals>
143 </execution>
144
145 <execution>
146 <id>push-images</id>
147 <phase>deploy</phase>
148 <goals>
149 <goal>build</goal>
150 <goal>push</goal>
151 </goals>
152 <configuration>
153 <image>onap/policy-gui</image>
154 </configuration>
155 </execution>
156 </executions>
157 </plugin>
158
159 <plugin>
160 <groupId>org.apache.maven.plugins</groupId>
161 <artifactId>maven-deploy-plugin</artifactId>
162 <configuration>
163 <skip>true</skip>
164 </configuration>
165 </plugin>
166 </plugins>
167 </build>
168
169 <dependencies>
170 <dependency>
171 <groupId>org.onap.policy.gui</groupId>
172 <artifactId>gui-clamp</artifactId>
173 <version>${project.version}</version>
174 <classifier>clamp-build</classifier>
175 <type>tar.gz</type>
176 </dependency>
177 <dependency>
178 <groupId>org.onap.policy.gui</groupId>
179 <artifactId>gui-pdp-monitoring</artifactId>
180 <version>${project.version}</version>
danielhanrahana8af9622021-08-30 17:35:18 +0100181 <classifier>frontend</classifier>
182 <type>tar.gz</type>
183 </dependency>
184 <dependency>
185 <groupId>org.onap.policy.gui</groupId>
186 <artifactId>gui-pdp-monitoring</artifactId>
187 <version>${project.version}</version>
danielhanrahan608e6252021-08-20 16:55:19 +0100188 <type>uber.jar</type>
189 </dependency>
190 <dependency>
191 <groupId>org.onap.policy.gui.editors</groupId>
192 <artifactId>gui-editor-apex</artifactId>
193 <version>${project.version}</version>
194 <type>uber.jar</type>
195 </dependency>
196 </dependencies>
197</project>