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-2022 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>2.8.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.springframework.boot</groupId>
39 <artifactId>spring-boot-starter-web</artifactId>
42 <groupId>org.springframework.boot</groupId>
43 <artifactId>spring-boot-starter-data-jpa</artifactId>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-security</artifactId>
50 <groupId>org.springframework.boot</groupId>
51 <artifactId>spring-boot-starter-aop</artifactId>
54 <groupId>org.springframework.boot</groupId>
55 <artifactId>spring-boot-starter-actuator</artifactId>
58 <groupId>io.micrometer</groupId>
59 <artifactId>micrometer-registry-prometheus</artifactId>
60 <version>${version.io.micrometer}</version>
61 <scope>runtime</scope>
64 <groupId>org.apache.kafka</groupId>
65 <artifactId>kafka-clients</artifactId>
66 <scope>provided</scope>
70 <groupId>org.onap.policy.common</groupId>
71 <artifactId>policy-endpoints</artifactId>
72 <version>${policy.common.version}</version>
75 <groupId>org.onap.policy.models</groupId>
76 <artifactId>policy-models-pap</artifactId>
77 <version>${policy.models.version}</version>
80 <groupId>org.onap.policy.models</groupId>
81 <artifactId>policy-models-pdp</artifactId>
82 <version>${policy.models.version}</version>
85 <groupId>org.onap.policy.common</groupId>
86 <artifactId>spring-utils</artifactId>
87 <version>${policy.common.version}</version>
90 <groupId>org.onap.policy.common</groupId>
91 <artifactId>utils-test</artifactId>
92 <version>${policy.common.version}</version>
96 <groupId>org.mockito</groupId>
97 <artifactId>mockito-core</artifactId>
101 <groupId>org.springframework</groupId>
102 <artifactId>spring-test</artifactId>
106 <groupId>org.springframework.security</groupId>
107 <artifactId>spring-security-test</artifactId>
111 <groupId>com.h2database</groupId>
112 <artifactId>h2</artifactId>
116 <groupId>junit</groupId>
117 <artifactId>junit</artifactId>
121 <groupId>org.junit.vintage</groupId>
122 <artifactId>junit-vintage-engine</artifactId>
126 <groupId>org.springframework.boot</groupId>
127 <artifactId>spring-boot-starter-test</artifactId>
130 <groupId>org.springdoc</groupId>
131 <artifactId>springdoc-openapi-ui</artifactId>
137 <!-- Output the version of the pap service -->
139 <directory>src/main/resources</directory>
140 <filtering>true</filtering>
142 <include>**/version.txt</include>
146 <directory>src/main/resources</directory>
147 <filtering>false</filtering>
149 <exclude>**/version.txt</exclude>
155 <groupId>io.swagger.codegen.v3</groupId>
156 <artifactId>swagger-codegen-maven-plugin</artifactId>
157 <version>3.0.27</version>
162 <goal>generate</goal>
165 <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
166 <invokerPackage>org.onap.policy.pap.main.rest</invokerPackage>
167 <modelPackage>org.onap.policy.models.tosca.authorative.concepts</modelPackage>
168 <apiPackage>org.onap.policy.pap.main.rest</apiPackage>
169 <language>spring</language>
170 <generateModels>false</generateModels>
171 <generateSupportingFiles>false</generateSupportingFiles>
173 HealthCheckReport=org.onap.policy.common.endpoints.report.HealthCheckReport,
174 StatisticsReport=org.onap.policy.pap.main.rest.StatisticsReport,
175 PdpStatistics=org.onap.policy.models.pdp.concepts.PdpStatistics,
176 Pdps=org.onap.policy.models.pdp.concepts.Pdps,
177 PdpState=org.onap.policy.models.pdp.enums.PdpState,
178 PdpGroupUpdateResponse=org.onap.policy.models.pap.concepts.PdpGroupUpdateResponse,
179 PdpGroupStateChangeResponse=org.onap.policy.models.pap.concepts.PdpGroupStateChangeResponse,
180 PdpGroupDeleteResponse=org.onap.policy.models.pap.concepts.PdpGroupDeleteResponse,
181 PdpGroupDeployResponse=org.onap.policy.models.pap.concepts.PdpGroupDeployResponse,
182 DeploymentGroups=org.onap.policy.models.pdp.concepts.DeploymentGroups,
183 PdpDeployPolicies=org.onap.policy.models.pap.concepts.PdpDeployPolicies,
184 PdpGroups=org.onap.policy.models.pdp.concepts.PdpGroups,
185 PolicyAudit=org.onap.policy.models.pap.concepts.PolicyAudit,
186 PolicyStatus=org.onap.policy.models.pap.concepts.PolicyStatus
189 PdpStatistics=org.onap.policy.models.pdp.concepts.PdpStatistics
192 <sourceFolder>src/gen/java</sourceFolder>
193 <dateLibrary>java11</dateLibrary>
194 <interfaceOnly>true</interfaceOnly>
195 <useTags>true</useTags>
202 <groupId>org.springframework.boot</groupId>
203 <artifactId>spring-boot-maven-plugin</artifactId>
207 <goal>repackage</goal>
209 <phase>package</phase>