Fix pap stability jmx event parameters
[policy/pap.git] / packages / policy-pap-docker / pom.xml.versionsBackup
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2019-2023 Nordix Foundation.
4    Modifications Copyright (C) 2020-2021 Bell Canada.
5    Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.policy.pap</groupId>
28         <artifactId>pap-packages</artifactId>
29         <version>3.1.2-SNAPSHOT</version>
30     </parent>
31
32     <artifactId>policy-pap-docker</artifactId>
33     <packaging>pom</packaging>
34
35     <name>${project.artifactId}</name>
36     <description>The module for creating docker images of PAP component.</description>
37
38     <properties>
39         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
41         <dist.project.version>${project.version}</dist.project.version>
42         <docker.skip>false</docker.skip>
43         <docker.skip.build>false</docker.skip.build>
44         <docker.skip.push>false</docker.skip.push>
45         <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir>
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                 <executions>
56                     <execution>
57                         <phase>validate</phase>
58                         <goals>
59                             <goal>execute</goal>
60                         </goals>
61                         <configuration>
62                             <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
63                         </configuration>
64                     </execution>
65                 </executions>
66             </plugin>
67
68             <plugin>
69                 <groupId>io.github.git-commit-id</groupId>
70                 <artifactId>git-commit-id-maven-plugin</artifactId>
71             </plugin>
72
73             <plugin>
74                 <groupId>io.fabric8</groupId>
75                 <artifactId>docker-maven-plugin</artifactId>
76
77                 <configuration>
78                     <verbose>true</verbose>
79                     <apiVersion>1.23</apiVersion>
80                     <pullRegistry>${docker.pull.registry}</pullRegistry>
81                     <pushRegistry>${docker.push.registry}</pushRegistry>
82
83                     <images>
84                         <image>
85                             <name>onap/policy-pap</name>
86                             <build>
87                                 <cleanup>try</cleanup>
88                                 <dockerFile>${dockerFile}</dockerFile>
89                                 <contextDir>${docker.contextDir}</contextDir>
90                                 <tags>
91                                     <tag>${project.version}</tag>
92                                     <tag>${project.version}-${maven.build.timestamp}</tag>
93                                     <tag>${project.docker.latest.minmax.tag.version}</tag>
94                                 </tags>
95                                 <assembly>
96                                     <inline>
97                                         <dependencySets>
98                                             <dependencySet>
99                                                 <includes>
100                                                     <include>org.onap.policy.pap:policy-pap-tarball</include>
101                                                 </includes>
102                                                 <outputDirectory>/lib</outputDirectory>
103                                                 <outputFileNameMapping>policy-pap.tar.gz</outputFileNameMapping>
104                                             </dependencySet>
105                                             <dependencySet>
106                                                 <includes>
107                                                     <include>org.onap.policy.pap:pap-main</include>
108                                                 </includes>
109                                                 <outputFileNameMapping>pap.jar</outputFileNameMapping>
110                                             </dependencySet>
111                                         </dependencySets>
112                                     </inline>
113                                 </assembly>
114                             </build>
115                         </image>
116                     </images>
117                 </configuration>
118
119                 <executions>
120                     <execution>
121                         <id>clean-images</id>
122                         <phase>pre-clean</phase>
123                         <goals>
124                             <goal>remove</goal>
125                         </goals>
126                         <configuration>
127                             <removeAll>true</removeAll>
128                         </configuration>
129                     </execution>
130
131                     <execution>
132                         <id>generate-images</id>
133                         <phase>generate-sources</phase>
134                         <goals>
135                             <goal>build</goal>
136                         </goals>
137                     </execution>
138
139                     <execution>
140                         <id>push-images</id>
141                         <phase>deploy</phase>
142                         <goals>
143                             <goal>build</goal>
144                             <goal>push</goal>
145                         </goals>
146                     </execution>
147                 </executions>
148             </plugin>
149
150             <plugin>
151                 <groupId>org.apache.maven.plugins</groupId>
152                 <artifactId>maven-deploy-plugin</artifactId>
153                 <configuration>
154                     <skip>true</skip>
155                 </configuration>
156             </plugin>
157         </plugins>
158     </build>
159
160     <dependencies>
161         <dependency>
162             <groupId>org.onap.policy.pap</groupId>
163             <artifactId>policy-pap-tarball</artifactId>
164             <version>${project.version}</version>
165             <classifier>tarball</classifier>
166             <type>tar.gz</type>
167         </dependency>
168     </dependencies>
169 </project>