1 <?xml version="1.0" encoding="UTF-8"?>
3 * ========================LICENSE_START=================================
6 * Copyright (C) 2019 Nordix Foundation
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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===================================
22 xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-parent</artifactId>
29 <version>2.6.2</version>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>a1-policy-management-service</artifactId>
34 <version>2.4.0-SNAPSHOT</version>
37 <name>The Apache Software License, Version 2.0</name>
38 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
43 <id>onap-releases</id>
44 <name>onap-releases</name>
45 <url>https://nexus.onap.org/content/repositories/releases/</url>
49 <java.version>11</java.version>
50 <springfox.version>3.0.0</springfox.version>
51 <immutable.version>2.8.2</immutable.version>
52 <sdk.version>1.1.6</sdk.version>
53 <swagger.version>2.1.12</swagger.version>
54 <json.version>20190722</json.version>
55 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
56 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
57 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
58 <docker-maven-plugin>0.30.0</docker-maven-plugin>
59 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
60 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
61 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
62 <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
66 <groupId>commons-io</groupId>
67 <artifactId>commons-io</artifactId>
68 <version>2.11.0</version>
71 <groupId>com.google.guava</groupId>
72 <artifactId>guava</artifactId>
73 <version>30.0-jre</version>
76 <groupId>org.springdoc</groupId>
77 <artifactId>springdoc-openapi-ui</artifactId>
78 <version>1.6.3</version>
81 <groupId>org.springframework.boot</groupId>
82 <artifactId>spring-boot-starter-web</artifactId>
85 <groupId>org.springframework.boot</groupId>
86 <artifactId>spring-boot-starter-thymeleaf</artifactId>
89 <groupId>org.springframework.boot</groupId>
90 <artifactId>spring-boot-starter-webflux</artifactId>
93 <groupId>org.springframework.boot</groupId>
94 <artifactId>spring-boot-starter-aop</artifactId>
97 <groupId>org.springframework.boot</groupId>
98 <artifactId>spring-boot-devtools</artifactId>
99 <optional>true</optional>
102 <groupId>org.springframework</groupId>
103 <artifactId>spring-webflux</artifactId>
106 <groupId>io.swagger.core.v3</groupId>
107 <artifactId>swagger-jaxrs2</artifactId>
108 <version>${swagger.version}</version>
111 <groupId>io.swagger.core.v3</groupId>
112 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
113 <version>${swagger.version}</version>
116 <groupId>javax.xml.bind</groupId>
117 <artifactId>jaxb-api</artifactId>
120 <groupId>org.immutables</groupId>
121 <artifactId>value</artifactId>
122 <version>${immutable.version}</version>
123 <scope>provided</scope>
126 <groupId>org.immutables</groupId>
127 <artifactId>gson</artifactId>
128 <version>${immutable.version}</version>
131 <groupId>org.json</groupId>
132 <artifactId>json</artifactId>
133 <version>${json.version}</version>
136 <groupId>org.springframework.boot</groupId>
137 <artifactId>spring-boot-configuration-processor</artifactId>
138 <optional>true</optional>
141 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
142 <artifactId>cbs-client</artifactId>
143 <version>${sdk.version}</version>
146 <groupId>org.projectlombok</groupId>
147 <artifactId>lombok</artifactId>
148 <scope>provided</scope>
151 <groupId>javax.ws.rs</groupId>
152 <artifactId>javax.ws.rs-api</artifactId>
153 <version>${javax.ws.rs-api.version}</version>
156 <groupId>org.glassfish.jersey.inject</groupId>
157 <artifactId>jersey-hk2</artifactId>
159 <!-- Actuator dependencies -->
161 <groupId>org.springframework.boot</groupId>
162 <artifactId>spring-boot-starter-actuator</artifactId>
164 <!--REQUIRED TO GENERATE DOCUMENTATION -->
166 <groupId>io.springfox</groupId>
167 <artifactId>springfox-swagger2</artifactId>
168 <version>${springfox.version}</version>
171 <groupId>io.springfox</groupId>
172 <artifactId>springfox-swagger-ui</artifactId>
173 <version>${springfox.version}</version>
177 <groupId>org.springframework.boot</groupId>
178 <artifactId>spring-boot-starter-test</artifactId>
182 <groupId>org.awaitility</groupId>
183 <artifactId>awaitility</artifactId>
187 <groupId>io.projectreactor</groupId>
188 <artifactId>reactor-test</artifactId>
192 <groupId>org.junit.jupiter</groupId>
193 <artifactId>junit-jupiter-engine</artifactId>
197 <groupId>org.mockito</groupId>
198 <artifactId>mockito-junit-jupiter</artifactId>
202 <groupId>org.mockito</groupId>
203 <artifactId>mockito-core</artifactId>
207 <groupId>com.squareup.okhttp3</groupId>
208 <artifactId>mockwebserver</artifactId>
211 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
213 <groupId>com.github.erosb</groupId>
214 <artifactId>everit-json-schema</artifactId>
215 <version>1.13.0</version>
221 <groupId>org.springframework.boot</groupId>
222 <artifactId>spring-boot-maven-plugin</artifactId>
225 <groupId>net.revelc.code.formatter</groupId>
226 <artifactId>formatter-maven-plugin</artifactId>
227 <version>${formatter-maven-plugin.version}</version>
229 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
231 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
232 spotless:apply process-sources -->
235 <groupId>com.diffplug.spotless</groupId>
236 <artifactId>spotless-maven-plugin</artifactId>
237 <version>${spotless-maven-plugin.version}</version>
240 <removeUnusedImports />
242 <order>com,java,javax,org</order>
246 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
247 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-surefire-plugin</artifactId>
254 <skipTests>false</skipTests>
258 <artifactId>maven-failsafe-plugin</artifactId>
261 <groupId>org.codehaus.mojo</groupId>
262 <artifactId>build-helper-maven-plugin</artifactId>
266 <phase>generate-sources</phase>
268 <goal>add-source</goal>
272 <source>${project.build.directory}/generated-sources/annotations/</source>
279 <groupId>org.jacoco</groupId>
280 <artifactId>jacoco-maven-plugin</artifactId>
281 <version>${jacoco-maven-plugin.version}</version>
284 <id>default-prepare-agent</id>
286 <goal>prepare-agent</goal>
290 <id>default-report</id>
291 <phase>prepare-package</phase>
299 <groupId>io.fabric8</groupId>
300 <artifactId>docker-maven-plugin</artifactId>
301 <version>${docker-maven-plugin}</version>
302 <inherited>false</inherited>
305 <id>generate-a1-policy-management-service-image</id>
306 <phase>package</phase>
311 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
314 <name>o-ran-sc/nonrtric-a1-policy-management-service:${project.version}</name>
316 <cleanup>try</cleanup>
317 <contextDir>${basedir}</contextDir>
318 <dockerFile>Dockerfile</dockerFile>
320 <JAR>${project.build.finalName}.jar</JAR>
323 <tag>${project.version}</tag>
331 <id>push-a1-policy-management-service-image</id>
337 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
338 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
341 <name>o-ran-sc/nonrtric-a1-policy-management-service:${project.version}</name>
343 <contextDir>${basedir}</contextDir>
344 <dockerFile>Dockerfile</dockerFile>
346 <JAR>${project.build.finalName}.jar</JAR>
349 <tag>${project.version}</tag>
359 <!-- support sonar in multi-module project -->
361 <groupId>org.sonarsource.scanner.maven</groupId>
362 <artifactId>sonar-maven-plugin</artifactId>
363 <version>${sonar-maven-plugin.version}</version>
366 <groupId>org.codehaus.mojo</groupId>
367 <artifactId>exec-maven-plugin</artifactId>
368 <version>${exec-maven-plugin.version}</version>
371 <id>git submodule update</id>
372 <phase>initialize</phase>
374 <executable>git</executable>
376 <argument>submodule</argument>
377 <argument>update</argument>
378 <argument>--init</argument>
379 <argument>--recursive</argument>
387 <id>copy configuration</id>
388 <phase>initialize</phase>
390 <executable>cp</executable>
392 <argument>-r</argument>
393 <argument>../onap/oran/a1-policy-management/config</argument>
394 <argument>.</argument>
406 <system>JIRA</system>
407 <url>https://jira.o-ran-sc.org/</url>