2 ============LICENSE_START=======================================================
3 Copyright (C) 2019, 2023 Nordix Foundation.
4 Modifications Copyright (C) 2019-2020 AT&T Intellectual Property.
5 Modifications Copyright (C) 2020-2023 Bell Canada.
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
11 http://www.apache.org/licenses/LICENSE-2.0
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.
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
23 <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">
24 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.policy.pap</groupId>
27 <artifactId>policy-pap</artifactId>
28 <version>3.0.1-SNAPSHOT</version>
31 <artifactId>pap-main</artifactId>
33 <name>${project.artifactId}</name>
34 <description>The main module of Policy Administration Backend that handles startup, lifecycle management, and parameters.</description>
38 <groupId>org.onap.policy.common</groupId>
39 <artifactId>policy-endpoints</artifactId>
40 <version>${policy.common.version}</version>
43 <groupId>org.onap.policy.models</groupId>
44 <artifactId>policy-models-pap</artifactId>
45 <version>${policy.models.version}</version>
48 <groupId>org.onap.policy.models</groupId>
49 <artifactId>policy-models-pdp</artifactId>
50 <version>${policy.models.version}</version>
53 <groupId>org.onap.policy.common</groupId>
54 <artifactId>spring-utils</artifactId>
55 <version>${policy.common.version}</version>
58 <groupId>org.onap.policy.common</groupId>
59 <artifactId>utils-test</artifactId>
60 <version>${policy.common.version}</version>
65 <groupId>org.springframework.boot</groupId>
66 <artifactId>spring-boot-starter-web</artifactId>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-starter-tomcat</artifactId>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-starter-data-jpa</artifactId>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-starter-security</artifactId>
81 <groupId>org.springframework.boot</groupId>
82 <artifactId>spring-boot-starter-aop</artifactId>
85 <groupId>org.springframework.boot</groupId>
86 <artifactId>spring-boot-starter-actuator</artifactId>
89 <groupId>io.micrometer</groupId>
90 <artifactId>micrometer-registry-prometheus</artifactId>
91 <scope>runtime</scope>
94 <groupId>org.apache.kafka</groupId>
95 <artifactId>kafka-clients</artifactId>
96 <scope>provided</scope>
99 <groupId>org.springdoc</groupId>
100 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
103 <groupId>org.apache.tomcat.embed</groupId>
104 <artifactId>tomcat-embed-core</artifactId>
108 <groupId>org.mockito</groupId>
109 <artifactId>mockito-core</artifactId>
113 <groupId>com.h2database</groupId>
114 <artifactId>h2</artifactId>
118 <groupId>org.springframework.security</groupId>
119 <artifactId>spring-security-test</artifactId>
120 <version>${version.spring-security}</version>
124 <groupId>org.springframework.boot</groupId>
125 <artifactId>spring-boot-starter-test</artifactId>
129 <groupId>org.junit.jupiter</groupId>
130 <artifactId>junit-jupiter-engine</artifactId>
134 <groupId>org.mockito</groupId>
135 <artifactId>mockito-junit-jupiter</artifactId>
141 <!-- Output the version of the pap service -->
143 <directory>src/main/resources</directory>
144 <filtering>true</filtering>
146 <include>**/version.txt</include>
150 <directory>src/main/resources</directory>
151 <filtering>false</filtering>
153 <exclude>**/version.txt</exclude>
159 <groupId>io.swagger.codegen.v3</groupId>
160 <artifactId>swagger-codegen-maven-plugin</artifactId>
165 <goal>generate</goal>
168 <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
169 <invokerPackage>org.onap.policy.pap.main.rest</invokerPackage>
170 <modelPackage>org.onap.policy.models.tosca.authorative.concepts</modelPackage>
171 <apiPackage>org.onap.policy.pap.main.rest</apiPackage>
172 <language>spring</language>
173 <generateModels>false</generateModels>
174 <generateSupportingFiles>false</generateSupportingFiles>
176 HealthCheckReport=org.onap.policy.common.endpoints.report.HealthCheckReport,
177 Pdps=org.onap.policy.models.pdp.concepts.Pdps,
178 PdpState=org.onap.policy.models.pdp.enums.PdpState,
179 PdpGroupUpdateResponse=org.onap.policy.models.pap.concepts.PdpGroupUpdateResponse,
180 PdpGroupStateChangeResponse=org.onap.policy.models.pap.concepts.PdpGroupStateChangeResponse,
181 PdpGroupDeleteResponse=org.onap.policy.models.pap.concepts.PdpGroupDeleteResponse,
182 PdpGroupDeployResponse=org.onap.policy.models.pap.concepts.PdpGroupDeployResponse,
183 DeploymentGroups=org.onap.policy.models.pdp.concepts.DeploymentGroups,
184 PdpDeployPolicies=org.onap.policy.models.pap.concepts.PdpDeployPolicies,
185 PdpGroups=org.onap.policy.models.pdp.concepts.PdpGroups,
186 PolicyAudit=org.onap.policy.models.pap.concepts.PolicyAudit,
187 PolicyStatus=org.onap.policy.models.pap.concepts.PolicyStatus
190 <sourceFolder>src/gen/java</sourceFolder>
191 <dateLibrary>java17</dateLibrary>
192 <interfaceOnly>true</interfaceOnly>
193 <useTags>true</useTags>
194 <jakarta>true</jakarta>
201 <groupId>org.springframework.boot</groupId>
202 <artifactId>spring-boot-maven-plugin</artifactId>
203 <version>${version.springboot}</version>
207 <goal>repackage</goal>
209 <phase>package</phase>