blob: 6defaa1383f925924c2520f0c87dc7c4c17c7b14 [file] [log] [blame]
Pamela Dragoshf0bd7f42020-10-26 09:59:09 -04001<!--
2 ============LICENSE_START=======================================================
3 ONAP Policy Engine - XACML Application Tutorial
4 ================================================================================
5 Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
liamfallonc3e8a4a2022-10-17 16:55:51 +01006 Modifications Copyright (C) 2022 Nordix Foundation.
Pamela Dragoshf0bd7f42020-10-26 09:59:09 -04007 ================================================================================
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
liamfallonc3e8a4a2022-10-17 16:55:51 +010022<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 Dragoshf0bd7f42020-10-26 09:59:09 -040024
liamfallonc3e8a4a2022-10-17 16:55:51 +010025 <parent>
26 <groupId>org.onap.policy.xacml-pdp</groupId>
27 <artifactId>xacml-tutorials</artifactId>
liamfallonc7b9c9b2022-10-21 17:45:43 +010028 <version>2.8.0-SNAPSHOT</version>
liamfallonc3e8a4a2022-10-17 16:55:51 +010029 </parent>
Pamela Dragoshf0bd7f42020-10-26 09:59:09 -040030
liamfallonc3e8a4a2022-10-17 16:55:51 +010031 <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 Dragoshf0bd7f42020-10-26 09:59:09 -040036
liamfallonc3e8a4a2022-10-17 16:55:51 +010037 <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 Dragoshf0bd7f42020-10-26 09:59:09 -040047
liamfallonc3e8a4a2022-10-17 16:55:51 +010048 <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 Dragoshf0bd7f42020-10-26 09:59:09 -040061
liamfallonc3e8a4a2022-10-17 16:55:51 +010062 <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 Dragoshf0bd7f42020-10-26 09:59:09 -0400130</project>