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 <swagger.version>2.1.12</swagger.version>
53 <json.version>20190722</json.version>
54 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
55 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
56 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
57 <docker-maven-plugin>0.30.0</docker-maven-plugin>
58 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
59 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
60 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
61 <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
65 <groupId>commons-io</groupId>
66 <artifactId>commons-io</artifactId>
67 <version>2.11.0</version>
70 <groupId>com.google.guava</groupId>
71 <artifactId>guava</artifactId>
72 <version>31.0.1-jre</version>
75 <groupId>org.springdoc</groupId>
76 <artifactId>springdoc-openapi-ui</artifactId>
77 <version>1.6.3</version>
80 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-web</artifactId>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-starter-thymeleaf</artifactId>
88 <groupId>org.springframework.boot</groupId>
89 <artifactId>spring-boot-starter-webflux</artifactId>
92 <groupId>org.springframework.boot</groupId>
93 <artifactId>spring-boot-starter-aop</artifactId>
96 <groupId>org.springframework.boot</groupId>
97 <artifactId>spring-boot-devtools</artifactId>
98 <optional>true</optional>
101 <groupId>org.springframework</groupId>
102 <artifactId>spring-webflux</artifactId>
105 <groupId>io.swagger.core.v3</groupId>
106 <artifactId>swagger-jaxrs2</artifactId>
107 <version>${swagger.version}</version>
110 <groupId>io.swagger.core.v3</groupId>
111 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
112 <version>${swagger.version}</version>
115 <groupId>javax.xml.bind</groupId>
116 <artifactId>jaxb-api</artifactId>
119 <groupId>org.immutables</groupId>
120 <artifactId>value</artifactId>
121 <version>${immutable.version}</version>
122 <scope>provided</scope>
125 <groupId>org.immutables</groupId>
126 <artifactId>gson</artifactId>
127 <version>${immutable.version}</version>
130 <groupId>org.json</groupId>
131 <artifactId>json</artifactId>
132 <version>${json.version}</version>
135 <groupId>org.springframework.boot</groupId>
136 <artifactId>spring-boot-configuration-processor</artifactId>
137 <optional>true</optional>
140 <groupId>org.projectlombok</groupId>
141 <artifactId>lombok</artifactId>
142 <scope>provided</scope>
145 <groupId>javax.ws.rs</groupId>
146 <artifactId>javax.ws.rs-api</artifactId>
147 <version>${javax.ws.rs-api.version}</version>
150 <groupId>org.glassfish.jersey.inject</groupId>
151 <artifactId>jersey-hk2</artifactId>
153 <!-- Actuator dependencies -->
155 <groupId>org.springframework.boot</groupId>
156 <artifactId>spring-boot-starter-actuator</artifactId>
158 <!--REQUIRED TO GENERATE DOCUMENTATION -->
160 <groupId>io.springfox</groupId>
161 <artifactId>springfox-swagger2</artifactId>
162 <version>${springfox.version}</version>
165 <groupId>io.springfox</groupId>
166 <artifactId>springfox-swagger-ui</artifactId>
167 <version>${springfox.version}</version>
171 <groupId>org.springframework.boot</groupId>
172 <artifactId>spring-boot-starter-test</artifactId>
176 <groupId>org.awaitility</groupId>
177 <artifactId>awaitility</artifactId>
181 <groupId>io.projectreactor</groupId>
182 <artifactId>reactor-test</artifactId>
186 <groupId>org.junit.jupiter</groupId>
187 <artifactId>junit-jupiter-engine</artifactId>
191 <groupId>org.mockito</groupId>
192 <artifactId>mockito-junit-jupiter</artifactId>
196 <groupId>org.mockito</groupId>
197 <artifactId>mockito-core</artifactId>
201 <groupId>com.squareup.okhttp3</groupId>
202 <artifactId>mockwebserver</artifactId>
205 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
207 <groupId>com.github.erosb</groupId>
208 <artifactId>everit-json-schema</artifactId>
209 <version>1.13.0</version>
215 <groupId>org.springframework.boot</groupId>
216 <artifactId>spring-boot-maven-plugin</artifactId>
219 <groupId>net.revelc.code.formatter</groupId>
220 <artifactId>formatter-maven-plugin</artifactId>
221 <version>${formatter-maven-plugin.version}</version>
223 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
225 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
226 spotless:apply process-sources -->
229 <groupId>com.diffplug.spotless</groupId>
230 <artifactId>spotless-maven-plugin</artifactId>
231 <version>${spotless-maven-plugin.version}</version>
234 <removeUnusedImports />
236 <order>com,java,javax,org</order>
240 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
241 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-surefire-plugin</artifactId>
248 <skipTests>false</skipTests>
252 <artifactId>maven-failsafe-plugin</artifactId>
255 <groupId>org.codehaus.mojo</groupId>
256 <artifactId>build-helper-maven-plugin</artifactId>
260 <phase>generate-sources</phase>
262 <goal>add-source</goal>
266 <source>${project.build.directory}/generated-sources/annotations/</source>
273 <groupId>org.jacoco</groupId>
274 <artifactId>jacoco-maven-plugin</artifactId>
275 <version>${jacoco-maven-plugin.version}</version>
278 <id>default-prepare-agent</id>
280 <goal>prepare-agent</goal>
284 <id>default-report</id>
285 <phase>prepare-package</phase>
293 <groupId>io.fabric8</groupId>
294 <artifactId>docker-maven-plugin</artifactId>
295 <version>${docker-maven-plugin}</version>
296 <inherited>false</inherited>
299 <id>generate-a1-policy-management-service-image</id>
300 <phase>package</phase>
305 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
308 <name>o-ran-sc/nonrtric-a1-policy-management-service:${project.version}</name>
310 <cleanup>try</cleanup>
311 <contextDir>${basedir}</contextDir>
312 <dockerFile>Dockerfile</dockerFile>
314 <JAR>${project.build.finalName}.jar</JAR>
317 <tag>${project.version}</tag>
325 <id>push-a1-policy-management-service-image</id>
331 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
332 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
335 <name>o-ran-sc/nonrtric-a1-policy-management-service:${project.version}</name>
337 <contextDir>${basedir}</contextDir>
338 <dockerFile>Dockerfile</dockerFile>
340 <JAR>${project.build.finalName}.jar</JAR>
343 <tag>${project.version}</tag>
353 <!-- support sonar in multi-module project -->
355 <groupId>org.sonarsource.scanner.maven</groupId>
356 <artifactId>sonar-maven-plugin</artifactId>
357 <version>${sonar-maven-plugin.version}</version>
360 <groupId>org.codehaus.mojo</groupId>
361 <artifactId>exec-maven-plugin</artifactId>
362 <version>${exec-maven-plugin.version}</version>
365 <id>git submodule update</id>
366 <phase>initialize</phase>
368 <executable>git</executable>
370 <argument>submodule</argument>
371 <argument>update</argument>
372 <argument>--init</argument>
373 <argument>--recursive</argument>
381 <id>copy configuration</id>
382 <phase>initialize</phase>
384 <executable>cp</executable>
386 <argument>-r</argument>
387 <argument>../onap/oran/a1-policy-management/config</argument>
388 <argument>.</argument>
400 <system>JIRA</system>
401 <url>https://jira.o-ran-sc.org/</url>