Update snapshot and/or references of policy/pap to latest snapshots
[policy/pap.git] / main / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2019, 2023-2024 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
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
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.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22
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>
25     <parent>
26         <groupId>org.onap.policy.pap</groupId>
27         <artifactId>policy-pap</artifactId>
28         <version>3.1.2-SNAPSHOT</version>
29     </parent>
30
31     <artifactId>pap-main</artifactId>
32
33     <name>${project.artifactId}</name>
34     <description>The main module of Policy Administration Backend that handles startup, lifecycle management, and parameters.</description>
35
36     <dependencies>
37         <dependency>
38             <groupId>org.onap.policy.common</groupId>
39             <artifactId>policy-endpoints</artifactId>
40             <version>${policy.common.version}</version>
41         </dependency>
42         <dependency>
43             <groupId>org.onap.policy.models</groupId>
44             <artifactId>policy-models-pap</artifactId>
45             <version>${policy.models.version}</version>
46         </dependency>
47         <dependency>
48             <groupId>org.onap.policy.models</groupId>
49             <artifactId>policy-models-pdp</artifactId>
50             <version>${policy.models.version}</version>
51         </dependency>
52         <dependency>
53             <groupId>org.onap.policy.common</groupId>
54             <artifactId>spring-utils</artifactId>
55             <version>${policy.common.version}</version>
56         </dependency>
57         <dependency>
58             <groupId>org.onap.policy.common</groupId>
59             <artifactId>utils-test</artifactId>
60             <version>${policy.common.version}</version>
61             <scope>test</scope>
62         </dependency>
63         <dependency>
64             <groupId>org.bouncycastle</groupId>
65             <artifactId>bcpkix-fips</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>com.google.guava</groupId>
69             <artifactId>guava</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>org.springframework.boot</groupId>
73             <artifactId>spring-boot-starter-web</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.springframework.boot</groupId>
77             <artifactId>spring-boot-starter-tomcat</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>org.springframework.boot</groupId>
81             <artifactId>spring-boot-starter-data-jpa</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.springframework.boot</groupId>
85             <artifactId>spring-boot-starter-security</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter-aop</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.springframework.boot</groupId>
93             <artifactId>spring-boot-starter-actuator</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>io.micrometer</groupId>
97             <artifactId>micrometer-registry-prometheus</artifactId>
98             <scope>runtime</scope>
99         </dependency>
100         <dependency>
101             <groupId>org.apache.kafka</groupId>
102             <artifactId>kafka-clients</artifactId>
103             <scope>provided</scope>
104         </dependency>
105         <dependency>
106             <groupId>org.springdoc</groupId>
107             <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
108         </dependency>
109         <dependency>
110             <groupId>org.apache.tomcat.embed</groupId>
111             <artifactId>tomcat-embed-core</artifactId>
112         </dependency>
113
114         <dependency>
115             <groupId>org.mockito</groupId>
116             <artifactId>mockito-core</artifactId>
117             <scope>test</scope>
118         </dependency>
119         <dependency>
120             <groupId>com.h2database</groupId>
121             <artifactId>h2</artifactId>
122             <scope>test</scope>
123         </dependency>
124         <dependency>
125             <groupId>org.springframework.security</groupId>
126             <artifactId>spring-security-test</artifactId>
127             <scope>test</scope>
128         </dependency>
129         <dependency>
130             <groupId>org.springframework.boot</groupId>
131             <artifactId>spring-boot-starter-test</artifactId>
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.junit.jupiter</groupId>
136             <artifactId>junit-jupiter-engine</artifactId>
137             <scope>test</scope>
138         </dependency>
139         <dependency>
140             <groupId>org.mockito</groupId>
141             <artifactId>mockito-junit-jupiter</artifactId>
142             <scope>test</scope>
143         </dependency>
144     </dependencies>
145
146     <build>
147         <resources>
148             <!-- Output the version of the pap service -->
149             <resource>
150                 <directory>src/main/resources</directory>
151                 <filtering>true</filtering>
152                 <includes>
153                     <include>**/version.txt</include>
154                 </includes>
155             </resource>
156             <resource>
157                 <directory>src/main/resources</directory>
158                 <filtering>false</filtering>
159                 <excludes>
160                     <exclude>**/version.txt</exclude>
161                 </excludes>
162             </resource>
163         </resources>
164         <plugins>
165             <plugin>
166                 <groupId>io.swagger.codegen.v3</groupId>
167                 <artifactId>swagger-codegen-maven-plugin</artifactId>
168                 <executions>
169                     <execution>
170                         <id>code-gen</id>
171                         <goals>
172                             <goal>generate</goal>
173                         </goals>
174                         <configuration>
175                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
176                             <invokerPackage>org.onap.policy.pap.main.rest</invokerPackage>
177                             <modelPackage>org.onap.policy.models.tosca.authorative.concepts</modelPackage>
178                             <apiPackage>org.onap.policy.pap.main.rest</apiPackage>
179                             <language>spring</language>
180                             <generateModels>false</generateModels>
181                             <generateSupportingFiles>false</generateSupportingFiles>
182                             <importMappings>
183                                 HealthCheckReport=org.onap.policy.common.endpoints.report.HealthCheckReport,
184                                 Pdps=org.onap.policy.models.pdp.concepts.Pdps,
185                                 PdpState=org.onap.policy.models.pdp.enums.PdpState,
186                                 PdpGroupUpdateResponse=org.onap.policy.models.pap.concepts.PdpGroupUpdateResponse,
187                                 PdpGroupStateChangeResponse=org.onap.policy.models.pap.concepts.PdpGroupStateChangeResponse,
188                                 PdpGroupDeleteResponse=org.onap.policy.models.pap.concepts.PdpGroupDeleteResponse,
189                                 PdpGroupDeployResponse=org.onap.policy.models.pap.concepts.PdpGroupDeployResponse,
190                                 DeploymentGroups=org.onap.policy.models.pdp.concepts.DeploymentGroups,
191                                 PdpDeployPolicies=org.onap.policy.models.pap.concepts.PdpDeployPolicies,
192                                 PdpGroups=org.onap.policy.models.pdp.concepts.PdpGroups,
193                                 PolicyAudit=org.onap.policy.models.pap.concepts.PolicyAudit,
194                                 PolicyStatus=org.onap.policy.models.pap.concepts.PolicyStatus
195                             </importMappings>
196                             <configOptions>
197                                 <sourceFolder>src/gen/java</sourceFolder>
198                                 <dateLibrary>java17</dateLibrary>
199                                 <interfaceOnly>true</interfaceOnly>
200                                 <useTags>true</useTags>
201                                 <jakarta>true</jakarta>
202                             </configOptions>
203                         </configuration>
204                     </execution>
205                 </executions>
206             </plugin>
207             <plugin>
208                 <groupId>org.springframework.boot</groupId>
209                 <artifactId>spring-boot-maven-plugin</artifactId>
210                 <version>${version.springboot}</version>
211                 <executions>
212                     <execution>
213                         <goals>
214                             <goal>repackage</goal>
215                         </goals>
216                         <phase>package</phase>
217                     </execution>
218                 </executions>
219             </plugin>
220         </plugins>
221     </build>
222 </project>