mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 4 | Modifications Copyright (C) 2019-2020 Bell Canada. |
Jim Hahn | 7803acd | 2021-07-19 14:48:59 -0400 | [diff] [blame] | 5 | Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 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 | --> |
liamfallon | 3aa7cbe | 2018-10-31 16:35:54 +0000 | [diff] [blame] | 22 | <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"> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | <parent> |
| 25 | <groupId>org.onap.policy.apex-pdp.packages</groupId> |
Ram Krishna Verma | 8d22852 | 2020-02-05 16:31:01 -0500 | [diff] [blame] | 26 | <artifactId>apex-packages</artifactId> |
liamfallon | 40dc08d | 2021-03-12 09:23:56 +0000 | [diff] [blame] | 27 | <version>2.6.0-SNAPSHOT</version> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 28 | </parent> |
| 29 | |
| 30 | <artifactId>apex-pdp-docker</artifactId> |
| 31 | <packaging>pom</packaging> |
| 32 | <name>Policy APEX PDP - Docker build</name> |
| 33 | <description>ONAP Policy APEX PDP Docker Build</description> |
| 34 | |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 35 | <properties> |
| 36 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 37 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 38 | <dist.project.version>${project.version}</dist.project.version> |
| 39 | <docker.skip>false</docker.skip> |
| 40 | <docker.skip.build>false</docker.skip.build> |
| 41 | <docker.skip.push>false</docker.skip.push> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 42 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
| 43 | </properties> |
| 44 | |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 45 | <build> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 46 | <finalName>${project.artifactId}-${project.version}</finalName> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 47 | <plugins> |
| 48 | <plugin> |
Taka Cho | d4f7ee8 | 2021-08-09 16:12:04 -0400 | [diff] [blame^] | 49 | <groupId>org.codehaus.gmaven</groupId> |
| 50 | <artifactId>groovy-maven-plugin</artifactId> |
| 51 | <version>2.1.1</version> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 52 | <executions> |
| 53 | <execution> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 54 | <phase>validate</phase> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 55 | <goals> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 56 | <goal>execute</goal> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 57 | </goals> |
| 58 | <configuration> |
Taka Cho | d4f7ee8 | 2021-08-09 16:12:04 -0400 | [diff] [blame^] | 59 | <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 60 | </configuration> |
| 61 | </execution> |
| 62 | </executions> |
| 63 | </plugin> |
| 64 | <plugin> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 65 | <groupId>io.fabric8</groupId> |
| 66 | <artifactId>docker-maven-plugin</artifactId> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 67 | <configuration> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 68 | <verbose>true</verbose> |
| 69 | <apiVersion>1.23</apiVersion> |
| 70 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 71 | <pushRegistry>${docker.push.registry}</pushRegistry> |
| 72 | <images> |
| 73 | <image> |
| 74 | <name>onap/policy-apex-pdp</name> |
| 75 | <build> |
| 76 | <cleanup>try</cleanup> |
| 77 | <dockerFile>Dockerfile</dockerFile> |
| 78 | <tags> |
| 79 | <tag>${project.version}</tag> |
| 80 | <tag>${project.version}-${maven.build.timestamp}</tag> |
| 81 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 82 | </tags> |
| 83 | <assembly> |
| 84 | <inline> |
| 85 | <dependencySets> |
| 86 | <dependencySet> |
| 87 | <includes> |
| 88 | <include>org.onap.policy.apex-pdp.packages:apex-pdp-package-full</include> |
| 89 | </includes> |
| 90 | <outputDirectory>.</outputDirectory> |
| 91 | <outputFileNameMapping>apex-pdp-package-full.tar.gz</outputFileNameMapping> |
| 92 | </dependencySet> |
| 93 | </dependencySets> |
| 94 | </inline> |
| 95 | </assembly> |
| 96 | </build> |
| 97 | </image> |
| 98 | </images> |
| 99 | </configuration> |
| 100 | <executions> |
| 101 | <execution> |
| 102 | <id>clean-images</id> |
| 103 | <phase>pre-clean</phase> |
| 104 | <goals> |
| 105 | <goal>remove</goal> |
| 106 | </goals> |
| 107 | <configuration> |
| 108 | <removeAll>true</removeAll> |
| 109 | </configuration> |
| 110 | </execution> |
| 111 | <execution> |
| 112 | <id>generate-images</id> |
| 113 | <phase>generate-sources</phase> |
| 114 | <goals> |
| 115 | <goal>build</goal> |
| 116 | </goals> |
| 117 | </execution> |
| 118 | <execution> |
| 119 | <id>push-images</id> |
| 120 | <phase>deploy</phase> |
| 121 | <goals> |
| 122 | <goal>build</goal> |
| 123 | <goal>push</goal> |
| 124 | </goals> |
| 125 | <configuration> |
| 126 | <image>onap/policy-apex-pdp</image> |
| 127 | </configuration> |
| 128 | </execution> |
| 129 | </executions> |
| 130 | </plugin> |
| 131 | <plugin> |
| 132 | <groupId>org.apache.maven.plugins</groupId> |
| 133 | <artifactId>maven-deploy-plugin</artifactId> |
| 134 | <configuration> |
| 135 | <skip>true</skip> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 136 | </configuration> |
| 137 | </plugin> |
mmis | ef24b05 | 2018-07-10 10:50:05 +0100 | [diff] [blame] | 138 | </plugins> |
| 139 | </build> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 140 | <dependencies> |
| 141 | <dependency> |
| 142 | <groupId>${project.groupId}</groupId> |
| 143 | <artifactId>apex-pdp-package-full</artifactId> |
| 144 | <version>${project.version}</version> |
| 145 | <type>tar.gz</type> |
| 146 | </dependency> |
| 147 | </dependencies> |
Rashmi Pujar | 7b94541 | 2019-06-17 10:34:49 -0400 | [diff] [blame] | 148 | </project> |