Set all cross references of policy/xacml-pdp
[policy/xacml-pdp.git] / tutorials / tutorial-xacml-application / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine - XACML Application Tutorial
4   ================================================================================
5   Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6   Modifications Copyright (C) 2022-2023 Nordix Foundation.
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
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.policy.xacml-pdp</groupId>
28         <artifactId>xacml-tutorials</artifactId>
29         <version>3.1.3-SNAPSHOT</version>
30     </parent>
31
32     <packaging>jar</packaging>
33     <groupId>org.onap.policy.tutorial.xacml-application</groupId>
34     <artifactId>tutorial-xacml-application</artifactId>
35     <name>tutorial-xacml-application</name>
36     <description>Policy XACML-PDP tutorial</description>
37
38     <properties>
39         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
41         <dist.project.version>${project.version}</dist.project.version>
42         <docker.skip>false</docker.skip>
43         <docker.skip.build>false</docker.skip.build>
44         <docker.skip.push>false</docker.skip.push>
45         <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir>
46         <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
47     </properties>
48
49     <dependencies>
50         <dependency>
51             <groupId>org.onap.policy.xacml-pdp.applications</groupId>
52             <artifactId>common</artifactId>
53             <version>${project.version}</version>
54         </dependency>
55         <dependency>
56             <groupId>org.onap.policy.xacml-pdp</groupId>
57             <artifactId>xacml-test</artifactId>
58             <version>${project.version}</version>
59             <scope>test</scope>
60         </dependency>
61     </dependencies>
62
63     <profiles>
64         <profile>
65             <id>docker</id>
66             <build>
67                 <plugins>
68                     <plugin>
69                         <groupId>io.fabric8</groupId>
70                         <artifactId>docker-maven-plugin</artifactId>
71                         <configuration>
72                             <verbose>true</verbose>
73                             <apiVersion>1.23</apiVersion>
74                             <pullRegistry>${docker.pull.registry}</pullRegistry>
75                             <pushRegistry>${docker.push.registry}</pushRegistry>
76                             <images>
77                                 <image>
78                                     <name>onap/policy-xacml-tutorial</name>
79                                     <build>
80                                         <cleanup>try</cleanup>
81                                         <dockerFile>Dockerfile</dockerFile>
82                                         <contextDir>${docker.contextDir}</contextDir>
83                                         <tags>
84                                             <tag>${project.version}</tag>
85                                             <tag>${project.version}-${maven.build.timestamp}</tag>
86                                             <tag>${project.docker.latest.minmax.tag.version}</tag>
87                                         </tags>
88                                         <contextDir>${project.basedir}/src/main/docker</contextDir>
89                                         <assembly>
90                                             <descriptorRef>artifact-with-dependencies</descriptorRef>
91                                         </assembly>
92                                         <args>
93                                             <BUILD_NAME>${project.name}</BUILD_NAME>
94                                             <BUILD_VERSION>${project.version}</BUILD_VERSION>
95                                         </args>
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>package</phase>
114                                 <goals>
115                                     <goal>build</goal>
116                                 </goals>
117                             </execution>
118                         </executions>
119                     </plugin>
120                     <plugin>
121                         <groupId>org.apache.maven.plugins</groupId>
122                         <artifactId>maven-deploy-plugin</artifactId>
123                         <configuration>
124                             <skip>true</skip>
125                         </configuration>
126                     </plugin>
127                 </plugins>
128             </build>
129         </profile>
130     </profiles>
131 </project>