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