blob: a5e11080a8f634480f28194b84dc4db33858a7d6 [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>
PatrikBuhrfbdd3372021-08-18 14:16:26 +020029 <version>2.5.3</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>
elinuxhenrik0e96b9e2021-06-23 23:58:56 +020034 <version>2.3.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>
elinuxhenrikb76f5142020-04-06 13:01:00 +020051 <immutable.version>2.8.2</immutable.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010052 <sdk.version>1.1.6</sdk.version>
PatrikBuhr63087c62021-02-12 16:30:24 +010053 <swagger.version>2.1.6</swagger.version>
elinuxhenrikb76f5142020-04-06 13:01:00 +020054 <json.version>20190722</json.version>
55 <commons-net.version>3.6</commons-net.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010056 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
PatrikBuhrc75f4b12020-09-17 09:36:04 +020057 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010058 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
59 <docker-maven-plugin>0.30.0</docker-maven-plugin>
elinuxhenrikbfdd5bb2020-05-04 17:37:59 +020060 <version.dmaap>1.1.11</version.dmaap>
Lathish7e09b1b2020-01-24 14:50:32 +000061 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
elinuxhenrik284d3212020-02-07 16:21:06 +010062 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
elinuxhenrikb76f5142020-04-06 13:01:00 +020063 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
elinuxhenrikdd060b82021-08-24 13:26:10 +020064 <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010065 </properties>
66 <dependencies>
67 <dependency>
PatrikBuhr63087c62021-02-12 16:30:24 +010068 <groupId>com.google.guava</groupId>
69 <artifactId>guava</artifactId>
70 <version>30.0-jre</version>
71 </dependency>
72 <dependency>
73 <groupId>org.springdoc</groupId>
74 <artifactId>springdoc-openapi-ui</artifactId>
75 <version>1.5.2</version>
76 </dependency>
77 <dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010078 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-web</artifactId>
80 </dependency>
81 <dependency>
82 <groupId>org.springframework.boot</groupId>
83 <artifactId>spring-boot-starter-thymeleaf</artifactId>
84 </dependency>
85 <dependency>
86 <groupId>org.springframework.boot</groupId>
87 <artifactId>spring-boot-starter-webflux</artifactId>
88 </dependency>
89 <dependency>
PatrikBuhr4e7db502020-06-16 11:19:01 +020090 <groupId>org.springframework.boot</groupId>
91 <artifactId>spring-boot-starter-aop</artifactId>
Lathish961b63f2020-03-19 15:24:32 +000092 </dependency>
93 <dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010094 <groupId>org.springframework.boot</groupId>
95 <artifactId>spring-boot-devtools</artifactId>
96 <optional>true</optional>
97 </dependency>
98 <dependency>
99 <groupId>org.springframework</groupId>
100 <artifactId>spring-webflux</artifactId>
101 </dependency>
102 <dependency>
103 <groupId>io.swagger.core.v3</groupId>
104 <artifactId>swagger-jaxrs2</artifactId>
105 <version>${swagger.version}</version>
106 </dependency>
107 <dependency>
108 <groupId>io.swagger.core.v3</groupId>
109 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
110 <version>${swagger.version}</version>
111 </dependency>
112 <dependency>
113 <groupId>javax.xml.bind</groupId>
114 <artifactId>jaxb-api</artifactId>
115 </dependency>
116 <dependency>
117 <groupId>org.immutables</groupId>
118 <artifactId>value</artifactId>
119 <version>${immutable.version}</version>
120 <scope>provided</scope>
121 </dependency>
122 <dependency>
123 <groupId>org.immutables</groupId>
124 <artifactId>gson</artifactId>
125 <version>${immutable.version}</version>
126 </dependency>
127 <dependency>
128 <groupId>org.json</groupId>
129 <artifactId>json</artifactId>
130 <version>${json.version}</version>
131 </dependency>
elinuxhenrik777b07b2020-01-23 16:27:44 +0100132 <dependency>
133 <groupId>commons-net</groupId>
134 <artifactId>commons-net</artifactId>
135 <version>${commons-net.version}</version>
136 </dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100137 <dependency>
138 <groupId>org.springframework.boot</groupId>
139 <artifactId>spring-boot-configuration-processor</artifactId>
140 <optional>true</optional>
141 </dependency>
142 <dependency>
143 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
144 <artifactId>cbs-client</artifactId>
elinuxhenrik777b07b2020-01-23 16:27:44 +0100145 <version>${sdk.version}</version>
146 </dependency>
147 <dependency>
Lathish1f722de2020-01-27 14:57:22 +0000148 <groupId>org.projectlombok</groupId>
149 <artifactId>lombok</artifactId>
elinuxhenrik9fb9f6e2020-01-28 08:59:39 +0100150 <scope>provided</scope>
Lathish1f722de2020-01-27 14:57:22 +0000151 </dependency>
RehanRaza7d0bb602020-02-24 09:35:23 +0100152 <dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200153 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
154 <artifactId>dmaapClient</artifactId>
155 <version>${version.dmaap}</version>
RehanRaza7d0bb602020-02-24 09:35:23 +0100156 </dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200157 <dependency>
158 <groupId>javax.ws.rs</groupId>
159 <artifactId>javax.ws.rs-api</artifactId>
160 <version>${javax.ws.rs-api.version}</version>
161 </dependency>
162 <dependency>
163 <groupId>org.glassfish.jersey.inject</groupId>
164 <artifactId>jersey-hk2</artifactId>
165 </dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200166 <!-- Actuator dependencies -->
167 <dependency>
168 <groupId>org.springframework.boot</groupId>
169 <artifactId>spring-boot-starter-actuator</artifactId>
170 </dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100171 <!--REQUIRED TO GENERATE DOCUMENTATION -->
172 <dependency>
173 <groupId>io.springfox</groupId>
174 <artifactId>springfox-swagger2</artifactId>
175 <version>${springfox.version}</version>
176 </dependency>
177 <dependency>
178 <groupId>io.springfox</groupId>
179 <artifactId>springfox-swagger-ui</artifactId>
180 <version>${springfox.version}</version>
181 </dependency>
182 <!-- TEST -->
183 <dependency>
elinuxhenrik15e26512020-05-27 16:19:49 +0200184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-starter-test</artifactId>
186 <scope>test</scope>
187 </dependency>
188 <dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100189 <groupId>org.awaitility</groupId>
190 <artifactId>awaitility</artifactId>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100191 <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>
elinuxhenrik15e26512020-05-27 16:19:49 +0200214 <groupId>com.squareup.okhttp3</groupId>
215 <artifactId>mockwebserver</artifactId>
216 <scope>test</scope>
Lathish7e09b1b2020-01-24 14:50:32 +0000217 </dependency>
PatrikBuhrfc15c052021-09-24 09:40:43 +0200218 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
219 <dependency>
220 <groupId>com.github.erosb</groupId>
221 <artifactId>everit-json-schema</artifactId>
222 <version>1.13.0</version>
223 </dependency>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100224 </dependencies>
225 <build>
226 <plugins>
227 <plugin>
228 <groupId>org.springframework.boot</groupId>
229 <artifactId>spring-boot-maven-plugin</artifactId>
230 </plugin>
231 <plugin>
232 <groupId>net.revelc.code.formatter</groupId>
233 <artifactId>formatter-maven-plugin</artifactId>
234 <version>${formatter-maven-plugin.version}</version>
235 <configuration>
236 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
237 </configuration>
ecaiyanlinuxf40c3b62020-06-04 09:34:31 +0200238 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
Lathishdac5e372020-01-23 13:56:28 +0000239 spotless:apply process-sources -->
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100240 </plugin>
241 <plugin>
242 <groupId>com.diffplug.spotless</groupId>
243 <artifactId>spotless-maven-plugin</artifactId>
244 <version>${spotless-maven-plugin.version}</version>
245 <configuration>
246 <java>
247 <removeUnusedImports />
248 <importOrder>
249 <order>com,java,javax,org</order>
250 </importOrder>
251 </java>
252 </configuration>
ecaiyanlinuxf40c3b62020-06-04 09:34:31 +0200253 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
254 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
Lathishdac5e372020-01-23 13:56:28 +0000255 source files -->
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100256 </plugin>
257 <plugin>
258 <groupId>org.apache.maven.plugins</groupId>
259 <artifactId>maven-surefire-plugin</artifactId>
260 <configuration>
261 <skipTests>false</skipTests>
262 </configuration>
263 </plugin>
264 <plugin>
265 <artifactId>maven-failsafe-plugin</artifactId>
266 </plugin>
267 <plugin>
268 <groupId>org.codehaus.mojo</groupId>
269 <artifactId>build-helper-maven-plugin</artifactId>
270 <executions>
271 <execution>
272 <id>add-source</id>
273 <phase>generate-sources</phase>
274 <goals>
275 <goal>add-source</goal>
276 </goals>
277 <configuration>
278 <sources>
279 <source>${project.build.directory}/generated-sources/annotations/</source>
280 </sources>
281 </configuration>
282 </execution>
283 </executions>
284 </plugin>
285 <plugin>
Lathishc05ff962020-02-12 14:46:01 +0000286 <groupId>org.jacoco</groupId>
287 <artifactId>jacoco-maven-plugin</artifactId>
elinuxhenrikb76f5142020-04-06 13:01:00 +0200288 <version>${jacoco-maven-plugin.version}</version>
Lathishc05ff962020-02-12 14:46:01 +0000289 <executions>
290 <execution>
291 <id>default-prepare-agent</id>
292 <goals>
293 <goal>prepare-agent</goal>
294 </goals>
295 </execution>
296 <execution>
297 <id>default-report</id>
298 <phase>prepare-package</phase>
299 <goals>
300 <goal>report</goal>
301 </goals>
302 </execution>
303 </executions>
304 </plugin>
305 <plugin>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100306 <groupId>io.fabric8</groupId>
307 <artifactId>docker-maven-plugin</artifactId>
308 <version>${docker-maven-plugin}</version>
309 <inherited>false</inherited>
310 <executions>
311 <execution>
elinuxhenrik030d0102021-12-13 16:17:12 +0100312 <id>generate-a1-policy-management-service-image</id>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100313 <phase>package</phase>
314 <goals>
315 <goal>build</goal>
316 </goals>
317 <configuration>
318 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
319 <images>
320 <image>
elinuxhenrik030d0102021-12-13 16:17:12 +0100321 <name>o-ran-sc/nonrtric-a1-policy-management-service:${project.version}</name>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100322 <build>
323 <cleanup>try</cleanup>
324 <contextDir>${basedir}</contextDir>
325 <dockerFile>Dockerfile</dockerFile>
326 <args>
327 <JAR>${project.build.finalName}.jar</JAR>
328 </args>
329 <tags>
330 <tag>${project.version}</tag>
331 </tags>
332 </build>
333 </image>
334 </images>
335 </configuration>
336 </execution>
337 <execution>
elinuxhenrik030d0102021-12-13 16:17:12 +0100338 <id>push-a1-policy-management-service-image</id>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100339 <goals>
340 <goal>build</goal>
341 <goal>push</goal>
342 </goals>
343 <configuration>
344 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
345 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
346 <images>
347 <image>
elinuxhenrik030d0102021-12-13 16:17:12 +0100348 <name>o-ran-sc/nonrtric-a1-policy-management-service:${project.version}</name>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100349 <build>
350 <contextDir>${basedir}</contextDir>
351 <dockerFile>Dockerfile</dockerFile>
352 <args>
353 <JAR>${project.build.finalName}.jar</JAR>
354 </args>
355 <tags>
356 <tag>${project.version}</tag>
YongchaoWu7b9db852020-02-07 09:25:43 +0100357 <tag>latest</tag>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100358 </tags>
359 </build>
360 </image>
361 </images>
362 </configuration>
363 </execution>
364 </executions>
365 </plugin>
elinuxhenrik284d3212020-02-07 16:21:06 +0100366 <!-- support sonar in multi-module project -->
367 <plugin>
368 <groupId>org.sonarsource.scanner.maven</groupId>
369 <artifactId>sonar-maven-plugin</artifactId>
370 <version>${sonar-maven-plugin.version}</version>
371 </plugin>
PatrikBuhr13c62d12020-11-11 13:14:57 +0100372 <plugin>
373 <groupId>org.codehaus.mojo</groupId>
374 <artifactId>exec-maven-plugin</artifactId>
elinuxhenrikdd060b82021-08-24 13:26:10 +0200375 <version>${exec-maven-plugin.version}</version>
PatrikBuhr13c62d12020-11-11 13:14:57 +0100376 <executions>
377 <execution>
378 <id>git submodule update</id>
379 <phase>initialize</phase>
380 <configuration>
381 <executable>git</executable>
382 <arguments>
383 <argument>submodule</argument>
384 <argument>update</argument>
385 <argument>--init</argument>
386 <argument>--recursive</argument>
387 </arguments>
388 </configuration>
389 <goals>
390 <goal>exec</goal>
391 </goals>
392 </execution>
393 <execution>
394 <id>copy configuration</id>
395 <phase>initialize</phase>
396 <configuration>
397 <executable>cp</executable>
398 <arguments>
399 <argument>-r</argument>
400 <argument>../onap/oran/a1-policy-management/config</argument>
401 <argument>.</argument>
402 </arguments>
403 </configuration>
404 <goals>
405 <goal>exec</goal>
406 </goals>
407 </execution>
408 </executions>
409 </plugin>
PatrikBuhr1b8d76d2020-01-30 16:10:19 +0100410 </plugins>
411 </build>
412 <issueManagement>
413 <system>JIRA</system>
414 <url>https://jira.o-ran-sc.org/</url>
415 </issueManagement>
PatrikBuhrfbdd3372021-08-18 14:16:26 +0200416</project>