Modify pdpstatistics to prevent duplicate keys
[policy/docker.git] / policy-db-migrator / pom.xml
1 <!--
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     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.policy.docker</groupId>
26         <artifactId>docker</artifactId>
27         <version>2.3.1-SNAPSHOT</version>
28     </parent>
29
30     <artifactId>policy-db-migrator</artifactId>
31     <packaging>pom</packaging>
32
33     <name>Policy db-migrator docker image</name>
34     <description>Policy db-migrator docker image.</description>
35
36     <properties>
37         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
39         <dist.project.version>${project.version}</dist.project.version>
40         <docker.skip>false</docker.skip>
41         <docker.skip.build>false</docker.skip.build>
42         <docker.skip.push>false</docker.skip.push>
43         <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
44         <docker.dbm.imagename>onap/policy-db-migrator</docker.dbm.imagename>
45     </properties>
46
47     <build>
48         <finalName>${project.artifactId}-${project.version}</finalName>
49         <plugins>
50             <plugin>
51                 <groupId>org.codehaus.gmaven</groupId>
52                 <artifactId>groovy-maven-plugin</artifactId>
53                 <version>2.1.1</version>
54                 <executions>
55                     <execution>
56                         <phase>validate</phase>
57                         <goals>
58                             <goal>execute</goal>
59                         </goals>
60                         <configuration>
61                             <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
62                         </configuration>
63                     </execution>
64                 </executions>
65             </plugin>
66             <plugin>
67                 <groupId>io.fabric8</groupId>
68                 <artifactId>docker-maven-plugin</artifactId>
69
70                 <configuration>
71                     <verbose>true</verbose>
72                     <apiVersion>1.23</apiVersion>
73                     <pullRegistry>${docker.pull.registry}</pullRegistry>
74                     <pushRegistry>${docker.push.registry}</pushRegistry>
75                     <images>
76                         <image>
77                             <name>${docker.dbm.imagename}</name>
78                             <build>
79                                 <cleanup>try</cleanup>
80                                 <dockerFile>Dockerfile</dockerFile>
81                                 <tags>
82                                     <tag>${project.version}</tag>
83                                     <tag>${project.version}-${maven.build.timestamp}</tag>
84                                     <tag>${project.docker.latest.minmax.tag.version}</tag>
85                                 </tags>
86                             </build>
87                         </image>
88                     </images>
89                 </configuration>
90
91                 <executions>
92                     <execution>
93                         <id>clean-images</id>
94                         <phase>pre-clean</phase>
95                         <goals>
96                             <goal>remove</goal>
97                         </goals>
98                         <configuration>
99                             <removeAll>true</removeAll>
100                         </configuration>
101                     </execution>
102
103                     <execution>
104                         <id>generate-images</id>
105                         <phase>generate-sources</phase>
106                         <goals>
107                             <goal>build</goal>
108                         </goals>
109                     </execution>
110
111                     <execution>
112                         <id>push-images</id>
113                         <phase>deploy</phase>
114                         <goals>
115                             <goal>build</goal>
116                             <goal>push</goal>
117                         </goals>
118                         <configuration>
119                             <image>${docker.dbm.imagename}</image>
120                         </configuration>
121                     </execution>
122                 </executions>
123             </plugin>
124             <plugin>
125                 <groupId>org.apache.maven.plugins</groupId>
126                 <artifactId>maven-deploy-plugin</artifactId>
127                 <configuration>
128                     <skip>true</skip>
129                 </configuration>
130             </plugin>
131             <plugin>
132                 <groupId>org.apache.maven.plugins</groupId>
133                 <artifactId>maven-install-plugin</artifactId>
134                 <configuration>
135                     <skip>true</skip>
136                 </configuration>
137             </plugin>
138         </plugins>
139     </build>
140 </project>