blob: 4e2c48dd6f9259b5724aa138ff50841056d7540f [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
emacleeea7d1b42024-03-24 19:05:34 +00004 Copyright (C) 2021-2024 Nordix Foundation
Renu Kumari4d520012021-08-30 11:50:43 -04005 Modifications Copyright (C) 2021 Bell Canada
tragait34a94b92021-03-30 12:02:27 +01006 ================================================================================
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.
lukegleeson15b93e72021-07-07 15:25:30 +010018
19 SPDX-License-Identifier: Apache-2.0
tragait34a94b92021-03-30 12:02:27 +010020 ============LICENSE_END=========================================================
21-->
lukegleeson15b93e72021-07-07 15:25:30 +010022
tragait34a94b92021-03-30 12:02:27 +010023<project xmlns="http://maven.apache.org/POM/4.0.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
ToineSiebelink4f736db2021-09-20 13:29:09 +010026 <modelVersion>4.0.0</modelVersion>
27 <parent>
28 <groupId>org.onap.cps</groupId>
29 <artifactId>cps-parent</artifactId>
mpriyank08bcac32024-12-02 14:26:03 +000030 <version>3.6.0-SNAPSHOT</version>
ToineSiebelink4f736db2021-09-20 13:29:09 +010031 <relativePath>../cps-parent/pom.xml</relativePath>
32 </parent>
tragait34a94b92021-03-30 12:02:27 +010033
ToineSiebelink4f736db2021-09-20 13:29:09 +010034 <artifactId>cps-ncmp-rest</artifactId>
tragait34a94b92021-03-30 12:02:27 +010035
egernug477bd462023-09-21 17:51:21 +010036 <properties>
37 <minimum-coverage>0.99</minimum-coverage>
sourabh_sourabh1bb36392024-11-13 12:54:17 +000038 <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
egernug477bd462023-09-21 17:51:21 +010039 </properties>
40
ToineSiebelink73001f62021-09-17 15:07:38 +010041 <dependencies>
42 <dependency>
43 <groupId>${project.groupId}</groupId>
44 <artifactId>cps-ncmp-service</artifactId>
45 <version>${project.version}</version>
46 </dependency>
47 <dependency>
48 <groupId>org.springframework.boot</groupId>
49 <artifactId>spring-boot-starter-web</artifactId>
50 <exclusions>
51 <exclusion>
52 <groupId>org.springframework.boot</groupId>
53 <artifactId>spring-boot-starter-tomcat</artifactId>
54 </exclusion>
55 </exclusions>
56 </dependency>
57 <dependency>
58 <groupId>org.springframework.boot</groupId>
59 <artifactId>spring-boot-starter-validation</artifactId>
60 </dependency>
61 <dependency>
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-jetty</artifactId>
64 </dependency>
65 <dependency>
egernug42daf632023-10-03 12:56:29 +010066 <groupId>com.google.code.gson</groupId>
67 <artifactId>gson</artifactId>
68 </dependency>
69 <dependency>
ToineSiebelink73001f62021-09-17 15:07:38 +010070 <groupId>io.swagger.core.v3</groupId>
71 <artifactId>swagger-annotations</artifactId>
72 </dependency>
DylanB95ESTd042fcd2022-02-21 12:57:08 +000073 <dependency>
egernug477bd462023-09-21 17:51:21 +010074 <groupId>io.swagger.core.v3</groupId>
75 <artifactId>swagger-models</artifactId>
76 </dependency>
77 <dependency>
DylanB95ESTd042fcd2022-02-21 12:57:08 +000078 <groupId>org.mapstruct</groupId>
79 <artifactId>mapstruct</artifactId>
80 </dependency>
81 <dependency>
82 <groupId>org.mapstruct</groupId>
83 <artifactId>mapstruct-processor</artifactId>
84 </dependency>
egernug42daf632023-10-03 12:56:29 +010085 <dependency>
86 <groupId>org.openapitools</groupId>
87 <artifactId>jackson-databind-nullable</artifactId>
88 </dependency>
ToineSiebelink73001f62021-09-17 15:07:38 +010089 <!-- T E S T D E P E N D E N C I E S -->
90 <dependency>
91 <groupId>org.codehaus.groovy</groupId>
92 <artifactId>groovy</artifactId>
93 <scope>test</scope>
94 </dependency>
95 <dependency>
96 <groupId>org.codehaus.groovy</groupId>
97 <artifactId>groovy-json</artifactId>
98 <scope>test</scope>
99 </dependency>
100 <dependency>
101 <groupId>org.spockframework</groupId>
102 <artifactId>spock-core</artifactId>
103 <scope>test</scope>
104 </dependency>
105 <dependency>
106 <groupId>org.spockframework</groupId>
107 <artifactId>spock-spring</artifactId>
108 <scope>test</scope>
109 </dependency>
110 <dependency>
111 <groupId>cglib</groupId>
112 <artifactId>cglib-nodep</artifactId>
113 <scope>test</scope>
114 </dependency>
115 <dependency>
116 <groupId>org.springframework.boot</groupId>
117 <artifactId>spring-boot-starter-test</artifactId>
Toine Siebelinkad9b7012023-09-20 09:35:10 +0000118 <scope>test</scope>
ToineSiebelink73001f62021-09-17 15:07:38 +0100119 </dependency>
120 <dependency>
egernug477bd462023-09-21 17:51:21 +0100121 <groupId>org.junit.jupiter</groupId>
122 <artifactId>junit-jupiter</artifactId>
egernug42daf632023-10-03 12:56:29 +0100123 <scope>test</scope>
egernug477bd462023-09-21 17:51:21 +0100124 </dependency>
ToineSiebelink73001f62021-09-17 15:07:38 +0100125 </dependencies>
tragait34a94b92021-03-30 12:02:27 +0100126
ToineSiebelink73001f62021-09-17 15:07:38 +0100127 <build>
128 <plugins>
129 <!-- Swagger code generation. -->
130 <plugin>
egernug9426ae82023-06-21 11:16:02 +0100131 <groupId>org.openapitools</groupId>
132 <artifactId>openapi-generator-maven-plugin</artifactId>
133 <version>6.6.0</version>
ToineSiebelink73001f62021-09-17 15:07:38 +0100134 <executions>
135 <execution>
Renu Kumari139e8222021-10-04 20:59:18 -0400136 <id>ncmp-code-gen</id>
ToineSiebelink73001f62021-09-17 15:07:38 +0100137 <goals>
138 <goal>generate</goal>
139 </goals>
140 <configuration>
141 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
142 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
143 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
144 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
egernug9426ae82023-06-21 11:16:02 +0100145 <generatorName>spring</generatorName>
ToineSiebelink73001f62021-09-17 15:07:38 +0100146 <generateSupportingFiles>false</generateSupportingFiles>
egernug9426ae82023-06-21 11:16:02 +0100147 <generateAliasAsModel>true</generateAliasAsModel>
ToineSiebelink73001f62021-09-17 15:07:38 +0100148 <configOptions>
149 <sourceFolder>src/gen/java</sourceFolder>
150 <dateLibrary>java11</dateLibrary>
151 <interfaceOnly>true</interfaceOnly>
egernug477bd462023-09-21 17:51:21 +0100152 <useSpringBoot3>true</useSpringBoot3>
ToineSiebelink73001f62021-09-17 15:07:38 +0100153 <useTags>true</useTags>
egernug9426ae82023-06-21 11:16:02 +0100154 <openApiNullable>false</openApiNullable>
155 <skipDefaultInterface>true</skipDefaultInterface>
ToineSiebelink73001f62021-09-17 15:07:38 +0100156 </configOptions>
157 </configuration>
158 </execution>
Renu Kumari139e8222021-10-04 20:59:18 -0400159 <execution>
160 <id>ncmp-code-gen-inventory</id>
161 <goals>
162 <goal>generate</goal>
163 </goals>
164 <configuration>
165 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
166 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
167 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
168 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
egernug9426ae82023-06-21 11:16:02 +0100169 <generatorName>spring</generatorName>
Renu Kumari139e8222021-10-04 20:59:18 -0400170 <generateSupportingFiles>false</generateSupportingFiles>
171 <configOptions>
172 <sourceFolder>src/gen/java</sourceFolder>
173 <dateLibrary>java11</dateLibrary>
174 <interfaceOnly>true</interfaceOnly>
egernug477bd462023-09-21 17:51:21 +0100175 <useSpringBoot3>true</useSpringBoot3>
Renu Kumari139e8222021-10-04 20:59:18 -0400176 <useTags>true</useTags>
egernug9426ae82023-06-21 11:16:02 +0100177 <openApiNullable>false</openApiNullable>
178 <skipDefaultInterface>true</skipDefaultInterface>
Renu Kumari139e8222021-10-04 20:59:18 -0400179 </configOptions>
180 </configuration>
181 </execution>
182 <execution>
183 <id>ncmp-inventory-openapi-yaml-gen</id>
184 <goals>
185 <goal>generate</goal>
186 </goals>
187 <phase>compile</phase>
188 <configuration>
189 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
egernugfb09b7c2023-10-12 13:33:08 +0100190 <generatorName>openapi-yaml</generatorName>
Renu Kumari139e8222021-10-04 20:59:18 -0400191 <configOptions>
192 <outputFile>openapi-inventory.yaml</outputFile>
193 </configOptions>
194 </configuration>
195 </execution>
egernug7ae1bcf2023-06-27 09:31:23 +0100196 <execution>
197 <id>ncmp-openapi-yaml-gen</id>
198 <goals>
199 <goal>generate</goal>
200 </goals>
201 <phase>compile</phase>
202 <configuration>
203 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
204 <generatorName>openapi-yaml</generatorName>
205 <configOptions>
206 <outputFile>openapi.yaml</outputFile>
207 </configOptions>
208 </configuration>
209 </execution>
ToineSiebelink73001f62021-09-17 15:07:38 +0100210 </executions>
211 </plugin>
212 <plugin>
egernug7ae1bcf2023-06-27 09:31:23 +0100213 <groupId>org.apache.maven.plugins</groupId>
ToineSiebelink73001f62021-09-17 15:07:38 +0100214 <artifactId>maven-resources-plugin</artifactId>
sourabh_sourabh9eeb8e92024-10-24 14:24:54 +0100215 <version>${maven-resources-plugin.version}</version>
ToineSiebelink73001f62021-09-17 15:07:38 +0100216 <executions>
217 <execution>
218 <id>copy-resources</id>
219 <phase>compile</phase>
220 <goals>
221 <goal>copy-resources</goal>
222 </goals>
223 <configuration>
bmiklosbbaf5012022-08-25 18:28:16 +0200224 <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-ncmp
225 </outputDirectory>
ToineSiebelink73001f62021-09-17 15:07:38 +0100226 <resources>
227 <resource>
egernug7ae1bcf2023-06-27 09:31:23 +0100228 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
ToineSiebelink73001f62021-09-17 15:07:38 +0100229 <includes>
Renu Kumari139e8222021-10-04 20:59:18 -0400230 <include>openapi*.yaml</include>
ToineSiebelink73001f62021-09-17 15:07:38 +0100231 </includes>
232 </resource>
233 </resources>
234 </configuration>
235 </execution>
egernug076b1b12024-10-10 10:11:27 +0100236 <execution>
237 <id>copy-to-docs-folder</id>
238 <phase>compile</phase>
239 <goals>
240 <goal>copy-resources</goal>
241 </goals>
242 <configuration>
243 <outputDirectory>${project.basedir}/../docs/api/swagger/ncmp</outputDirectory>
244 <overwrite>true</overwrite>
245 <resources>
246 <resource>
247 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
248 <includes>
249 <include>openapi*.yaml</include>
250 </includes>
251 </resource>
252 </resources>
253 </configuration>
254 </execution>
ToineSiebelink73001f62021-09-17 15:07:38 +0100255 </executions>
256 </plugin>
257 </plugins>
258 </build>
tragait34a94b92021-03-30 12:02:27 +0100259</project>