Pamela Dragosh | f0bd7f4 | 2020-10-26 09:59:09 -0400 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP Policy Engine - XACML Application Tutorial |
| 4 | ================================================================================ |
| 5 | Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. |
liamfallon | c3e8a4a | 2022-10-17 16:55:51 +0100 | [diff] [blame] | 6 | Modifications Copyright (C) 2022 Nordix Foundation. |
Pamela Dragosh | f0bd7f4 | 2020-10-26 09:59:09 -0400 | [diff] [blame] | 7 | ================================================================================ |
| 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 | ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | |
liamfallon | c3e8a4a | 2022-10-17 16:55:51 +0100 | [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"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | f0bd7f4 | 2020-10-26 09:59:09 -0400 | [diff] [blame] | 24 | |
liamfallon | c3e8a4a | 2022-10-17 16:55:51 +0100 | [diff] [blame] | 25 | <parent> |
| 26 | <groupId>org.onap.policy.xacml-pdp</groupId> |
| 27 | <artifactId>xacml-tutorials</artifactId> |
liamfallon | c7b9c9b | 2022-10-21 17:45:43 +0100 | [diff] [blame] | 28 | <version>2.8.0-SNAPSHOT</version> |
liamfallon | c3e8a4a | 2022-10-17 16:55:51 +0100 | [diff] [blame] | 29 | </parent> |
Pamela Dragosh | f0bd7f4 | 2020-10-26 09:59:09 -0400 | [diff] [blame] | 30 | |
liamfallon | c3e8a4a | 2022-10-17 16:55:51 +0100 | [diff] [blame] | 31 | <packaging>jar</packaging> |
| 32 | <groupId>org.onap.policy.tutorial.xacml-application</groupId> |
| 33 | <artifactId>tutorial-xacml-application</artifactId> |
| 34 | <name>tutorial-xacml-application</name> |
| 35 | <description>Policy XACML-PDP tutorial</description> |
Pamela Dragosh | f0bd7f4 | 2020-10-26 09:59:09 -0400 | [diff] [blame] | 36 | |
liamfallon | c3e8a4a | 2022-10-17 16:55:51 +0100 | [diff] [blame] | 37 | <properties> |
| 38 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 39 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 40 | <dist.project.version>${project.version}</dist.project.version> |
| 41 | <docker.skip>false</docker.skip> |
| 42 | <docker.skip.build>false</docker.skip.build> |
| 43 | <docker.skip.push>false</docker.skip.push> |
| 44 | <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir> |
| 45 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
| 46 | </properties> |
Pamela Dragosh | f0bd7f4 | 2020-10-26 09:59:09 -0400 | [diff] [blame] | 47 | |
liamfallon | c3e8a4a | 2022-10-17 16:55:51 +0100 | [diff] [blame] | 48 | <dependencies> |
| 49 | <dependency> |
| 50 | <groupId>org.onap.policy.xacml-pdp.applications</groupId> |
| 51 | <artifactId>common</artifactId> |
| 52 | <version>${project.version}</version> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>org.onap.policy.xacml-pdp</groupId> |
| 56 | <artifactId>xacml-test</artifactId> |
| 57 | <version>${project.version}</version> |
| 58 | <scope>test</scope> |
| 59 | </dependency> |
| 60 | </dependencies> |
Pamela Dragosh | f0bd7f4 | 2020-10-26 09:59:09 -0400 | [diff] [blame] | 61 | |
liamfallon | c3e8a4a | 2022-10-17 16:55:51 +0100 | [diff] [blame] | 62 | <profiles> |
| 63 | <profile> |
| 64 | <id>docker</id> |
| 65 | <build> |
| 66 | <plugins> |
| 67 | <plugin> |
| 68 | <groupId>io.fabric8</groupId> |
| 69 | <artifactId>docker-maven-plugin</artifactId> |
| 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>onap/policy-xacml-tutorial</name> |
| 78 | <build> |
| 79 | <cleanup>try</cleanup> |
| 80 | <dockerFile>Dockerfile</dockerFile> |
| 81 | <contextDir>${docker.contextDir}</contextDir> |
| 82 | <tags> |
| 83 | <tag>${project.version}</tag> |
| 84 | <tag>${project.version}-${maven.build.timestamp}</tag> |
| 85 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
| 86 | </tags> |
| 87 | <contextDir>${project.basedir}/src/main/docker</contextDir> |
| 88 | <assembly> |
| 89 | <descriptorRef>artifact-with-dependencies</descriptorRef> |
| 90 | </assembly> |
| 91 | <args> |
| 92 | <BUILD_NAME>${project.name}</BUILD_NAME> |
| 93 | <BUILD_VERSION>${project.version}</BUILD_VERSION> |
| 94 | </args> |
| 95 | </build> |
| 96 | </image> |
| 97 | </images> |
| 98 | </configuration> |
| 99 | <executions> |
| 100 | <execution> |
| 101 | <id>clean-images</id> |
| 102 | <phase>pre-clean</phase> |
| 103 | <goals> |
| 104 | <goal>remove</goal> |
| 105 | </goals> |
| 106 | <configuration> |
| 107 | <removeAll>true</removeAll> |
| 108 | </configuration> |
| 109 | </execution> |
| 110 | <execution> |
| 111 | <id>generate-images</id> |
| 112 | <phase>package</phase> |
| 113 | <goals> |
| 114 | <goal>build</goal> |
| 115 | </goals> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
| 119 | <plugin> |
| 120 | <groupId>org.apache.maven.plugins</groupId> |
| 121 | <artifactId>maven-deploy-plugin</artifactId> |
| 122 | <configuration> |
| 123 | <skip>true</skip> |
| 124 | </configuration> |
| 125 | </plugin> |
| 126 | </plugins> |
| 127 | </build> |
| 128 | </profile> |
| 129 | </profiles> |
Pamela Dragosh | f0bd7f4 | 2020-10-26 09:59:09 -0400 | [diff] [blame] | 130 | </project> |