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.9-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>
112 <groupId>org.junit.vintage</groupId>
113 <artifactId>junit-vintage-engine</artifactId>
118 <groupId>com.google.code.gson</groupId>
119 <artifactId>gson</artifactId>
122 <groupId>org.openapitools</groupId>
123 <artifactId>jackson-databind-nullable</artifactId>
126 <groupId>org.junit.jupiter</groupId>
127 <artifactId>junit-jupiter</artifactId>
133 <!-- Swagger code generation. -->
135 <groupId>org.openapitools</groupId>
136 <artifactId>openapi-generator-maven-plugin</artifactId>
137 <version>6.6.0</version>
140 <id>ncmp-code-gen</id>
142 <goal>generate</goal>
145 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
146 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
147 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
148 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
149 <generatorName>spring</generatorName>
150 <generateSupportingFiles>false</generateSupportingFiles>
151 <generateAliasAsModel>true</generateAliasAsModel>
153 <sourceFolder>src/gen/java</sourceFolder>
154 <dateLibrary>java11</dateLibrary>
155 <interfaceOnly>true</interfaceOnly>
156 <useSpringBoot3>true</useSpringBoot3>
157 <useTags>true</useTags>
158 <openApiNullable>false</openApiNullable>
159 <skipDefaultInterface>true</skipDefaultInterface>
164 <id>ncmp-code-gen-inventory</id>
166 <goal>generate</goal>
169 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
170 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
171 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
172 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
173 <generatorName>spring</generatorName>
174 <generateSupportingFiles>false</generateSupportingFiles>
176 <sourceFolder>src/gen/java</sourceFolder>
177 <dateLibrary>java11</dateLibrary>
178 <interfaceOnly>true</interfaceOnly>
179 <useSpringBoot3>true</useSpringBoot3>
180 <useTags>true</useTags>
181 <openApiNullable>false</openApiNullable>
182 <skipDefaultInterface>true</skipDefaultInterface>
187 <id>ncmp-inventory-openapi-yaml-gen</id>
189 <goal>generate</goal>
191 <phase>compile</phase>
193 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
194 <generatorName>spring</generatorName>
196 <outputFile>openapi-inventory.yaml</outputFile>
197 <useSpringBoot3>true</useSpringBoot3>
202 <id>ncmp-openapi-yaml-gen</id>
204 <goal>generate</goal>
206 <phase>compile</phase>
208 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
209 <generatorName>openapi-yaml</generatorName>
211 <outputFile>openapi.yaml</outputFile>
218 <groupId>org.apache.maven.plugins</groupId>
219 <artifactId>maven-resources-plugin</artifactId>
222 <id>copy-resources</id>
223 <phase>compile</phase>
225 <goal>copy-resources</goal>
228 <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-ncmp
232 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
234 <include>openapi*.yaml</include>