blob: 6d404778fad988ffde3fe0c103413d1063d8f087 [file] [log] [blame]
PatrikBuhr3bdae602019-11-28 10:58:54 +01001<?xml version="1.0" encoding="UTF-8"?>
elinuxhenrik80ebd8e2020-01-28 14:30:18 +01002<!--
3* ========================LICENSE_START=================================
4* O-RAN-SC
5* %%
6* Copyright (C) 2019 Nordix Foundation
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-->
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010021<project
22 xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Lathishdac5e372020-01-23 13:56:28 +000024 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010025 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-parent</artifactId>
PatrikBuhr21c2d302022-01-05 10:56:56 +010029 <version>2.6.2</version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010030 <relativePath />
31 </parent>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
elinuxhenrik030d0102021-12-13 16:17:12 +010033 <artifactId>a1-policy-management-service</artifactId>
elinuxhenrik809690e2021-12-15 13:42:47 +010034 <version>2.4.0-SNAPSHOT</version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010035 <licenses>
36 <license>
37 <name>The Apache Software License, Version 2.0</name>
38 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
39 </license>
40 </licenses>
41 <repositories>
42 <repository>
43 <id>onap-releases</id>
44 <name>onap-releases</name>
45 <url>https://nexus.onap.org/content/repositories/releases/</url>
46 </repository>
47 </repositories>
48 <properties>
49 <java.version>11</java.version>
PatrikBuhr63087c62021-02-12 16:30:24 +010050 <springfox.version>3.0.0</springfox.version>
PatrikBuhr36067d22022-02-01 13:07:17 +010051 <immutable.version>2.8.2</immutable.version>
PatrikBuhr21c2d302022-01-05 10:56:56 +010052 <swagger.version>2.1.12</swagger.version>
PatrikBuhr36067d22022-02-01 13:07:17 +010053 <json.version>20211205</json.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010054 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
PatrikBuhrc75f4b12020-09-17 09:36:04 +020055 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010056 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
57 <docker-maven-plugin>0.30.0</docker-maven-plugin>
Lathish7e09b1b2020-01-24 14:50:32 +000058 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
elinuxhenrik284d3212020-02-07 16:21:06 +010059 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
elinuxhenrikb76f5142020-04-06 13:01:00 +020060 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
elinuxhenrikdd060b82021-08-24 13:26:10 +020061 <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010062 </properties>
63 <dependencies>
64 <dependency>
PatrikBuhr21c2d302022-01-05 10:56:56 +010065 <groupId>commons-io</groupId>
66 <artifactId>commons-io</artifactId>
67 <version>2.11.0</version>
68 </dependency>
69 <dependency>
PatrikBuhr63087c62021-02-12 16:30:24 +010070 <groupId>com.google.guava</groupId>
71 <artifactId>guava</artifactId>
PatrikBuhr75123352022-01-12 16:36:54 +010072 <version>31.0.1-jre</version>
PatrikBuhr63087c62021-02-12 16:30:24 +010073 </dependency>
74 <dependency>
75 <groupId>org.springdoc</groupId>
76 <artifactId>springdoc-openapi-ui</artifactId>
PatrikBuhr21c2d302022-01-05 10:56:56 +010077 <version>1.6.3</version>
PatrikBuhr63087c62021-02-12 16:30:24 +010078 </dependency>
79 <dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010080 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-web</artifactId>
82 </dependency>
83 <dependency>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-starter-thymeleaf</artifactId>
86 </dependency>
87 <dependency>
88 <groupId>org.springframework.boot</groupId>
89 <artifactId>spring-boot-starter-webflux</artifactId>
90 </dependency>
91 <dependency>
PatrikBuhr4e7db502020-06-16 11:19:01 +020092 <groupId>org.springframework.boot</groupId>
93 <artifactId>spring-boot-starter-aop</artifactId>
Lathish961b63f2020-03-19 15:24:32 +000094 </dependency>
95 <dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010096 <groupId>org.springframework.boot</groupId>
97 <artifactId>spring-boot-devtools</artifactId>
98 <optional>true</optional>
99 </dependency>
100 <dependency>
101 <groupId>org.springframework</groupId>
102 <artifactId>spring-webflux</artifactId>
103 </dependency>
104 <dependency>
105 <groupId>io.swagger.core.v3</groupId>
106 <artifactId>swagger-jaxrs2</artifactId>
107 <version>${swagger.version}</version>
108 </dependency>
109 <dependency>
110 <groupId>io.swagger.core.v3</groupId>
111 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
112 <version>${swagger.version}</version>
113 </dependency>
114 <dependency>
115 <groupId>javax.xml.bind</groupId>
116 <artifactId>jaxb-api</artifactId>
117 </dependency>
118 <dependency>
119 <groupId>org.immutables</groupId>
120 <artifactId>value</artifactId>
121 <version>${immutable.version}</version>
122 <scope>provided</scope>
123 </dependency>
124 <dependency>
125 <groupId>org.immutables</groupId>
126 <artifactId>gson</artifactId>
127 <version>${immutable.version}</version>
128 </dependency>
129 <dependency>
130 <groupId>org.json</groupId>
131 <artifactId>json</artifactId>
132 <version>${json.version}</version>
133 </dependency>
elinuxhenrik777b07b2020-01-23 16:27:44 +0100134 <dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100135 <groupId>org.springframework.boot</groupId>
136 <artifactId>spring-boot-configuration-processor</artifactId>
137 <optional>true</optional>
138 </dependency>
139 <dependency>
Lathish1f722de2020-01-27 14:57:22 +0000140 <groupId>org.projectlombok</groupId>
141 <artifactId>lombok</artifactId>
elinuxhenrik9fb9f6e2020-01-28 08:59:39 +0100142 <scope>provided</scope>
Lathish1f722de2020-01-27 14:57:22 +0000143 </dependency>
RehanRaza7d0bb602020-02-24 09:35:23 +0100144 <dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200145 <groupId>javax.ws.rs</groupId>
146 <artifactId>javax.ws.rs-api</artifactId>
147 <version>${javax.ws.rs-api.version}</version>
148 </dependency>
149 <dependency>
150 <groupId>org.glassfish.jersey.inject</groupId>
151 <artifactId>jersey-hk2</artifactId>
152 </dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200153 <!-- Actuator dependencies -->
154 <dependency>
155 <groupId>org.springframework.boot</groupId>
156 <artifactId>spring-boot-starter-actuator</artifactId>
157 </dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100158 <!--REQUIRED TO GENERATE DOCUMENTATION -->
159 <dependency>
160 <groupId>io.springfox</groupId>
161 <artifactId>springfox-swagger2</artifactId>
162 <version>${springfox.version}</version>
163 </dependency>
164 <dependency>
165 <groupId>io.springfox</groupId>
166 <artifactId>springfox-swagger-ui</artifactId>
167 <version>${springfox.version}</version>
168 </dependency>
169 <!-- TEST -->
170 <dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200171 <groupId>org.springframework.boot</groupId>
172 <artifactId>spring-boot-starter-test</artifactId>
173 <scope>test</scope>
174 </dependency>
175 <dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100176 <groupId>org.awaitility</groupId>
177 <artifactId>awaitility</artifactId>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100178 <scope>test</scope>
179 </dependency>
180 <dependency>
181 <groupId>io.projectreactor</groupId>
182 <artifactId>reactor-test</artifactId>
183 <scope>test</scope>
184 </dependency>
185 <dependency>
186 <groupId>org.junit.jupiter</groupId>
187 <artifactId>junit-jupiter-engine</artifactId>
188 <scope>test</scope>
189 </dependency>
190 <dependency>
191 <groupId>org.mockito</groupId>
192 <artifactId>mockito-junit-jupiter</artifactId>
193 <scope>test</scope>
194 </dependency>
195 <dependency>
196 <groupId>org.mockito</groupId>
197 <artifactId>mockito-core</artifactId>
198 <scope>test</scope>
199 </dependency>
200 <dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200201 <groupId>com.squareup.okhttp3</groupId>
202 <artifactId>mockwebserver</artifactId>
203 <scope>test</scope>
Lathish7e09b1b2020-01-24 14:50:32 +0000204 </dependency>
PatrikBuhrfc15c052021-09-24 09:40:43 +0200205 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
206 <dependency>
207 <groupId>com.github.erosb</groupId>
208 <artifactId>everit-json-schema</artifactId>
209 <version>1.13.0</version>
210 </dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100211 </dependencies>
212 <build>
213 <plugins>
214 <plugin>
215 <groupId>org.springframework.boot</groupId>
216 <artifactId>spring-boot-maven-plugin</artifactId>
217 </plugin>
218 <plugin>
219 <groupId>net.revelc.code.formatter</groupId>
220 <artifactId>formatter-maven-plugin</artifactId>
221 <version>${formatter-maven-plugin.version}</version>
222 <configuration>
223 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
224 </configuration>
ecaiyanlinuxf40c3b62020-06-04 09:34:31 +0200225 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
Lathishdac5e372020-01-23 13:56:28 +0000226 spotless:apply process-sources -->
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100227 </plugin>
228 <plugin>
229 <groupId>com.diffplug.spotless</groupId>
230 <artifactId>spotless-maven-plugin</artifactId>
231 <version>${spotless-maven-plugin.version}</version>
232 <configuration>
233 <java>
234 <removeUnusedImports />
235 <importOrder>
236 <order>com,java,javax,org</order>
237 </importOrder>
238 </java>
239 </configuration>
ecaiyanlinuxf40c3b62020-06-04 09:34:31 +0200240 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
241 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
Lathishdac5e372020-01-23 13:56:28 +0000242 source files -->
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100243 </plugin>
244 <plugin>
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-surefire-plugin</artifactId>
247 <configuration>
248 <skipTests>false</skipTests>
249 </configuration>
250 </plugin>
251 <plugin>
252 <artifactId>maven-failsafe-plugin</artifactId>
253 </plugin>
254 <plugin>
255 <groupId>org.codehaus.mojo</groupId>
256 <artifactId>build-helper-maven-plugin</artifactId>
257 <executions>
258 <execution>
259 <id>add-source</id>
260 <phase>generate-sources</phase>
261 <goals>
262 <goal>add-source</goal>
263 </goals>
264 <configuration>
265 <sources>
266 <source>${project.build.directory}/generated-sources/annotations/</source>
267 </sources>
268 </configuration>
269 </execution>
270 </executions>
271 </plugin>
272 <plugin>
Lathishc05ff962020-02-12 14:46:01 +0000273 <groupId>org.jacoco</groupId>
274 <artifactId>jacoco-maven-plugin</artifactId>
elinuxhenrikb76f5142020-04-06 13:01:00 +0200275 <version>${jacoco-maven-plugin.version}</version>
Lathishc05ff962020-02-12 14:46:01 +0000276 <executions>
277 <execution>
278 <id>default-prepare-agent</id>
279 <goals>
280 <goal>prepare-agent</goal>
281 </goals>
282 </execution>
283 <execution>
284 <id>default-report</id>
285 <phase>prepare-package</phase>
286 <goals>
287 <goal>report</goal>
288 </goals>
289 </execution>
290 </executions>
291 </plugin>
292 <plugin>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100293 <groupId>io.fabric8</groupId>
294 <artifactId>docker-maven-plugin</artifactId>
295 <version>${docker-maven-plugin}</version>
296 <inherited>false</inherited>
297 <executions>
298 <execution>
elinuxhenrik030d0102021-12-13 16:17:12 +0100299 <id>generate-a1-policy-management-service-image</id>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100300 <phase>package</phase>
301 <goals>
302 <goal>build</goal>
303 </goals>
304 <configuration>
305 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
306 <images>
307 <image>
elinuxhenrik030d0102021-12-13 16:17:12 +0100308 <name>o-ran-sc/nonrtric-a1-policy-management-service:${project.version}</name>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100309 <build>
310 <cleanup>try</cleanup>
311 <contextDir>${basedir}</contextDir>
312 <dockerFile>Dockerfile</dockerFile>
313 <args>
314 <JAR>${project.build.finalName}.jar</JAR>
315 </args>
316 <tags>
317 <tag>${project.version}</tag>
318 </tags>
319 </build>
320 </image>
321 </images>
322 </configuration>
323 </execution>
324 <execution>
elinuxhenrik030d0102021-12-13 16:17:12 +0100325 <id>push-a1-policy-management-service-image</id>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100326 <goals>
327 <goal>build</goal>
328 <goal>push</goal>
329 </goals>
330 <configuration>
331 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
332 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
333 <images>
334 <image>
elinuxhenrik030d0102021-12-13 16:17:12 +0100335 <name>o-ran-sc/nonrtric-a1-policy-management-service:${project.version}</name>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100336 <build>
337 <contextDir>${basedir}</contextDir>
338 <dockerFile>Dockerfile</dockerFile>
339 <args>
340 <JAR>${project.build.finalName}.jar</JAR>
341 </args>
342 <tags>
343 <tag>${project.version}</tag>
YongchaoWu7b9db852020-02-07 09:25:43 +0100344 <tag>latest</tag>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100345 </tags>
346 </build>
347 </image>
348 </images>
349 </configuration>
350 </execution>
351 </executions>
352 </plugin>
elinuxhenrik284d3212020-02-07 16:21:06 +0100353 <!-- support sonar in multi-module project -->
354 <plugin>
355 <groupId>org.sonarsource.scanner.maven</groupId>
356 <artifactId>sonar-maven-plugin</artifactId>
357 <version>${sonar-maven-plugin.version}</version>
358 </plugin>
PatrikBuhr13c62d12020-11-11 13:14:57 +0100359 <plugin>
360 <groupId>org.codehaus.mojo</groupId>
361 <artifactId>exec-maven-plugin</artifactId>
elinuxhenrikdd060b82021-08-24 13:26:10 +0200362 <version>${exec-maven-plugin.version}</version>
PatrikBuhr13c62d12020-11-11 13:14:57 +0100363 <executions>
364 <execution>
365 <id>git submodule update</id>
366 <phase>initialize</phase>
367 <configuration>
368 <executable>git</executable>
369 <arguments>
370 <argument>submodule</argument>
371 <argument>update</argument>
372 <argument>--init</argument>
373 <argument>--recursive</argument>
374 </arguments>
375 </configuration>
376 <goals>
377 <goal>exec</goal>
378 </goals>
379 </execution>
380 <execution>
381 <id>copy configuration</id>
382 <phase>initialize</phase>
383 <configuration>
384 <executable>cp</executable>
385 <arguments>
386 <argument>-r</argument>
387 <argument>../onap/oran/a1-policy-management/config</argument>
388 <argument>.</argument>
389 </arguments>
390 </configuration>
391 <goals>
392 <goal>exec</goal>
393 </goals>
394 </execution>
395 </executions>
396 </plugin>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100397 </plugins>
398 </build>
399 <issueManagement>
400 <system>JIRA</system>
401 <url>https://jira.o-ran-sc.org/</url>
402 </issueManagement>
PatrikBuhr75123352022-01-12 16:36:54 +0100403</project>