1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
4 Copyright (C) 2021-2024 Nordix Foundation
5 Modifications Copyright (C) 2021 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"
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">
26 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.cps</groupId>
29 <artifactId>cps-parent</artifactId>
30 <version>3.5.0-SNAPSHOT</version>
31 <relativePath>../cps-parent/pom.xml</relativePath>
34 <artifactId>cps-ncmp-rest</artifactId>
37 <minimum-coverage>0.99</minimum-coverage>
42 <groupId>${project.groupId}</groupId>
43 <artifactId>cps-ncmp-service</artifactId>
44 <version>${project.version}</version>
47 <groupId>org.springframework.boot</groupId>
48 <artifactId>spring-boot-starter-web</artifactId>
51 <groupId>org.springframework.boot</groupId>
52 <artifactId>spring-boot-starter-tomcat</artifactId>
57 <groupId>org.springframework.boot</groupId>
58 <artifactId>spring-boot-starter-validation</artifactId>
61 <groupId>org.springframework.boot</groupId>
62 <artifactId>spring-boot-starter-jetty</artifactId>
65 <groupId>com.google.code.gson</groupId>
66 <artifactId>gson</artifactId>
69 <groupId>io.swagger.core.v3</groupId>
70 <artifactId>swagger-annotations</artifactId>
73 <groupId>io.swagger.core.v3</groupId>
74 <artifactId>swagger-models</artifactId>
77 <groupId>org.mapstruct</groupId>
78 <artifactId>mapstruct</artifactId>
81 <groupId>org.mapstruct</groupId>
82 <artifactId>mapstruct-processor</artifactId>
85 <groupId>org.openapitools</groupId>
86 <artifactId>jackson-databind-nullable</artifactId>
88 <!-- T E S T D E P E N D E N C I E S -->
90 <groupId>org.codehaus.groovy</groupId>
91 <artifactId>groovy</artifactId>
95 <groupId>org.codehaus.groovy</groupId>
96 <artifactId>groovy-json</artifactId>
100 <groupId>org.spockframework</groupId>
101 <artifactId>spock-core</artifactId>
105 <groupId>org.spockframework</groupId>
106 <artifactId>spock-spring</artifactId>
110 <groupId>cglib</groupId>
111 <artifactId>cglib-nodep</artifactId>
115 <groupId>org.springframework.boot</groupId>
116 <artifactId>spring-boot-starter-test</artifactId>
120 <groupId>org.junit.jupiter</groupId>
121 <artifactId>junit-jupiter</artifactId>
128 <!-- Swagger code generation. -->
130 <groupId>org.openapitools</groupId>
131 <artifactId>openapi-generator-maven-plugin</artifactId>
132 <version>6.6.0</version>
135 <id>ncmp-code-gen</id>
137 <goal>generate</goal>
140 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
141 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
142 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
143 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
144 <generatorName>spring</generatorName>
145 <generateSupportingFiles>false</generateSupportingFiles>
146 <generateAliasAsModel>true</generateAliasAsModel>
148 <sourceFolder>src/gen/java</sourceFolder>
149 <dateLibrary>java11</dateLibrary>
150 <interfaceOnly>true</interfaceOnly>
151 <useSpringBoot3>true</useSpringBoot3>
152 <useTags>true</useTags>
153 <openApiNullable>false</openApiNullable>
154 <skipDefaultInterface>true</skipDefaultInterface>
159 <id>ncmp-code-gen-inventory</id>
161 <goal>generate</goal>
164 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
165 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
166 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
167 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
168 <generatorName>spring</generatorName>
169 <generateSupportingFiles>false</generateSupportingFiles>
171 <sourceFolder>src/gen/java</sourceFolder>
172 <dateLibrary>java11</dateLibrary>
173 <interfaceOnly>true</interfaceOnly>
174 <useSpringBoot3>true</useSpringBoot3>
175 <useTags>true</useTags>
176 <openApiNullable>false</openApiNullable>
177 <skipDefaultInterface>true</skipDefaultInterface>
182 <id>ncmp-inventory-openapi-yaml-gen</id>
184 <goal>generate</goal>
186 <phase>compile</phase>
188 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
189 <generatorName>openapi-yaml</generatorName>
191 <outputFile>openapi-inventory.yaml</outputFile>
196 <id>ncmp-openapi-yaml-gen</id>
198 <goal>generate</goal>
200 <phase>compile</phase>
202 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
203 <generatorName>openapi-yaml</generatorName>
205 <outputFile>openapi.yaml</outputFile>
212 <groupId>org.apache.maven.plugins</groupId>
213 <artifactId>maven-resources-plugin</artifactId>
216 <id>copy-resources</id>
217 <phase>compile</phase>
219 <goal>copy-resources</goal>
222 <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-ncmp
226 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
228 <include>openapi*.yaml</include>