blob: 35931e0c891219f39c00432a583ef591a88910a8 [file] [log] [blame]
Michael Mokryab1824d2019-02-13 10:34:48 -06001<!--
2 ============LICENSE_START=======================================================
Jim Hahnc9309f12021-07-20 09:59:53 -04003 Copyright (C) 2019, 2021 AT&T Intellectual Property. All rights reserved.
Ram Krishna Vermaec3592f2020-02-05 16:32:11 -05004 Modifications Copyright (C) 2020 Bell Canada.
Michael Mokryab1824d2019-02-13 10:34:48 -06005 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
20-->
21
22<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.onap.policy.xacml-pdp</groupId>
Ram Krishna Vermaec3592f2020-02-05 16:32:11 -050028 <artifactId>xacml-packages</artifactId>
Pamela Dragosh54aec032021-03-11 15:36:39 -050029 <version>2.5.0-SNAPSHOT</version>
Michael Mokryab1824d2019-02-13 10:34:48 -060030 </parent>
31
32 <packaging>pom</packaging>
33 <artifactId>policy-xacmlpdp-docker</artifactId>
Taka Chod91e75b2021-08-09 16:29:29 -040034
Michael Mokryab1824d2019-02-13 10:34:48 -060035 <name>${project.artifactId}</name>
36 <description>Creates Policy Xacml PDP docker images</description>
37
38 <properties>
39 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Taka Chod91e75b2021-08-09 16:29:29 -040041 <dist.project.version>${project.version}</dist.project.version>
Michael Mokryab1824d2019-02-13 10:34:48 -060042 <docker.skip>false</docker.skip>
43 <docker.skip.build>false</docker.skip.build>
44 <docker.skip.push>false</docker.skip.push>
Michael Mokryab1824d2019-02-13 10:34:48 -060045 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
46 </properties>
47
48 <build>
49 <finalName>${project.artifactId}-${project.version}</finalName>
50 <plugins>
51 <plugin>
Taka Chod91e75b2021-08-09 16:29:29 -040052 <groupId>org.codehaus.gmaven</groupId>
53 <artifactId>groovy-maven-plugin</artifactId>
54 <version>2.1.1</version>
Michael Mokryab1824d2019-02-13 10:34:48 -060055 <executions>
56 <execution>
57 <phase>validate</phase>
58 <goals>
59 <goal>execute</goal>
60 </goals>
61 <configuration>
Taka Chod91e75b2021-08-09 16:29:29 -040062 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
Michael Mokryab1824d2019-02-13 10:34:48 -060063 </configuration>
64 </execution>
65 </executions>
66 </plugin>
67
68 <plugin>
69 <groupId>io.fabric8</groupId>
70 <artifactId>docker-maven-plugin</artifactId>
Michael Mokryab1824d2019-02-13 10:34:48 -060071
72 <configuration>
73 <verbose>true</verbose>
74 <apiVersion>1.23</apiVersion>
75 <pullRegistry>${docker.pull.registry}</pullRegistry>
76 <pushRegistry>${docker.push.registry}</pushRegistry>
77
78 <images>
79 <image>
80 <name>onap/policy-xacml-pdp</name>
81 <build>
82 <cleanup>try</cleanup>
83 <dockerFile>Dockerfile</dockerFile>
84 <tags>
85 <tag>${project.version}</tag>
86 <tag>${project.version}-${maven.build.timestamp}</tag>
Pamela Dragosh0745cb92019-06-25 15:00:24 -040087 <tag>${project.docker.latest.minmax.tag.version}</tag>
Michael Mokryab1824d2019-02-13 10:34:48 -060088 </tags>
89 <assembly>
90 <inline>
91 <dependencySets>
92 <dependencySet>
93 <includes>
Jorge Hernandeze6fd1ff2019-02-28 18:08:54 -060094 <include>org.onap.policy.xacml-pdp:policy-xacmlpdp-tarball</include>
Michael Mokryab1824d2019-02-13 10:34:48 -060095 </includes>
96 <outputDirectory>/lib</outputDirectory>
97 <outputFileNameMapping>policy-xacmlpdp.tar.gz</outputFileNameMapping>
98 </dependencySet>
99 </dependencySets>
100 </inline>
101 </assembly>
102 </build>
103 </image>
104 </images>
105 </configuration>
106
107 <executions>
108 <execution>
109 <id>clean-images</id>
110 <phase>pre-clean</phase>
111 <goals>
112 <goal>remove</goal>
113 </goals>
114 <configuration>
115 <removeAll>true</removeAll>
116 </configuration>
117 </execution>
118
119 <execution>
120 <id>generate-images</id>
121 <phase>generate-sources</phase>
122 <goals>
123 <goal>build</goal>
124 </goals>
125 </execution>
126
127 <execution>
128 <id>push-images</id>
129 <phase>deploy</phase>
130 <goals>
131 <goal>build</goal>
132 <goal>push</goal>
133 </goals>
134 <configuration>
Jorge Hernandeze6fd1ff2019-02-28 18:08:54 -0600135 <image>onap/policy-xacml-pdp</image>
Michael Mokryab1824d2019-02-13 10:34:48 -0600136 </configuration>
137 </execution>
138 </executions>
139 </plugin>
140
141 <plugin>
142 <groupId>org.apache.maven.plugins</groupId>
143 <artifactId>maven-deploy-plugin</artifactId>
144 <configuration>
145 <skip>true</skip>
146 </configuration>
147 </plugin>
148 </plugins>
149 </build>
150
151 <dependencies>
152 <dependency>
153 <groupId>org.onap.policy.xacml-pdp</groupId>
154 <artifactId>policy-xacmlpdp-tarball</artifactId>
155 <version>${project.version}</version>
156 <classifier>tarball</classifier>
157 <type>tar.gz</type>
158 </dependency>
159 </dependencies>
160</project>