elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ ============LICENSE_START======================================================= |
| 4 | ~ ONAP : ccsdk oran |
| 5 | ~ ================================================================================ |
PatrikBuhr | 1c317eb | 2023-02-23 12:39:31 +0100 | [diff] [blame] | 6 | ~ Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 7 | ~ ================================================================================ |
| 8 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | ~ you may not use this file except in compliance with the License. |
| 10 | ~ You may obtain a copy of the License at |
| 11 | ~ |
| 12 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | ~ |
| 14 | ~ Unless required by applicable law or agreed to in writing, software |
| 15 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | ~ See the License for the specific language governing permissions and |
| 18 | ~ limitations under the License. |
| 19 | ~ ============LICENSE_END======================================================= |
| 20 | ~ |
| 21 | --> |
Dan Timoney | 42477eb | 2023-08-10 17:05:46 -0400 | [diff] [blame] | 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 23 | <modelVersion>4.0.0</modelVersion> |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 24 | <parent> |
| 25 | <groupId>org.onap.ccsdk.parent</groupId> |
JohnKeeney | 7ff7a43 | 2023-08-28 16:51:05 +0100 | [diff] [blame] | 26 | <artifactId>spring-boot-31-starter-parent</artifactId> |
Dan Timoney | 8bb90c0 | 2023-11-08 10:17:19 -0500 | [diff] [blame] | 27 | <version>2.6.1</version> |
Dan Timoney | 42477eb | 2023-08-10 17:05:46 -0400 | [diff] [blame] | 28 | <relativePath/> |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 29 | </parent> |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 30 | <groupId>org.onap.ccsdk.oran</groupId> |
| 31 | <artifactId>a1-policy-management-service</artifactId> |
Dan Timoney | 2eca548 | 2023-11-10 10:07:15 -0500 | [diff] [blame] | 32 | <version>1.7.0-SNAPSHOT</version> |
Lathish | a682c32 | 2020-07-30 15:52:12 +0100 | [diff] [blame] | 33 | <name>ccsdk-oran :: ${project.artifactId}</name> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 34 | <properties> |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 35 | <java.version.source>17</java.version.source> |
| 36 | <java.version.target>17</java.version.target> |
PatrikBuhr | aee1110 | 2023-01-16 15:27:10 +0100 | [diff] [blame] | 37 | <gson.version>2.10.1</gson.version> |
JohnKeeney | 3e1cb15 | 2023-11-08 15:59:54 +0000 | [diff] [blame] | 38 | <json.version>20231013</json.version> |
PatrikBuhr | 44499d0 | 2023-04-04 10:06:22 +0200 | [diff] [blame] | 39 | <formatter-maven-plugin.version>2.22.0</formatter-maven-plugin.version> |
| 40 | <spotless-maven-plugin.version>2.35.0</spotless-maven-plugin.version> |
JohnKeeney | 8f49f44 | 2023-11-17 17:59:33 +0000 | [diff] [blame] | 41 | <commons-io.version>2.14.0</commons-io.version> |
JohnKeeney | 7ff7a43 | 2023-08-28 16:51:05 +0100 | [diff] [blame] | 42 | <guava.version>32.0.1-jre</guava.version> |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 43 | <springdoc.version>2.0.2</springdoc.version> |
elinuxhenrik | c4d1f8a | 2020-08-24 13:30:10 +0200 | [diff] [blame] | 44 | <docker-maven-plugin>0.30.0</docker-maven-plugin> |
JohnKeeney | 2d985bd | 2023-03-31 15:27:16 +0100 | [diff] [blame] | 45 | <surefire-maven-plugin.version>3.0.0-M8</surefire-maven-plugin.version> |
halil.cakal | 40ce829 | 2023-02-02 12:25:13 +0000 | [diff] [blame] | 46 | <surefire-report-plugin.version>3.0.0-M8</surefire-report-plugin.version> |
PatrikBuhr | 3ac6f0f | 2023-02-01 12:14:34 +0100 | [diff] [blame] | 47 | <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version> |
Dan Timoney | efdb5b0 | 2020-11-02 11:00:33 -0500 | [diff] [blame] | 48 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 49 | <software.amazon.awssdk.version>2.20.12</software.amazon.awssdk.version> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 50 | <allowskiptests>false</allowskiptests> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 51 | </properties> |
| 52 | <dependencies> |
| 53 | <dependency> |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 54 | <groupId>javax.validation</groupId> |
| 55 | <artifactId>validation-api</artifactId> |
| 56 | <version>2.0.1.Final</version> |
| 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>javax.annotation</groupId> |
| 60 | <artifactId>javax.annotation-api</artifactId> |
| 61 | <version>1.3.2</version> |
| 62 | </dependency> |
| 63 | <dependency> |
| 64 | <groupId>io.swagger.core.v3</groupId> |
| 65 | <artifactId>swagger-annotations</artifactId> |
| 66 | <version>2.2.15</version> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>org.openapitools</groupId> |
| 70 | <artifactId>jackson-databind-nullable</artifactId> |
| 71 | <version>0.2.4</version> |
| 72 | </dependency> |
| 73 | <dependency> |
PatrikBuhr | 6ef6b6f | 2023-04-25 15:11:04 +0200 | [diff] [blame] | 74 | <!-- Temporary until version 2 is included by the parent spring-boot-starter-parent --> |
| 75 | <groupId>org.yaml</groupId> |
| 76 | <artifactId>snakeyaml</artifactId> |
| 77 | <version>2.0</version> |
| 78 | </dependency> |
| 79 | <dependency> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 80 | <groupId>org.springframework.boot</groupId> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 81 | <artifactId>spring-boot</artifactId> |
| 82 | </dependency> |
| 83 | <dependency> |
| 84 | <groupId>org.springframework</groupId> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 85 | <artifactId>spring-context</artifactId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 86 | </dependency> |
| 87 | <dependency> |
| 88 | <groupId>org.springframework.boot</groupId> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 89 | <artifactId>spring-boot-autoconfigure</artifactId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 90 | </dependency> |
| 91 | <dependency> |
PatrikBuhr | 0f8b205 | 2021-12-20 13:40:14 +0100 | [diff] [blame] | 92 | <groupId>org.springframework.boot</groupId> |
| 93 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 94 | </dependency> |
| 95 | <dependency> |
JohnKeeney | 62abcd8 | 2023-03-01 19:04:58 +0000 | [diff] [blame] | 96 | <!-- May be possible to remove this later when ccsdk parent bom stabilizes --> |
| 97 | <groupId>javax.servlet</groupId> |
| 98 | <artifactId>javax.servlet-api</artifactId> |
| 99 | <version>3.1.0</version> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 100 | </dependency> |
| 101 | <dependency> |
| 102 | <groupId>org.aspectj</groupId> |
| 103 | <artifactId>aspectjweaver</artifactId> |
| 104 | </dependency> |
| 105 | <dependency> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 106 | <groupId>org.apache.tomcat.embed</groupId> |
| 107 | <artifactId>tomcat-embed-core</artifactId> |
| 108 | </dependency> |
| 109 | <dependency> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 110 | <groupId>com.google.guava</groupId> |
| 111 | <artifactId>guava</artifactId> |
JohnKeeney | c9778a7 | 2022-11-01 18:49:15 +0000 | [diff] [blame] | 112 | <version>${guava.version}</version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 113 | </dependency> |
| 114 | <dependency> |
PatrikBuhr | 3f3a4d7 | 2022-05-30 14:22:46 +0200 | [diff] [blame] | 115 | <groupId>com.google.code.gson</groupId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 116 | <artifactId>gson</artifactId> |
PatrikBuhr | 3f3a4d7 | 2022-05-30 14:22:46 +0200 | [diff] [blame] | 117 | <version>${gson.version}</version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 118 | </dependency> |
| 119 | <dependency> |
| 120 | <groupId>org.json</groupId> |
| 121 | <artifactId>json</artifactId> |
| 122 | <version>${json.version}</version> |
| 123 | </dependency> |
| 124 | <dependency> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 125 | <groupId>org.projectlombok</groupId> |
| 126 | <artifactId>lombok</artifactId> |
| 127 | <scope>provided</scope> |
| 128 | </dependency> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 129 | <!-- Actuator dependencies --> |
| 130 | <dependency> |
| 131 | <groupId>org.springframework.boot</groupId> |
| 132 | <artifactId>spring-boot-starter-actuator</artifactId> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 133 | <scope>runtime</scope> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 134 | </dependency> |
halil.cakal | 8eadcb6 | 2022-09-29 09:47:09 +0100 | [diff] [blame] | 135 | <dependency> |
| 136 | <groupId>io.micrometer</groupId> |
| 137 | <artifactId>micrometer-registry-prometheus</artifactId> |
| 138 | </dependency> |
| 139 | <dependency> |
| 140 | <groupId>org.springframework.boot</groupId> |
| 141 | <artifactId>spring-boot-starter-aop</artifactId> |
| 142 | </dependency> |
PatrikBuhr | e3693cf | 2022-10-14 11:38:22 +0200 | [diff] [blame] | 143 | <dependency> |
| 144 | <groupId>software.amazon.awssdk</groupId> |
| 145 | <artifactId>s3</artifactId> |
| 146 | <version>${software.amazon.awssdk.version}</version> |
| 147 | </dependency> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 148 | <!-- For development help --> |
| 149 | <dependency> |
| 150 | <groupId>org.springframework.boot</groupId> |
| 151 | <artifactId>spring-boot-devtools</artifactId> |
| 152 | <optional>true</optional> |
| 153 | <scope>runtime</scope> |
| 154 | </dependency> |
| 155 | <dependency> |
| 156 | <groupId>org.springframework.boot</groupId> |
| 157 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 158 | <optional>true</optional> |
| 159 | <scope>runtime</scope> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 160 | </dependency> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 161 | <dependency> |
| 162 | <groupId>org.springframework.boot</groupId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 163 | <artifactId>spring-boot-starter-test</artifactId> |
| 164 | <scope>test</scope> |
| 165 | </dependency> |
| 166 | <dependency> |
| 167 | <groupId>org.awaitility</groupId> |
| 168 | <artifactId>awaitility</artifactId> |
| 169 | <scope>test</scope> |
| 170 | </dependency> |
| 171 | <dependency> |
| 172 | <groupId>io.projectreactor</groupId> |
| 173 | <artifactId>reactor-test</artifactId> |
| 174 | <scope>test</scope> |
| 175 | </dependency> |
| 176 | <dependency> |
| 177 | <groupId>org.junit.jupiter</groupId> |
| 178 | <artifactId>junit-jupiter-engine</artifactId> |
| 179 | <scope>test</scope> |
| 180 | </dependency> |
| 181 | <dependency> |
| 182 | <groupId>org.mockito</groupId> |
| 183 | <artifactId>mockito-junit-jupiter</artifactId> |
| 184 | <scope>test</scope> |
| 185 | </dependency> |
| 186 | <dependency> |
| 187 | <groupId>org.mockito</groupId> |
| 188 | <artifactId>mockito-core</artifactId> |
| 189 | <scope>test</scope> |
| 190 | </dependency> |
| 191 | <dependency> |
| 192 | <groupId>com.squareup.okhttp3</groupId> |
| 193 | <artifactId>mockwebserver</artifactId> |
| 194 | <scope>test</scope> |
| 195 | </dependency> |
elinuxhenrik | 50b658d | 2020-11-11 14:11:37 +0100 | [diff] [blame] | 196 | <dependency> |
| 197 | <groupId>commons-io</groupId> |
| 198 | <artifactId>commons-io</artifactId> |
| 199 | <version>${commons-io.version}</version> |
| 200 | <scope>test</scope> |
| 201 | </dependency> |
PatrikBuhr | d279ef7 | 2021-09-21 14:47:59 +0200 | [diff] [blame] | 202 | <dependency> |
| 203 | <groupId>com.github.erosb</groupId> |
| 204 | <artifactId>everit-json-schema</artifactId> |
PatrikBuhr | 62c2596 | 2022-03-25 15:39:06 +0100 | [diff] [blame] | 205 | <version>1.14.0</version> |
PatrikBuhr | d279ef7 | 2021-09-21 14:47:59 +0200 | [diff] [blame] | 206 | </dependency> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 207 | </dependencies> |
| 208 | <build> |
| 209 | <plugins> |
| 210 | <plugin> |
Dan Timoney | bf5e4cd | 2022-12-01 17:02:22 -0500 | [diff] [blame] | 211 | <groupId>org.codehaus.gmaven</groupId> |
| 212 | <artifactId>groovy-maven-plugin</artifactId> |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 213 | <version>2.1.1</version> |
Dan Timoney | efdb5b0 | 2020-11-02 11:00:33 -0500 | [diff] [blame] | 214 | <executions> |
| 215 | <execution> |
| 216 | <phase>validate</phase> |
| 217 | <goals> |
| 218 | <goal>execute</goal> |
| 219 | </goals> |
| 220 | <configuration> |
| 221 | <source>${basedir}/TagVersion.groovy</source> |
| 222 | </configuration> |
| 223 | </execution> |
| 224 | </executions> |
| 225 | </plugin> |
| 226 | <plugin> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 227 | <groupId>org.springframework.boot</groupId> |
| 228 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 229 | </plugin> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 230 | <plugin> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 231 | <groupId>net.revelc.code.formatter</groupId> |
| 232 | <artifactId>formatter-maven-plugin</artifactId> |
| 233 | <version>${formatter-maven-plugin.version}</version> |
| 234 | <configuration> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 235 | <lineEnding>LF</lineEnding> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 236 | <configFile>${project.basedir}/eclipse-formatter.xml</configFile> |
| 237 | </configuration> |
| 238 | <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format |
| 239 | spotless:apply process-sources --> |
| 240 | </plugin> |
| 241 | <plugin> |
| 242 | <groupId>com.diffplug.spotless</groupId> |
| 243 | <artifactId>spotless-maven-plugin</artifactId> |
| 244 | <version>${spotless-maven-plugin.version}</version> |
| 245 | <configuration> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 246 | <lineEndings>UNIX</lineEndings> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 247 | <java> |
Dan Timoney | 42477eb | 2023-08-10 17:05:46 -0400 | [diff] [blame] | 248 | <removeUnusedImports/> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 249 | <importOrder> |
PatrikBuhr | 44499d0 | 2023-04-04 10:06:22 +0200 | [diff] [blame] | 250 | <order>com,io,java,lombok,javax,org,reactor</order> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 251 | </importOrder> |
| 252 | </java> |
| 253 | </configuration> |
| 254 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use |
| 255 | mvn spotless:apply to rewrite source files use mvn spotless:check to validate |
| 256 | source files --> |
| 257 | </plugin> |
| 258 | <plugin> |
| 259 | <groupId>org.apache.maven.plugins</groupId> |
| 260 | <artifactId>maven-surefire-plugin</artifactId> |
elinuxhenrik | 9c3a6bd | 2020-08-26 14:04:17 +0200 | [diff] [blame] | 261 | <version>${surefire-maven-plugin.version}</version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 262 | <configuration> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 263 | <skipTests>${allowskiptests}</skipTests> |
Dan Timoney | 42477eb | 2023-08-10 17:05:46 -0400 | [diff] [blame] | 264 | <statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter"> |
halil.cakal | 40ce829 | 2023-02-02 12:25:13 +0000 | [diff] [blame] | 265 | <usePhrasedFileName>false</usePhrasedFileName> |
| 266 | <usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName> |
| 267 | <usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName> |
| 268 | <usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName> |
| 269 | </statelessTestsetReporter> |
Dan Timoney | 42477eb | 2023-08-10 17:05:46 -0400 | [diff] [blame] | 270 | <consoleOutputReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5ConsoleOutputReporter"> |
halil.cakal | 40ce829 | 2023-02-02 12:25:13 +0000 | [diff] [blame] | 271 | <usePhrasedFileName>false</usePhrasedFileName> |
| 272 | </consoleOutputReporter> |
Dan Timoney | 42477eb | 2023-08-10 17:05:46 -0400 | [diff] [blame] | 273 | <statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoReporter"> |
halil.cakal | 40ce829 | 2023-02-02 12:25:13 +0000 | [diff] [blame] | 274 | <usePhrasedFileName>false</usePhrasedFileName> |
| 275 | <usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning> |
| 276 | <usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary> |
| 277 | </statelessTestsetInfoReporter> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 278 | </configuration> |
| 279 | </plugin> |
| 280 | <plugin> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 281 | <groupId>org.codehaus.mojo</groupId> |
| 282 | <artifactId>build-helper-maven-plugin</artifactId> |
| 283 | <executions> |
| 284 | <execution> |
| 285 | <id>add-source</id> |
| 286 | <phase>generate-sources</phase> |
| 287 | <goals> |
| 288 | <goal>add-source</goal> |
| 289 | </goals> |
| 290 | <configuration> |
| 291 | <sources> |
| 292 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 293 | </sources> |
| 294 | </configuration> |
| 295 | </execution> |
| 296 | </executions> |
| 297 | </plugin> |
| 298 | <plugin> |
| 299 | <groupId>org.jacoco</groupId> |
| 300 | <artifactId>jacoco-maven-plugin</artifactId> |
| 301 | <version>${jacoco-maven-plugin.version}</version> |
| 302 | <executions> |
| 303 | <execution> |
| 304 | <id>default-prepare-agent</id> |
| 305 | <goals> |
| 306 | <goal>prepare-agent</goal> |
| 307 | </goals> |
| 308 | </execution> |
| 309 | <execution> |
| 310 | <id>default-report</id> |
| 311 | <phase>prepare-package</phase> |
| 312 | <goals> |
| 313 | <goal>report</goal> |
| 314 | </goals> |
| 315 | </execution> |
| 316 | </executions> |
| 317 | </plugin> |
| 318 | <plugin> |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 319 | <groupId>io.swagger.codegen.v3</groupId> |
| 320 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
| 321 | <version>3.0.46</version> |
| 322 | <executions> |
| 323 | <execution> |
| 324 | <id>generate-openapi-json</id> |
| 325 | <phase>prepare-package</phase> |
| 326 | <goals> |
| 327 | <goal>generate</goal> |
| 328 | </goals> |
| 329 | <configuration> |
| 330 | <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec> |
| 331 | <language>openapi</language> |
| 332 | <output>${project.basedir}/api</output> |
| 333 | <configOptions> |
| 334 | <outputFile>pms-api.json</outputFile> |
| 335 | </configOptions> |
| 336 | </configuration> |
| 337 | </execution> |
| 338 | </executions> |
| 339 | </plugin> |
| 340 | <plugin> |
halil.cakal | b4ed333 | 2023-01-20 12:14:08 +0000 | [diff] [blame] | 341 | <groupId>org.openapitools</groupId> |
| 342 | <artifactId>openapi-generator-maven-plugin</artifactId> |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 343 | <version>6.6.0</version> |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 344 | <executions> |
| 345 | <execution> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 346 | <id>generate-openapi-html</id> |
| 347 | <phase>prepare-package</phase> |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 348 | <goals> |
| 349 | <goal>generate</goal> |
| 350 | </goals> |
| 351 | <configuration> |
| 352 | <inputSpec>${project.basedir}/api/pms-api.json</inputSpec> |
halil.cakal | b4ed333 | 2023-01-20 12:14:08 +0000 | [diff] [blame] | 353 | <generatorName>html2</generatorName> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 354 | <output>${project.basedir}/api/pms-api</output> |
halil.cakal | b4ed333 | 2023-01-20 12:14:08 +0000 | [diff] [blame] | 355 | <skipOperationExample>false</skipOperationExample> |
| 356 | <strictSpec>false</strictSpec> |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 357 | <configOptions> |
PatrikBuhr | 44499d0 | 2023-04-04 10:06:22 +0200 | [diff] [blame] | 358 | <appDescription>The O-RAN Non-RT RIC Policy Management Service |
| 359 | provides a REST API for managing O-RAN A1 Policies.</appDescription> |
halil.cakal | b4ed333 | 2023-01-20 12:14:08 +0000 | [diff] [blame] | 360 | <appName>ONAP CCSDK A1 Policy Management Service</appName> |
| 361 | <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl> |
PatrikBuhr | 44499d0 | 2023-04-04 10:06:22 +0200 | [diff] [blame] | 362 | <licenseInfo>Copyright (C) 2020-2023 Nordix Foundation. Licensed |
| 363 | under the Apache License.</licenseInfo> |
halil.cakal | b4ed333 | 2023-01-20 12:14:08 +0000 | [diff] [blame] | 364 | <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 365 | </configOptions> |
| 366 | </configuration> |
| 367 | </execution> |
| 368 | <execution> |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 369 | <id>generate-policy-api</id> |
| 370 | <phase>generate-sources </phase> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 371 | <goals> |
| 372 | <goal>generate</goal> |
| 373 | </goals> |
| 374 | <configuration> |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 375 | <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec> |
| 376 | <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v2</invokerPackage> |
| 377 | <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v2</apiPackage> |
| 378 | <modelPackage>${project.groupId}.a1policymanagementservice.models.v2</modelPackage> |
| 379 | <generateApiTests>false</generateApiTests> |
| 380 | <generateModelTests>false</generateModelTests> |
| 381 | <generatorName>spring</generatorName> |
| 382 | <generateSupportingFiles>false</generateSupportingFiles> |
| 383 | <skipValidateSpec>false</skipValidateSpec> |
| 384 | <library>spring-boot</library> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 385 | <configOptions> |
raviteja.karumuri | a4687d9 | 2023-09-14 12:38:49 +0100 | [diff] [blame] | 386 | <sourceFolder>src/gen/java</sourceFolder> |
| 387 | <interfaceOnly>true</interfaceOnly> |
| 388 | <useTags>true</useTags> |
| 389 | <reactive>true</reactive> |
| 390 | <dateLibrary>java8</dateLibrary> |
| 391 | <java8>true</java8> |
| 392 | <unhandledException>true</unhandledException> |
| 393 | <openApiNullable>false</openApiNullable> |
| 394 | <skipDefaultInterface>true</skipDefaultInterface> |
elinuxhenrik | f28594d | 2020-12-07 14:54:19 +0100 | [diff] [blame] | 395 | </configOptions> |
| 396 | </configuration> |
| 397 | </execution> |
| 398 | </executions> |
| 399 | </plugin> |
| 400 | <plugin> |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 401 | <artifactId>maven-resources-plugin</artifactId> |
| 402 | <executions> |
| 403 | <execution> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 404 | <id>copy-resource-openapi</id> |
| 405 | <phase>package</phase> |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 406 | <goals> |
| 407 | <goal>copy-resources</goal> |
| 408 | </goals> |
| 409 | <configuration> |
| 410 | <outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 411 | <verbose>true</verbose> |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 412 | <resources> |
| 413 | <resource> |
| 414 | <directory>${project.basedir}/api</directory> |
| 415 | <includes> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 416 | <include>pms-api.json</include> |
| 417 | <include>pms-api.yaml</include> |
| 418 | </includes> |
| 419 | </resource> |
| 420 | </resources> |
| 421 | </configuration> |
| 422 | </execution> |
| 423 | <execution> |
| 424 | <id>copy-resource-openapi-html</id> |
| 425 | <phase>package</phase> |
| 426 | <goals> |
| 427 | <goal>copy-resources</goal> |
| 428 | </goals> |
| 429 | <configuration> |
| 430 | <verbose>true</verbose> |
PatrikBuhr | 44499d0 | 2023-04-04 10:06:22 +0200 | [diff] [blame] | 431 | <outputDirectory> |
| 432 | ${project.basedir}/../docs/offeredapis/openapitoolgen/offeredapis/pms-api</outputDirectory> |
JohnKeeney | e251d0c | 2023-02-20 18:00:44 +0000 | [diff] [blame] | 433 | <resources> |
| 434 | <resource> |
| 435 | <directory>${project.basedir}/api/pms-api</directory> |
| 436 | <includes> |
halil.cakal | b4ed333 | 2023-01-20 12:14:08 +0000 | [diff] [blame] | 437 | <include>index.html</include> |
PatrikBuhr | 1122b01 | 2021-01-20 12:21:52 +0100 | [diff] [blame] | 438 | </includes> |
| 439 | </resource> |
| 440 | </resources> |
| 441 | </configuration> |
| 442 | </execution> |
| 443 | </executions> |
| 444 | </plugin> |
| 445 | <plugin> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 446 | <groupId>io.fabric8</groupId> |
| 447 | <artifactId>docker-maven-plugin</artifactId> |
| 448 | <version>${docker-maven-plugin}</version> |
| 449 | <inherited>false</inherited> |
| 450 | <executions> |
| 451 | <execution> |
| 452 | <id>generate-policy-management-service-image</id> |
| 453 | <phase>package</phase> |
| 454 | <goals> |
| 455 | <goal>build</goal> |
| 456 | </goals> |
| 457 | <configuration> |
| 458 | <images> |
| 459 | <image> |
PatrikBuhr | 44499d0 | 2023-04-04 10:06:22 +0200 | [diff] [blame] | 460 | <name> |
| 461 | onap/ccsdk-oran-a1policymanagementservice:${project.version}</name> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 462 | <build> |
| 463 | <cleanup>try</cleanup> |
| 464 | <contextDir>${basedir}</contextDir> |
| 465 | <dockerFile>Dockerfile</dockerFile> |
| 466 | <args> |
| 467 | <JAR>${project.build.finalName}.jar</JAR> |
| 468 | </args> |
| 469 | <tags> |
| 470 | <tag>${project.version}</tag> |
| 471 | </tags> |
| 472 | </build> |
| 473 | </image> |
| 474 | </images> |
| 475 | </configuration> |
| 476 | </execution> |
| 477 | <execution> |
| 478 | <id>push-policy-management-service-image</id> |
| 479 | <goals> |
| 480 | <goal>build</goal> |
| 481 | <goal>push</goal> |
| 482 | </goals> |
| 483 | <configuration> |
| 484 | <images> |
| 485 | <image> |
PatrikBuhr | 44499d0 | 2023-04-04 10:06:22 +0200 | [diff] [blame] | 486 | <name> |
| 487 | onap/ccsdk-oran-a1policymanagementservice:${project.version}</name> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 488 | <build> |
| 489 | <contextDir>${basedir}</contextDir> |
| 490 | <dockerFile>Dockerfile</dockerFile> |
| 491 | <args> |
| 492 | <JAR>${project.build.finalName}.jar</JAR> |
| 493 | </args> |
| 494 | <tags> |
Dan Timoney | efdb5b0 | 2020-11-02 11:00:33 -0500 | [diff] [blame] | 495 | <tag>${project.docker.latestminortag.version}</tag> |
| 496 | <tag>${project.docker.latestfulltag.version}</tag> |
| 497 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 498 | </tags> |
| 499 | </build> |
| 500 | </image> |
| 501 | </images> |
| 502 | </configuration> |
| 503 | </execution> |
| 504 | </executions> |
| 505 | </plugin> |
| 506 | </plugins> |
| 507 | </build> |
halil.cakal | 40ce829 | 2023-02-02 12:25:13 +0000 | [diff] [blame] | 508 | <reporting> |
| 509 | <plugins> |
| 510 | <plugin> |
| 511 | <groupId>org.apache.maven.plugins</groupId> |
| 512 | <artifactId>maven-surefire-report-plugin</artifactId> |
| 513 | <version>${surefire-report-plugin.version}</version> |
| 514 | </plugin> |
| 515 | </plugins> |
| 516 | </reporting> |
nitincg | 3c7a324 | 2023-06-16 23:38:08 +0530 | [diff] [blame] | 517 | </project> |