blob: dc1d7f23fbc148a09747f58b169038a18b4fd734 [file] [log] [blame]
elinuxhenrike5b384a2020-07-22 16:41:17 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ ============LICENSE_START=======================================================
4 ~ ONAP : ccsdk oran
5 ~ ================================================================================
6 ~ Copyright (C) 2020 Nordix Foundation. All rights reserved.
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>
elinuxhenrike5b384a2020-07-22 16:41:17 +020024 <parent>
25 <groupId>org.onap.ccsdk.parent</groupId>
PatrikBuhre7f03552021-08-09 10:20:55 +020026 <artifactId>spring-boot-25-starter-parent</artifactId>
Dan Timoneyb5fc06f2022-01-03 13:23:22 -050027 <version>2.3.2</version>
Dan Timoney8a70f002021-08-31 10:40:07 -040028 <relativePath/>
elinuxhenrike5b384a2020-07-22 16:41:17 +020029 </parent>
elinuxhenrike5b384a2020-07-22 16:41:17 +020030 <groupId>org.onap.ccsdk.oran</groupId>
31 <artifactId>a1-policy-management-service</artifactId>
Dan Timoney38d55622021-09-21 13:23:39 -040032 <version>1.3.0-SNAPSHOT</version>
Lathisha682c322020-07-30 15:52:12 +010033 <name>ccsdk-oran :: ${project.artifactId}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +020034 <properties>
35 <java.version.source>11</java.version.source>
36 <java.version.target>11</java.version.target>
RehanRazab369f782021-01-29 13:26:00 +010037 <springfox.version>3.0.0</springfox.version>
PatrikBuhr1122b012021-01-20 12:21:52 +010038 <!-- Do not change to version 3.0.0! Will break the generated json. -->
elinuxhenrikfa658f62020-11-05 12:37:43 +010039 <immutable.version>2.8.8</immutable.version>
elinuxhenrikfa658f62020-11-05 12:37:43 +010040 <json.version>20200518</json.version>
41 <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
42 <spotless-maven-plugin.version>2.5.0</spotless-maven-plugin.version>
PatrikBuhrc6cca202022-01-04 17:10:12 +010043 <commons-io.version>2.11.0</commons-io.version>
elinuxhenrikc4d1f8a2020-08-24 13:30:10 +020044 <docker-maven-plugin>0.30.0</docker-maven-plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +010045 <surefire-maven-plugin.version>3.0.0-M5</surefire-maven-plugin.version>
46 <!-- Version must be higher than version 2.19.1 that is defined in the parent pom for JUnit 5 tests to be run. Do not remove! -->
elinuxhenrikfa658f62020-11-05 12:37:43 +010047 <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
elinuxhenrikf28594d2020-12-07 14:54:19 +010048 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
RehanRaza0e3740a2020-08-03 15:56:03 +020049 <exec.skip>true</exec.skip>
Dan Timoneyefdb5b02020-11-02 11:00:33 -050050 <ccsdk.project.version>${project.version}</ccsdk.project.version>
RehanRaza0e3740a2020-08-03 15:56:03 +020051 </properties>
52 <dependencies>
53 <dependency>
PatrikBuhrfee99552021-02-02 14:06:44 +010054 <groupId>org.springdoc</groupId>
55 <artifactId>springdoc-openapi-ui</artifactId>
PatrikBuhrc6cca202022-01-04 17:10:12 +010056 <version>1.6.3</version>
PatrikBuhrfee99552021-02-02 14:06:44 +010057 </dependency>
58 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +020059 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010060 <artifactId>spring-boot</artifactId>
61 </dependency>
62 <dependency>
63 <groupId>org.springframework</groupId>
64 <artifactId>spring-beans</artifactId>
65 </dependency>
66 <dependency>
67 <groupId>org.springframework</groupId>
68 <artifactId>spring-context</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020069 </dependency>
70 <dependency>
71 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010072 <artifactId>spring-boot-autoconfigure</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020073 </dependency>
74 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010075 <groupId>org.springframework</groupId>
76 <artifactId>spring-web</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020077 </dependency>
78 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010079 <groupId>org.springframework</groupId>
80 <artifactId>spring-webmvc</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020081 </dependency>
82 <dependency>
PatrikBuhr0f8b2052021-12-20 13:40:14 +010083 <groupId>org.springframework.boot</groupId>
84 <artifactId>spring-boot-starter-webflux</artifactId>
85 </dependency>
86 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +020087 <groupId>org.springframework</groupId>
88 <artifactId>spring-webflux</artifactId>
89 </dependency>
90 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010091 <groupId>io.springfox</groupId>
92 <artifactId>springfox-spring-web</artifactId>
93 <version>${springfox.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +020094 </dependency>
95 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010096 <groupId>io.springfox</groupId>
97 <artifactId>springfox-spi</artifactId>
98 <version>${springfox.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +020099 </dependency>
100 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100101 <groupId>io.springfox</groupId>
102 <artifactId>springfox-core</artifactId>
103 <version>${springfox.version}</version>
104 </dependency>
105 <dependency>
106 <groupId>org.aspectj</groupId>
107 <artifactId>aspectjweaver</artifactId>
108 </dependency>
109 <dependency>
110 <groupId>com.fasterxml.jackson.core</groupId>
111 <artifactId>jackson-databind</artifactId>
112 </dependency>
113 <dependency>
114 <groupId>org.apache.tomcat.embed</groupId>
115 <artifactId>tomcat-embed-core</artifactId>
116 </dependency>
117 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100118 <groupId>javax.validation</groupId>
119 <artifactId>validation-api</artifactId>
120 </dependency>
121 <dependency>
122 <groupId>com.google.guava</groupId>
123 <artifactId>guava</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200124 </dependency>
125 <dependency>
126 <groupId>org.immutables</groupId>
127 <artifactId>value</artifactId>
128 <version>${immutable.version}</version>
129 <scope>provided</scope>
130 </dependency>
131 <dependency>
132 <groupId>org.immutables</groupId>
133 <artifactId>gson</artifactId>
134 <version>${immutable.version}</version>
135 </dependency>
136 <dependency>
137 <groupId>org.json</groupId>
138 <artifactId>json</artifactId>
139 <version>${json.version}</version>
140 </dependency>
141 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200142 <groupId>org.projectlombok</groupId>
143 <artifactId>lombok</artifactId>
144 <scope>provided</scope>
145 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200146 <!-- Actuator dependencies -->
147 <dependency>
148 <groupId>org.springframework.boot</groupId>
149 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100150 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200151 </dependency>
152 <!--REQUIRED TO GENERATE DOCUMENTATION -->
153 <dependency>
154 <groupId>io.springfox</groupId>
155 <artifactId>springfox-swagger2</artifactId>
156 <version>${springfox.version}</version>
157 </dependency>
158 <dependency>
159 <groupId>io.springfox</groupId>
160 <artifactId>springfox-swagger-ui</artifactId>
161 <version>${springfox.version}</version>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100162 <scope>runtime</scope>
163 </dependency>
164 <!-- For development help -->
165 <dependency>
166 <groupId>org.springframework.boot</groupId>
167 <artifactId>spring-boot-devtools</artifactId>
168 <optional>true</optional>
169 <scope>runtime</scope>
170 </dependency>
171 <dependency>
172 <groupId>org.springframework.boot</groupId>
173 <artifactId>spring-boot-configuration-processor</artifactId>
174 <optional>true</optional>
175 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200176 </dependency>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400177 <!-- TEST -->
RehanRaza0e3740a2020-08-03 15:56:03 +0200178 <dependency>
179 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100180 <artifactId>spring-boot-test</artifactId>
181 <scope>test</scope>
182 </dependency>
183 <dependency>
184 <groupId>org.springframework.boot</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200185 <artifactId>spring-boot-starter-test</artifactId>
186 <scope>test</scope>
187 </dependency>
188 <dependency>
189 <groupId>org.awaitility</groupId>
190 <artifactId>awaitility</artifactId>
191 <scope>test</scope>
192 </dependency>
193 <dependency>
194 <groupId>io.projectreactor</groupId>
195 <artifactId>reactor-test</artifactId>
196 <scope>test</scope>
197 </dependency>
198 <dependency>
199 <groupId>org.junit.jupiter</groupId>
200 <artifactId>junit-jupiter-engine</artifactId>
201 <scope>test</scope>
202 </dependency>
203 <dependency>
204 <groupId>org.mockito</groupId>
205 <artifactId>mockito-junit-jupiter</artifactId>
206 <scope>test</scope>
207 </dependency>
208 <dependency>
209 <groupId>org.mockito</groupId>
210 <artifactId>mockito-core</artifactId>
211 <scope>test</scope>
212 </dependency>
213 <dependency>
214 <groupId>com.squareup.okhttp3</groupId>
215 <artifactId>mockwebserver</artifactId>
216 <scope>test</scope>
217 </dependency>
elinuxhenrik50b658d2020-11-11 14:11:37 +0100218 <dependency>
219 <groupId>commons-io</groupId>
220 <artifactId>commons-io</artifactId>
221 <version>${commons-io.version}</version>
222 <scope>test</scope>
223 </dependency>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200224 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
225 <dependency>
226 <groupId>com.github.erosb</groupId>
227 <artifactId>everit-json-schema</artifactId>
228 <version>1.13.0</version>
229 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200230 </dependencies>
231 <build>
232 <plugins>
233 <plugin>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500234 <groupId>org.codehaus.groovy.maven</groupId>
235 <artifactId>gmaven-plugin</artifactId>
236 <executions>
237 <execution>
238 <phase>validate</phase>
239 <goals>
240 <goal>execute</goal>
241 </goals>
242 <configuration>
243 <source>${basedir}/TagVersion.groovy</source>
244 </configuration>
245 </execution>
246 </executions>
247 </plugin>
248 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200249 <groupId>org.springframework.boot</groupId>
250 <artifactId>spring-boot-maven-plugin</artifactId>
251 </plugin>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400252 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200253 <groupId>net.revelc.code.formatter</groupId>
254 <artifactId>formatter-maven-plugin</artifactId>
255 <version>${formatter-maven-plugin.version}</version>
256 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400257 <lineEnding>LF</lineEnding>
RehanRaza0e3740a2020-08-03 15:56:03 +0200258 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
259 </configuration>
260 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
261 spotless:apply process-sources -->
262 </plugin>
263 <plugin>
264 <groupId>com.diffplug.spotless</groupId>
265 <artifactId>spotless-maven-plugin</artifactId>
266 <version>${spotless-maven-plugin.version}</version>
267 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400268 <lineEndings>UNIX</lineEndings>
RehanRaza0e3740a2020-08-03 15:56:03 +0200269 <java>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400270 <removeUnusedImports/>
RehanRaza0e3740a2020-08-03 15:56:03 +0200271 <importOrder>
272 <order>com,java,javax,org</order>
273 </importOrder>
274 </java>
275 </configuration>
276 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
277 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
278 source files -->
279 </plugin>
280 <plugin>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-surefire-plugin</artifactId>
elinuxhenrik9c3a6bd2020-08-26 14:04:17 +0200283 <version>${surefire-maven-plugin.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200284 <configuration>
285 <skipTests>false</skipTests>
286 </configuration>
287 </plugin>
288 <plugin>
289 <artifactId>maven-failsafe-plugin</artifactId>
290 </plugin>
291 <plugin>
292 <groupId>org.codehaus.mojo</groupId>
293 <artifactId>build-helper-maven-plugin</artifactId>
294 <executions>
295 <execution>
296 <id>add-source</id>
297 <phase>generate-sources</phase>
298 <goals>
299 <goal>add-source</goal>
300 </goals>
301 <configuration>
302 <sources>
303 <source>${project.build.directory}/generated-sources/annotations/</source>
304 </sources>
305 </configuration>
306 </execution>
307 </executions>
308 </plugin>
309 <plugin>
310 <groupId>org.jacoco</groupId>
311 <artifactId>jacoco-maven-plugin</artifactId>
312 <version>${jacoco-maven-plugin.version}</version>
313 <executions>
314 <execution>
315 <id>default-prepare-agent</id>
316 <goals>
317 <goal>prepare-agent</goal>
318 </goals>
319 </execution>
320 <execution>
321 <id>default-report</id>
322 <phase>prepare-package</phase>
323 <goals>
324 <goal>report</goal>
325 </goals>
326 </execution>
327 </executions>
328 </plugin>
329 <plugin>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100330 <groupId>io.swagger.codegen.v3</groupId>
331 <artifactId>swagger-codegen-maven-plugin</artifactId>
332 <version>${swagger-codegen-maven-plugin.version}</version>
333 <executions>
334 <execution>
335 <phase>test</phase>
336 <goals>
337 <goal>generate</goal>
338 </goals>
339 <configuration>
340 <inputSpec>${project.basedir}/api/pms-api.json</inputSpec>
341 <language>openapi-yaml</language>
342 <output>${project.basedir}/api</output>
343 <configOptions>
344 <outputFile>pms-api.yaml</outputFile>
345 </configOptions>
346 </configuration>
347 </execution>
348 </executions>
349 </plugin>
350 <plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +0100351 <artifactId>maven-resources-plugin</artifactId>
352 <executions>
353 <execution>
354 <id>copy-resource-one</id>
355 <phase>install</phase>
356 <goals>
357 <goal>copy-resources</goal>
358 </goals>
359 <configuration>
360 <outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory>
361 <resources>
362 <resource>
363 <directory>${project.basedir}/api</directory>
364 <includes>
365 <include>pms-api.*</include>
366 </includes>
367 </resource>
368 </resources>
369 </configuration>
370 </execution>
371 </executions>
372 </plugin>
373 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200374 <groupId>io.fabric8</groupId>
375 <artifactId>docker-maven-plugin</artifactId>
376 <version>${docker-maven-plugin}</version>
377 <inherited>false</inherited>
378 <executions>
379 <execution>
380 <id>generate-policy-management-service-image</id>
381 <phase>package</phase>
382 <goals>
383 <goal>build</goal>
384 </goals>
385 <configuration>
386 <images>
387 <image>
388 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
389 <build>
390 <cleanup>try</cleanup>
391 <contextDir>${basedir}</contextDir>
392 <dockerFile>Dockerfile</dockerFile>
393 <args>
394 <JAR>${project.build.finalName}.jar</JAR>
395 </args>
396 <tags>
397 <tag>${project.version}</tag>
398 </tags>
399 </build>
400 </image>
401 </images>
402 </configuration>
403 </execution>
404 <execution>
405 <id>push-policy-management-service-image</id>
406 <goals>
407 <goal>build</goal>
408 <goal>push</goal>
409 </goals>
410 <configuration>
411 <images>
412 <image>
413 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
414 <build>
415 <contextDir>${basedir}</contextDir>
416 <dockerFile>Dockerfile</dockerFile>
417 <args>
418 <JAR>${project.build.finalName}.jar</JAR>
419 </args>
420 <tags>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500421 <tag>${project.docker.latestminortag.version}</tag>
422 <tag>${project.docker.latestfulltag.version}</tag>
423 <tag>${project.docker.latesttagtimestamp.version}</tag>
RehanRaza0e3740a2020-08-03 15:56:03 +0200424 </tags>
425 </build>
426 </image>
427 </images>
428 </configuration>
429 </execution>
430 </executions>
431 </plugin>
432 </plugins>
433 </build>
PatrikBuhr0f8b2052021-12-20 13:40:14 +0100434</project>