blob: 9d2a6826c11b0b7c16d56064e6f73955779b571f [file] [log] [blame]
danielhanrahan608e6252021-08-20 16:55:19 +01001<!--
2 ============LICENSE_START=======================================================
danielhanrahane56f1272022-01-28 11:41:38 +00003 Copyright (C) 2021-2022 Nordix Foundation.
danielhanrahan608e6252021-08-20 16:55:19 +01004 ================================================================================
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>
liamfallon9e229032022-05-03 17:22:15 +010029 <version>2.3.0-SNAPSHOT</version>
danielhanrahan608e6252021-08-20 16:55:19 +010030 </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>
danielhanrahan000b0c82022-06-28 14:37:30 +010070 <groupId>io.github.git-commit-id</groupId>
71 <artifactId>git-commit-id-maven-plugin</artifactId>
72 <version>5.0.0</version>
73 <executions>
74 <execution>
75 <id>get-the-git-infos</id>
76 <goals>
77 <goal>revision</goal>
78 </goals>
79 <phase>initialize</phase>
80 </execution>
81 </executions>
82 <configuration>
83 <skipPoms>false</skipPoms>
84 <generateGitPropertiesFile>true</generateGitPropertiesFile>
85 <includeOnlyProperties>
86 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
87 <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
88 </includeOnlyProperties>
89 <commitIdGenerationMode>full</commitIdGenerationMode>
90 </configuration>
91 </plugin>
92
93 <plugin>
danielhanrahan608e6252021-08-20 16:55:19 +010094 <groupId>io.fabric8</groupId>
95 <artifactId>docker-maven-plugin</artifactId>
96
97 <configuration>
98 <verbose>true</verbose>
99 <apiVersion>1.23</apiVersion>
100 <pullRegistry>${docker.pull.registry}</pullRegistry>
101 <pushRegistry>${docker.push.registry}</pushRegistry>
102
103 <images>
104 <image>
105 <name>onap/policy-gui</name>
106 <build>
107 <cleanup>try</cleanup>
danielhanrahan72772cd2022-05-26 20:41:24 +0100108 <dockerFile>${dockerFile}</dockerFile>
danielhanrahan608e6252021-08-20 16:55:19 +0100109 <tags>
110 <tag>${project.version}</tag>
111 <tag>${project.version}-${maven.build.timestamp}</tag>
112 <tag>${project.docker.latest.minmax.tag.version}</tag>
113 </tags>
114 <assembly>
115 <inline>
116 <dependencySets>
117 <dependencySet>
118 <includes>
danielhanrahane56f1272022-01-28 11:41:38 +0000119 <include>org.onap.policy.gui:gui-server:jar:${project.version}</include>
danielhanrahan608e6252021-08-20 16:55:19 +0100120 </includes>
danielhanrahane56f1272022-01-28 11:41:38 +0000121 <outputFileNameMapping>app.jar</outputFileNameMapping>
danielhanrahana8af9622021-08-30 17:35:18 +0100122 </dependencySet>
danielhanrahan608e6252021-08-20 16:55:19 +0100123 </dependencySets>
124 </inline>
125 </assembly>
126 </build>
127 </image>
128 </images>
129 </configuration>
130
131 <executions>
132 <execution>
133 <id>clean-images</id>
134 <phase>pre-clean</phase>
135 <goals>
136 <goal>remove</goal>
137 </goals>
138 <configuration>
139 <removeAll>true</removeAll>
140 </configuration>
141 </execution>
142
143 <execution>
144 <id>generate-images</id>
145 <phase>generate-sources</phase>
146 <goals>
147 <goal>build</goal>
148 </goals>
149 </execution>
150
151 <execution>
152 <id>push-images</id>
153 <phase>deploy</phase>
154 <goals>
155 <goal>build</goal>
156 <goal>push</goal>
157 </goals>
158 <configuration>
159 <image>onap/policy-gui</image>
160 </configuration>
161 </execution>
162 </executions>
163 </plugin>
164
165 <plugin>
166 <groupId>org.apache.maven.plugins</groupId>
167 <artifactId>maven-deploy-plugin</artifactId>
168 <configuration>
169 <skip>true</skip>
170 </configuration>
171 </plugin>
172 </plugins>
173 </build>
174
175 <dependencies>
176 <dependency>
177 <groupId>org.onap.policy.gui</groupId>
danielhanrahane56f1272022-01-28 11:41:38 +0000178 <artifactId>gui-server</artifactId>
danielhanrahan608e6252021-08-20 16:55:19 +0100179 <version>${project.version}</version>
danielhanrahan608e6252021-08-20 16:55:19 +0100180 </dependency>
danielhanrahan608e6252021-08-20 16:55:19 +0100181 </dependencies>
182</project>