blob: 93ee680daf391a210ba8801bc370fa865bbc161a [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
lukegleeson15b93e72021-07-07 15:25:30 +01004 Copyright (C) 2021 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>
puthuparambil.adityaccba6b52021-10-14 13:36:41 +010030 <version>2.1.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
ToineSiebelink73001f62021-09-17 15:07:38 +010036 <dependencies>
37 <dependency>
38 <groupId>${project.groupId}</groupId>
39 <artifactId>cps-ncmp-service</artifactId>
40 <version>${project.version}</version>
41 </dependency>
42 <dependency>
43 <groupId>org.springframework.boot</groupId>
44 <artifactId>spring-boot-starter-web</artifactId>
45 <exclusions>
46 <exclusion>
47 <groupId>org.springframework.boot</groupId>
48 <artifactId>spring-boot-starter-tomcat</artifactId>
49 </exclusion>
50 </exclusions>
51 </dependency>
52 <dependency>
53 <groupId>org.springframework.boot</groupId>
54 <artifactId>spring-boot-starter-validation</artifactId>
55 </dependency>
56 <dependency>
57 <groupId>org.springframework.boot</groupId>
58 <artifactId>spring-boot-starter-jetty</artifactId>
59 </dependency>
60 <dependency>
61 <groupId>io.swagger.core.v3</groupId>
62 <artifactId>swagger-annotations</artifactId>
63 </dependency>
puthuparambil.adityad0007332021-12-08 18:53:39 +000064 <dependency>
65 <groupId>org.modelmapper</groupId>
66 <artifactId>modelmapper</artifactId>
67 </dependency>
ToineSiebelink73001f62021-09-17 15:07:38 +010068 <!-- T E S T D E P E N D E N C I E S -->
69 <dependency>
70 <groupId>org.codehaus.groovy</groupId>
71 <artifactId>groovy</artifactId>
72 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.codehaus.groovy</groupId>
76 <artifactId>groovy-json</artifactId>
77 <scope>test</scope>
78 </dependency>
79 <dependency>
80 <groupId>org.spockframework</groupId>
81 <artifactId>spock-core</artifactId>
82 <scope>test</scope>
83 </dependency>
84 <dependency>
85 <groupId>org.spockframework</groupId>
86 <artifactId>spock-spring</artifactId>
87 <scope>test</scope>
88 </dependency>
89 <dependency>
90 <groupId>cglib</groupId>
91 <artifactId>cglib-nodep</artifactId>
92 <scope>test</scope>
93 </dependency>
94 <dependency>
95 <groupId>org.springframework.boot</groupId>
96 <artifactId>spring-boot-starter-test</artifactId>
97 <scope>test</scope>
98 <exclusions>
99 <exclusion>
100 <groupId>org.junit.vintage</groupId>
101 <artifactId>junit-vintage-engine</artifactId>
102 </exclusion>
103 </exclusions>
104 </dependency>
105 <dependency>
106 <groupId>com.google.code.gson</groupId>
107 <artifactId>gson</artifactId>
108 </dependency>
109 </dependencies>
tragait34a94b92021-03-30 12:02:27 +0100110
ToineSiebelink73001f62021-09-17 15:07:38 +0100111 <build>
112 <plugins>
113 <!-- Swagger code generation. -->
114 <plugin>
115 <groupId>io.swagger.codegen.v3</groupId>
116 <artifactId>swagger-codegen-maven-plugin</artifactId>
117 <executions>
118 <execution>
Renu Kumari139e8222021-10-04 20:59:18 -0400119 <id>ncmp-code-gen</id>
ToineSiebelink73001f62021-09-17 15:07:38 +0100120 <goals>
121 <goal>generate</goal>
122 </goals>
123 <configuration>
124 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
125 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
126 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
127 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
128 <language>spring</language>
129 <generateSupportingFiles>false</generateSupportingFiles>
130 <configOptions>
131 <sourceFolder>src/gen/java</sourceFolder>
132 <dateLibrary>java11</dateLibrary>
133 <interfaceOnly>true</interfaceOnly>
134 <useTags>true</useTags>
135 </configOptions>
136 </configuration>
137 </execution>
Renu Kumari139e8222021-10-04 20:59:18 -0400138 <execution>
139 <id>ncmp-code-gen-inventory</id>
140 <goals>
141 <goal>generate</goal>
142 </goals>
143 <configuration>
144 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.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 <language>spring</language>
149 <generateSupportingFiles>false</generateSupportingFiles>
150 <configOptions>
151 <sourceFolder>src/gen/java</sourceFolder>
152 <dateLibrary>java11</dateLibrary>
153 <interfaceOnly>true</interfaceOnly>
154 <useTags>true</useTags>
155 </configOptions>
156 </configuration>
157 </execution>
158 <execution>
159 <id>ncmp-inventory-openapi-yaml-gen</id>
160 <goals>
161 <goal>generate</goal>
162 </goals>
163 <phase>compile</phase>
164 <configuration>
165 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
166 <language>openapi-yaml</language>
167 <configOptions>
168 <outputFile>openapi-inventory.yaml</outputFile>
169 </configOptions>
170 </configuration>
171 </execution>
ToineSiebelink73001f62021-09-17 15:07:38 +0100172 </executions>
173 </plugin>
174 <plugin>
175 <artifactId>maven-resources-plugin</artifactId>
176 <executions>
177 <execution>
178 <id>copy-resources</id>
179 <phase>compile</phase>
180 <goals>
181 <goal>copy-resources</goal>
182 </goals>
183 <configuration>
184 <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-ncmp</outputDirectory>
185 <resources>
186 <resource>
187 <directory>${project.basedir}/target/generated-sources/swagger/</directory>
188 <includes>
Renu Kumari139e8222021-10-04 20:59:18 -0400189 <include>openapi*.yaml</include>
ToineSiebelink73001f62021-09-17 15:07:38 +0100190 </includes>
191 </resource>
192 </resources>
193 </configuration>
194 </execution>
195 </executions>
196 </plugin>
197 </plugins>
198 </build>
tragait34a94b92021-03-30 12:02:27 +0100199</project>