blob: 47927e6cdb40224a4cddeec4ccbca46592cdc7a5 [file] [log] [blame]
danielhanrahan608e6252021-08-20 16:55:19 +01001<!--
2 ============LICENSE_START=======================================================
liamfallonaa303502023-02-17 19:16:12 +00003 Copyright (C) 2021-2023 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>
liamfallon5aa5a742022-12-16 12:30:26 +000029 <version>2.4.1-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>
danielhanrahan94e79d22022-09-01 18:43:32 +010046 <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir>
danielhanrahan608e6252021-08-20 16:55:19 +010047 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
48 </properties>
49
50 <build>
51 <finalName>${project.artifactId}-${project.version}</finalName>
52 <plugins>
53 <plugin>
54 <groupId>org.codehaus.gmaven</groupId>
55 <artifactId>groovy-maven-plugin</artifactId>
danielhanrahan608e6252021-08-20 16:55:19 +010056 <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>
danielhanrahan000b0c82022-06-28 14:37:30 +010072 </plugin>
73
74 <plugin>
danielhanrahan608e6252021-08-20 16:55:19 +010075 <groupId>io.fabric8</groupId>
76 <artifactId>docker-maven-plugin</artifactId>
77
78 <configuration>
79 <verbose>true</verbose>
80 <apiVersion>1.23</apiVersion>
81 <pullRegistry>${docker.pull.registry}</pullRegistry>
82 <pushRegistry>${docker.push.registry}</pushRegistry>
83
84 <images>
85 <image>
86 <name>onap/policy-gui</name>
87 <build>
88 <cleanup>try</cleanup>
danielhanrahan72772cd2022-05-26 20:41:24 +010089 <dockerFile>${dockerFile}</dockerFile>
danielhanrahan94e79d22022-09-01 18:43:32 +010090 <contextDir>${docker.contextDir}</contextDir>
danielhanrahan608e6252021-08-20 16:55:19 +010091 <tags>
92 <tag>${project.version}</tag>
93 <tag>${project.version}-${maven.build.timestamp}</tag>
94 <tag>${project.docker.latest.minmax.tag.version}</tag>
95 </tags>
96 <assembly>
97 <inline>
98 <dependencySets>
99 <dependencySet>
100 <includes>
danielhanrahane56f1272022-01-28 11:41:38 +0000101 <include>org.onap.policy.gui:gui-server:jar:${project.version}</include>
danielhanrahan608e6252021-08-20 16:55:19 +0100102 </includes>
danielhanrahane56f1272022-01-28 11:41:38 +0000103 <outputFileNameMapping>app.jar</outputFileNameMapping>
danielhanrahana8af9622021-08-30 17:35:18 +0100104 </dependencySet>
danielhanrahan608e6252021-08-20 16:55:19 +0100105 </dependencySets>
106 </inline>
107 </assembly>
108 </build>
109 </image>
110 </images>
111 </configuration>
112
113 <executions>
114 <execution>
115 <id>clean-images</id>
116 <phase>pre-clean</phase>
117 <goals>
118 <goal>remove</goal>
119 </goals>
120 <configuration>
121 <removeAll>true</removeAll>
122 </configuration>
123 </execution>
124
125 <execution>
126 <id>generate-images</id>
127 <phase>generate-sources</phase>
128 <goals>
129 <goal>build</goal>
130 </goals>
131 </execution>
132
133 <execution>
134 <id>push-images</id>
135 <phase>deploy</phase>
136 <goals>
137 <goal>build</goal>
138 <goal>push</goal>
139 </goals>
140 <configuration>
141 <image>onap/policy-gui</image>
142 </configuration>
143 </execution>
144 </executions>
145 </plugin>
146
147 <plugin>
148 <groupId>org.apache.maven.plugins</groupId>
149 <artifactId>maven-deploy-plugin</artifactId>
150 <configuration>
151 <skip>true</skip>
152 </configuration>
153 </plugin>
154 </plugins>
155 </build>
156
157 <dependencies>
158 <dependency>
159 <groupId>org.onap.policy.gui</groupId>
danielhanrahane56f1272022-01-28 11:41:38 +0000160 <artifactId>gui-server</artifactId>
danielhanrahan608e6252021-08-20 16:55:19 +0100161 <version>${project.version}</version>
danielhanrahan608e6252021-08-20 16:55:19 +0100162 </dependency>
danielhanrahan608e6252021-08-20 16:55:19 +0100163 </dependencies>
164</project>