blob: 16f2370b88004b029863855fedf37e2a657c964e [file] [log] [blame]
mmisef24b052018-07-10 10:50:05 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
Ram Krishna Verma8d228522020-02-05 16:31:01 -05004 Modifications Copyright (C) 2019-2020 Bell Canada.
Jim Hahn7803acd2021-07-19 14:48:59 -04005 Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
danielhanrahana7309ed2022-06-28 11:45:15 +01006 Modifications Copyright (C) 2022 Nordix Foundation.
mmisef24b052018-07-10 10:50:05 +01007 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19
20 SPDX-License-Identifier: Apache-2.0
21 ============LICENSE_END=========================================================
22-->
liamfallon3aa7cbe2018-10-31 16:35:54 +000023<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
mmisef24b052018-07-10 10:50:05 +010024 <modelVersion>4.0.0</modelVersion>
25 <parent>
26 <groupId>org.onap.policy.apex-pdp.packages</groupId>
Ram Krishna Verma8d228522020-02-05 16:31:01 -050027 <artifactId>apex-packages</artifactId>
liamfallon57fbf692022-05-03 17:22:02 +010028 <version>2.8.0-SNAPSHOT</version>
mmisef24b052018-07-10 10:50:05 +010029 </parent>
30
31 <artifactId>apex-pdp-docker</artifactId>
32 <packaging>pom</packaging>
33 <name>Policy APEX PDP - Docker build</name>
34 <description>ONAP Policy APEX PDP Docker Build</description>
35
Rashmi Pujar7b945412019-06-17 10:34:49 -040036 <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>
danielhanrahan765bea32022-09-01 14:55:46 +010043 <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir>
Rashmi Pujar7b945412019-06-17 10:34:49 -040044 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
45 </properties>
46
mmisef24b052018-07-10 10:50:05 +010047 <build>
Rashmi Pujar7b945412019-06-17 10:34:49 -040048 <finalName>${project.artifactId}-${project.version}</finalName>
mmisef24b052018-07-10 10:50:05 +010049 <plugins>
50 <plugin>
Taka Chod4f7ee82021-08-09 16:12:04 -040051 <groupId>org.codehaus.gmaven</groupId>
52 <artifactId>groovy-maven-plugin</artifactId>
53 <version>2.1.1</version>
mmisef24b052018-07-10 10:50:05 +010054 <executions>
55 <execution>
Rashmi Pujar7b945412019-06-17 10:34:49 -040056 <phase>validate</phase>
mmisef24b052018-07-10 10:50:05 +010057 <goals>
Rashmi Pujar7b945412019-06-17 10:34:49 -040058 <goal>execute</goal>
mmisef24b052018-07-10 10:50:05 +010059 </goals>
60 <configuration>
Taka Chod4f7ee82021-08-09 16:12:04 -040061 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
mmisef24b052018-07-10 10:50:05 +010062 </configuration>
63 </execution>
64 </executions>
65 </plugin>
danielhanrahana7309ed2022-06-28 11:45:15 +010066
67 <plugin>
68 <groupId>io.github.git-commit-id</groupId>
69 <artifactId>git-commit-id-maven-plugin</artifactId>
70 <version>5.0.0</version>
71 <executions>
72 <execution>
73 <id>get-the-git-infos</id>
74 <goals>
75 <goal>revision</goal>
76 </goals>
77 <phase>initialize</phase>
78 </execution>
79 </executions>
80 <configuration>
81 <skipPoms>false</skipPoms>
82 <generateGitPropertiesFile>true</generateGitPropertiesFile>
83 <includeOnlyProperties>
84 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
85 <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
86 </includeOnlyProperties>
87 <commitIdGenerationMode>full</commitIdGenerationMode>
88 </configuration>
89 </plugin>
90
mmisef24b052018-07-10 10:50:05 +010091 <plugin>
Rashmi Pujar7b945412019-06-17 10:34:49 -040092 <groupId>io.fabric8</groupId>
93 <artifactId>docker-maven-plugin</artifactId>
mmisef24b052018-07-10 10:50:05 +010094 <configuration>
Rashmi Pujar7b945412019-06-17 10:34:49 -040095 <verbose>true</verbose>
96 <apiVersion>1.23</apiVersion>
97 <pullRegistry>${docker.pull.registry}</pullRegistry>
98 <pushRegistry>${docker.push.registry}</pushRegistry>
99 <images>
100 <image>
101 <name>onap/policy-apex-pdp</name>
102 <build>
103 <cleanup>try</cleanup>
danielhanrahan9848f962022-05-24 10:06:56 +0100104 <dockerFile>${dockerFile}</dockerFile>
danielhanrahan765bea32022-09-01 14:55:46 +0100105 <contextDir>${docker.contextDir}</contextDir>
Rashmi Pujar7b945412019-06-17 10:34:49 -0400106 <tags>
107 <tag>${project.version}</tag>
108 <tag>${project.version}-${maven.build.timestamp}</tag>
109 <tag>${project.docker.latest.minmax.tag.version}</tag>
110 </tags>
111 <assembly>
112 <inline>
113 <dependencySets>
114 <dependencySet>
115 <includes>
116 <include>org.onap.policy.apex-pdp.packages:apex-pdp-package-full</include>
117 </includes>
118 <outputDirectory>.</outputDirectory>
119 <outputFileNameMapping>apex-pdp-package-full.tar.gz</outputFileNameMapping>
120 </dependencySet>
121 </dependencySets>
122 </inline>
123 </assembly>
124 </build>
125 </image>
126 </images>
127 </configuration>
128 <executions>
129 <execution>
130 <id>clean-images</id>
131 <phase>pre-clean</phase>
132 <goals>
133 <goal>remove</goal>
134 </goals>
135 <configuration>
136 <removeAll>true</removeAll>
137 </configuration>
138 </execution>
139 <execution>
140 <id>generate-images</id>
141 <phase>generate-sources</phase>
142 <goals>
143 <goal>build</goal>
144 </goals>
145 </execution>
146 <execution>
147 <id>push-images</id>
148 <phase>deploy</phase>
149 <goals>
150 <goal>build</goal>
151 <goal>push</goal>
152 </goals>
153 <configuration>
154 <image>onap/policy-apex-pdp</image>
155 </configuration>
156 </execution>
157 </executions>
158 </plugin>
danielhanrahana7309ed2022-06-28 11:45:15 +0100159
Rashmi Pujar7b945412019-06-17 10:34:49 -0400160 <plugin>
161 <groupId>org.apache.maven.plugins</groupId>
162 <artifactId>maven-deploy-plugin</artifactId>
163 <configuration>
164 <skip>true</skip>
mmisef24b052018-07-10 10:50:05 +0100165 </configuration>
166 </plugin>
mmisef24b052018-07-10 10:50:05 +0100167 </plugins>
168 </build>
Rashmi Pujar7b945412019-06-17 10:34:49 -0400169 <dependencies>
170 <dependency>
171 <groupId>${project.groupId}</groupId>
172 <artifactId>apex-pdp-package-full</artifactId>
173 <version>${project.version}</version>
174 <type>tar.gz</type>
175 </dependency>
176 </dependencies>
Rashmi Pujar7b945412019-06-17 10:34:49 -0400177</project>