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.2.7.RELEASE</version>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>policy-agent</artifactId>
34 <version>1.0.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>2.9.2</springfox.version>
51 <immutable.version>2.8.2</immutable.version>
52 <sdk.version>1.1.6</sdk.version>
53 <swagger.version>2.0.0</swagger.version>
54 <json.version>20190722</json.version>
55 <commons-net.version>3.6</commons-net.version>
56 <awaitility.version>4.0.2</awaitility.version>
57 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
58 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
59 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
60 <docker-maven-plugin>0.30.0</docker-maven-plugin>
61 <version.dmaap>1.1.11</version.dmaap>
62 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
63 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
64 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
68 <groupId>org.springframework.boot</groupId>
69 <artifactId>spring-boot-starter-web</artifactId>
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-starter-thymeleaf</artifactId>
76 <groupId>org.springframework.boot</groupId>
77 <artifactId>spring-boot-starter-webflux</artifactId>
80 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-aop</artifactId>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-devtools</artifactId>
86 <optional>true</optional>
89 <groupId>org.springframework</groupId>
90 <artifactId>spring-webflux</artifactId>
93 <groupId>io.swagger.core.v3</groupId>
94 <artifactId>swagger-jaxrs2</artifactId>
95 <version>${swagger.version}</version>
98 <groupId>io.swagger.core.v3</groupId>
99 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
100 <version>${swagger.version}</version>
103 <groupId>javax.xml.bind</groupId>
104 <artifactId>jaxb-api</artifactId>
107 <groupId>org.immutables</groupId>
108 <artifactId>value</artifactId>
109 <version>${immutable.version}</version>
110 <scope>provided</scope>
113 <groupId>org.immutables</groupId>
114 <artifactId>gson</artifactId>
115 <version>${immutable.version}</version>
118 <groupId>org.json</groupId>
119 <artifactId>json</artifactId>
120 <version>${json.version}</version>
123 <groupId>commons-net</groupId>
124 <artifactId>commons-net</artifactId>
125 <version>${commons-net.version}</version>
127 <!-- Actuator dependencies -->
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-starter-actuator</artifactId>
134 <groupId>org.springframework.boot</groupId>
135 <artifactId>spring-boot-starter-test</artifactId>
139 <groupId>org.springframework.boot</groupId>
140 <artifactId>spring-boot-configuration-processor</artifactId>
141 <optional>true</optional>
144 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
145 <artifactId>cbs-client</artifactId>
146 <version>${sdk.version}</version>
149 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
150 <artifactId>dmaap-client</artifactId>
151 <version>${sdk.version}</version>
154 <groupId>org.projectlombok</groupId>
155 <artifactId>lombok</artifactId>
156 <scope>provided</scope>
159 <groupId>com.squareup.okhttp3</groupId>
160 <artifactId>mockwebserver</artifactId>
163 <!--REQUIRED TO GENERATE DOCUMENTATION -->
165 <groupId>io.springfox</groupId>
166 <artifactId>springfox-swagger2</artifactId>
167 <version>${springfox.version}</version>
170 <groupId>io.springfox</groupId>
171 <artifactId>springfox-swagger-ui</artifactId>
172 <version>${springfox.version}</version>
176 <groupId>org.awaitility</groupId>
177 <artifactId>awaitility</artifactId>
178 <version>${awaitility.version}</version>
182 <groupId>io.projectreactor</groupId>
183 <artifactId>reactor-test</artifactId>
187 <groupId>org.junit.jupiter</groupId>
188 <artifactId>junit-jupiter-engine</artifactId>
192 <groupId>org.mockito</groupId>
193 <artifactId>mockito-junit-jupiter</artifactId>
197 <groupId>org.mockito</groupId>
198 <artifactId>mockito-core</artifactId>
202 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
203 <artifactId>dmaapClient</artifactId>
204 <version>${version.dmaap}</version>
207 <groupId>javax.ws.rs</groupId>
208 <artifactId>javax.ws.rs-api</artifactId>
209 <version>${javax.ws.rs-api.version}</version>
212 <groupId>org.glassfish.jersey.inject</groupId>
213 <artifactId>jersey-hk2</artifactId>
219 <groupId>org.springframework.boot</groupId>
220 <artifactId>spring-boot-maven-plugin</artifactId>
223 <groupId>net.revelc.code.formatter</groupId>
224 <artifactId>formatter-maven-plugin</artifactId>
225 <version>${formatter-maven-plugin.version}</version>
227 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
229 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
230 spotless:apply process-sources -->
233 <groupId>com.diffplug.spotless</groupId>
234 <artifactId>spotless-maven-plugin</artifactId>
235 <version>${spotless-maven-plugin.version}</version>
238 <removeUnusedImports />
240 <order>com,java,javax,org</order>
244 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
245 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-surefire-plugin</artifactId>
252 <skipTests>false</skipTests>
256 <artifactId>maven-failsafe-plugin</artifactId>
259 <groupId>org.codehaus.mojo</groupId>
260 <artifactId>build-helper-maven-plugin</artifactId>
264 <phase>generate-sources</phase>
266 <goal>add-source</goal>
270 <source>${project.build.directory}/generated-sources/annotations/</source>
277 <groupId>org.jacoco</groupId>
278 <artifactId>jacoco-maven-plugin</artifactId>
279 <version>${jacoco-maven-plugin.version}</version>
282 <id>default-prepare-agent</id>
284 <goal>prepare-agent</goal>
288 <id>default-report</id>
289 <phase>prepare-package</phase>
297 <groupId>io.fabric8</groupId>
298 <artifactId>docker-maven-plugin</artifactId>
299 <version>${docker-maven-plugin}</version>
300 <inherited>false</inherited>
303 <id>generate-policy-agent-image</id>
304 <phase>package</phase>
309 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
312 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
314 <cleanup>try</cleanup>
315 <contextDir>${basedir}</contextDir>
316 <dockerFile>Dockerfile</dockerFile>
318 <JAR>${project.build.finalName}.jar</JAR>
321 <tag>${project.version}</tag>
329 <id>push-policy-agent-image</id>
335 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
336 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
339 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
341 <contextDir>${basedir}</contextDir>
342 <dockerFile>Dockerfile</dockerFile>
344 <JAR>${project.build.finalName}.jar</JAR>
347 <tag>${project.version}</tag>
357 <!-- support sonar in multi-module project -->
359 <groupId>org.sonarsource.scanner.maven</groupId>
360 <artifactId>sonar-maven-plugin</artifactId>
361 <version>${sonar-maven-plugin.version}</version>
366 <system>JIRA</system>
367 <url>https://jira.o-ran-sc.org/</url>