tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
lukegleeson | 7e243c9 | 2023-04-20 15:32:12 +0100 | [diff] [blame] | 4 | Copyright (C) 2021-2023 Nordix Foundation |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 5 | Modifications Copyright (C) 2021 Bell Canada |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 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 |
| 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. |
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 18 | |
| 19 | SPDX-License-Identifier: Apache-2.0 |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 20 | ============LICENSE_END========================================================= |
| 21 | --> |
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 22 | |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 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"> |
ToineSiebelink | 4f736db | 2021-09-20 13:29:09 +0100 | [diff] [blame] | 26 | <modelVersion>4.0.0</modelVersion> |
| 27 | <parent> |
| 28 | <groupId>org.onap.cps</groupId> |
| 29 | <artifactId>cps-parent</artifactId> |
danielhanrahan | 56384d1 | 2023-09-20 17:10:40 +0100 | [diff] [blame] | 30 | <version>3.3.8-SNAPSHOT</version> |
ToineSiebelink | 4f736db | 2021-09-20 13:29:09 +0100 | [diff] [blame] | 31 | <relativePath>../cps-parent/pom.xml</relativePath> |
| 32 | </parent> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 33 | |
ToineSiebelink | 4f736db | 2021-09-20 13:29:09 +0100 | [diff] [blame] | 34 | <artifactId>cps-ncmp-rest</artifactId> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 35 | |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 36 | <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> |
DylanB95EST | d042fcd | 2022-02-21 12:57:08 +0000 | [diff] [blame] | 64 | <dependency> |
| 65 | <groupId>org.mapstruct</groupId> |
| 66 | <artifactId>mapstruct</artifactId> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>org.mapstruct</groupId> |
| 70 | <artifactId>mapstruct-processor</artifactId> |
| 71 | </dependency> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 72 | <!-- T E S T D E P E N D E N C I E S --> |
| 73 | <dependency> |
| 74 | <groupId>org.codehaus.groovy</groupId> |
| 75 | <artifactId>groovy</artifactId> |
| 76 | <scope>test</scope> |
| 77 | </dependency> |
| 78 | <dependency> |
| 79 | <groupId>org.codehaus.groovy</groupId> |
| 80 | <artifactId>groovy-json</artifactId> |
| 81 | <scope>test</scope> |
| 82 | </dependency> |
| 83 | <dependency> |
| 84 | <groupId>org.spockframework</groupId> |
| 85 | <artifactId>spock-core</artifactId> |
| 86 | <scope>test</scope> |
| 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>org.spockframework</groupId> |
| 90 | <artifactId>spock-spring</artifactId> |
| 91 | <scope>test</scope> |
| 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>cglib</groupId> |
| 95 | <artifactId>cglib-nodep</artifactId> |
| 96 | <scope>test</scope> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>org.springframework.boot</groupId> |
| 100 | <artifactId>spring-boot-starter-test</artifactId> |
Toine Siebelink | ad9b701 | 2023-09-20 09:35:10 +0000 | [diff] [blame] | 101 | <scope>test</scope> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 102 | <exclusions> |
| 103 | <exclusion> |
| 104 | <groupId>org.junit.vintage</groupId> |
| 105 | <artifactId>junit-vintage-engine</artifactId> |
| 106 | </exclusion> |
| 107 | </exclusions> |
| 108 | </dependency> |
| 109 | <dependency> |
| 110 | <groupId>com.google.code.gson</groupId> |
| 111 | <artifactId>gson</artifactId> |
| 112 | </dependency> |
| 113 | </dependencies> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 114 | |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 115 | <build> |
| 116 | <plugins> |
| 117 | <!-- Swagger code generation. --> |
| 118 | <plugin> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 119 | <groupId>org.openapitools</groupId> |
| 120 | <artifactId>openapi-generator-maven-plugin</artifactId> |
| 121 | <version>6.6.0</version> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 122 | <executions> |
| 123 | <execution> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 124 | <id>ncmp-code-gen</id> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 125 | <goals> |
| 126 | <goal>generate</goal> |
| 127 | </goals> |
| 128 | <configuration> |
| 129 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
| 130 | <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage> |
| 131 | <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage> |
| 132 | <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 133 | <generatorName>spring</generatorName> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 134 | <generateSupportingFiles>false</generateSupportingFiles> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 135 | <generateAliasAsModel>true</generateAliasAsModel> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 136 | <configOptions> |
| 137 | <sourceFolder>src/gen/java</sourceFolder> |
| 138 | <dateLibrary>java11</dateLibrary> |
| 139 | <interfaceOnly>true</interfaceOnly> |
| 140 | <useTags>true</useTags> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 141 | <openApiNullable>false</openApiNullable> |
| 142 | <skipDefaultInterface>true</skipDefaultInterface> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 143 | </configOptions> |
| 144 | </configuration> |
| 145 | </execution> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 146 | <execution> |
| 147 | <id>ncmp-code-gen-inventory</id> |
| 148 | <goals> |
| 149 | <goal>generate</goal> |
| 150 | </goals> |
| 151 | <configuration> |
| 152 | <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec> |
| 153 | <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage> |
| 154 | <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage> |
| 155 | <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 156 | <generatorName>spring</generatorName> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 157 | <generateSupportingFiles>false</generateSupportingFiles> |
| 158 | <configOptions> |
| 159 | <sourceFolder>src/gen/java</sourceFolder> |
| 160 | <dateLibrary>java11</dateLibrary> |
| 161 | <interfaceOnly>true</interfaceOnly> |
| 162 | <useTags>true</useTags> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 163 | <openApiNullable>false</openApiNullable> |
| 164 | <skipDefaultInterface>true</skipDefaultInterface> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 165 | </configOptions> |
| 166 | </configuration> |
| 167 | </execution> |
| 168 | <execution> |
| 169 | <id>ncmp-inventory-openapi-yaml-gen</id> |
| 170 | <goals> |
| 171 | <goal>generate</goal> |
| 172 | </goals> |
| 173 | <phase>compile</phase> |
| 174 | <configuration> |
| 175 | <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec> |
Toine Siebelink | ad9b701 | 2023-09-20 09:35:10 +0000 | [diff] [blame] | 176 | <generatorName>openapi-yaml</generatorName> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 177 | <configOptions> |
| 178 | <outputFile>openapi-inventory.yaml</outputFile> |
| 179 | </configOptions> |
| 180 | </configuration> |
| 181 | </execution> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 182 | <execution> |
| 183 | <id>ncmp-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.yml</inputSpec> |
| 190 | <generatorName>openapi-yaml</generatorName> |
| 191 | <configOptions> |
| 192 | <outputFile>openapi.yaml</outputFile> |
| 193 | </configOptions> |
| 194 | </configuration> |
| 195 | </execution> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 196 | </executions> |
| 197 | </plugin> |
| 198 | <plugin> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 199 | <groupId>org.apache.maven.plugins</groupId> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 200 | <artifactId>maven-resources-plugin</artifactId> |
| 201 | <executions> |
| 202 | <execution> |
| 203 | <id>copy-resources</id> |
| 204 | <phase>compile</phase> |
| 205 | <goals> |
| 206 | <goal>copy-resources</goal> |
| 207 | </goals> |
| 208 | <configuration> |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 209 | <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-ncmp |
| 210 | </outputDirectory> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 211 | <resources> |
| 212 | <resource> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 213 | <directory>${project.basedir}/target/generated-sources/openapi/</directory> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 214 | <includes> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 215 | <include>openapi*.yaml</include> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 216 | </includes> |
| 217 | </resource> |
| 218 | </resources> |
| 219 | </configuration> |
| 220 | </execution> |
| 221 | </executions> |
| 222 | </plugin> |
| 223 | </plugins> |
| 224 | </build> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 225 | </project> |