1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
4 Copyright (C) 2021-2023 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.3.7-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>io.swagger.core.v3</groupId>
66 <artifactId>swagger-annotations</artifactId>
69 <groupId>io.swagger.core.v3</groupId>
70 <artifactId>swagger-models</artifactId>
73 <groupId>org.mapstruct</groupId>
74 <artifactId>mapstruct</artifactId>
77 <groupId>org.mapstruct</groupId>
78 <artifactId>mapstruct-processor</artifactId>
80 <!-- T E S T D E P E N D E N C I E S -->
82 <groupId>org.codehaus.groovy</groupId>
83 <artifactId>groovy</artifactId>
87 <groupId>org.codehaus.groovy</groupId>
88 <artifactId>groovy-json</artifactId>
92 <groupId>org.spockframework</groupId>
93 <artifactId>spock-core</artifactId>
97 <groupId>org.spockframework</groupId>
98 <artifactId>spock-spring</artifactId>
102 <groupId>cglib</groupId>
103 <artifactId>cglib-nodep</artifactId>
107 <groupId>org.springframework.boot</groupId>
108 <artifactId>spring-boot-starter-test</artifactId>
111 <groupId>org.junit.vintage</groupId>
112 <artifactId>junit-vintage-engine</artifactId>
117 <groupId>com.google.code.gson</groupId>
118 <artifactId>gson</artifactId>
121 <groupId>org.openapitools</groupId>
122 <artifactId>jackson-databind-nullable</artifactId>
125 <groupId>org.junit.jupiter</groupId>
126 <artifactId>junit-jupiter-api</artifactId>
132 <!-- Swagger code generation. -->
134 <groupId>org.openapitools</groupId>
135 <artifactId>openapi-generator-maven-plugin</artifactId>
136 <version>6.6.0</version>
139 <id>ncmp-code-gen</id>
141 <goal>generate</goal>
144 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
145 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
146 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
147 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
148 <generatorName>spring</generatorName>
149 <generateSupportingFiles>false</generateSupportingFiles>
150 <generateAliasAsModel>true</generateAliasAsModel>
152 <sourceFolder>src/gen/java</sourceFolder>
153 <dateLibrary>java11</dateLibrary>
154 <interfaceOnly>true</interfaceOnly>
155 <useSpringBoot3>true</useSpringBoot3>
156 <useTags>true</useTags>
157 <openApiNullable>false</openApiNullable>
158 <skipDefaultInterface>true</skipDefaultInterface>
163 <id>ncmp-code-gen-inventory</id>
165 <goal>generate</goal>
168 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
169 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
170 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
171 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
172 <generatorName>spring</generatorName>
173 <generateSupportingFiles>false</generateSupportingFiles>
175 <sourceFolder>src/gen/java</sourceFolder>
176 <dateLibrary>java11</dateLibrary>
177 <interfaceOnly>true</interfaceOnly>
178 <useSpringBoot3>true</useSpringBoot3>
179 <useTags>true</useTags>
180 <openApiNullable>false</openApiNullable>
181 <skipDefaultInterface>true</skipDefaultInterface>
186 <id>ncmp-inventory-openapi-yaml-gen</id>
188 <goal>generate</goal>
190 <phase>compile</phase>
192 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
193 <generatorName>spring</generatorName>
195 <outputFile>openapi-inventory.yaml</outputFile>
196 <useSpringBoot3>true</useSpringBoot3>
201 <id>ncmp-openapi-yaml-gen</id>
203 <goal>generate</goal>
205 <phase>compile</phase>
207 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
208 <generatorName>openapi-yaml</generatorName>
210 <outputFile>openapi.yaml</outputFile>
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-resources-plugin</artifactId>
221 <id>copy-resources</id>
222 <phase>compile</phase>
224 <goal>copy-resources</goal>
227 <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-ncmp
231 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
233 <include>openapi*.yaml</include>