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.4.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.7.4</immutable.version>
52 <sdk.version>1.1.6</sdk.version>
53 <swagger.version>2.0.0</swagger.version>
54 <json.version>20180130</json.version>
55 <commons-net.version>3.3</commons-net.version>
56 <awaitility.version>4.0.1</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.9</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>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-starter-web</artifactId>
71 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-starter-thymeleaf</artifactId>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter-webflux</artifactId>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-devtools</artifactId>
81 <optional>true</optional>
84 <groupId>org.springframework</groupId>
85 <artifactId>spring-webflux</artifactId>
88 <groupId>io.swagger.core.v3</groupId>
89 <artifactId>swagger-jaxrs2</artifactId>
90 <version>${swagger.version}</version>
93 <groupId>io.swagger.core.v3</groupId>
94 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
95 <version>${swagger.version}</version>
98 <groupId>javax.xml.bind</groupId>
99 <artifactId>jaxb-api</artifactId>
102 <groupId>org.immutables</groupId>
103 <artifactId>value</artifactId>
104 <version>${immutable.version}</version>
105 <scope>provided</scope>
108 <groupId>org.immutables</groupId>
109 <artifactId>gson</artifactId>
110 <version>${immutable.version}</version>
113 <groupId>org.json</groupId>
114 <artifactId>json</artifactId>
115 <version>${json.version}</version>
118 <groupId>commons-net</groupId>
119 <artifactId>commons-net</artifactId>
120 <version>${commons-net.version}</version>
122 <!-- Actuator dependencies -->
124 <groupId>org.springframework.boot</groupId>
125 <artifactId>spring-boot-starter-actuator</artifactId>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-starter-test</artifactId>
134 <groupId>org.springframework.boot</groupId>
135 <artifactId>spring-boot-configuration-processor</artifactId>
136 <optional>true</optional>
139 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
140 <artifactId>cbs-client</artifactId>
141 <version>${sdk.version}</version>
144 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
145 <artifactId>dmaap-client</artifactId>
146 <version>${sdk.version}</version>
149 <groupId>org.projectlombok</groupId>
150 <artifactId>lombok</artifactId>
151 <scope>provided</scope>
154 <groupId>com.squareup.okhttp3</groupId>
155 <artifactId>mockwebserver</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.awaitility</groupId>
172 <artifactId>awaitility</artifactId>
173 <version>${awaitility.version}</version>
177 <groupId>io.projectreactor</groupId>
178 <artifactId>reactor-test</artifactId>
182 <groupId>org.junit.jupiter</groupId>
183 <artifactId>junit-jupiter-engine</artifactId>
187 <groupId>org.mockito</groupId>
188 <artifactId>mockito-junit-jupiter</artifactId>
192 <groupId>org.mockito</groupId>
193 <artifactId>mockito-core</artifactId>
197 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
198 <artifactId>dmaapClient</artifactId>
199 <version>${version.dmaap}</version>
202 <groupId>javax.ws.rs</groupId>
203 <artifactId>javax.ws.rs-api</artifactId>
204 <version>${javax.ws.rs-api.version}</version>
207 <groupId>org.glassfish.jersey.inject</groupId>
208 <artifactId>jersey-hk2</artifactId>
214 <groupId>org.springframework.boot</groupId>
215 <artifactId>spring-boot-maven-plugin</artifactId>
218 <groupId>net.revelc.code.formatter</groupId>
219 <artifactId>formatter-maven-plugin</artifactId>
220 <version>${formatter-maven-plugin.version}</version>
222 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
224 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
225 spotless:apply process-sources -->
228 <groupId>com.diffplug.spotless</groupId>
229 <artifactId>spotless-maven-plugin</artifactId>
230 <version>${spotless-maven-plugin.version}</version>
233 <removeUnusedImports />
235 <order>com,java,javax,org</order>
239 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
240 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-surefire-plugin</artifactId>
247 <skipTests>false</skipTests>
251 <artifactId>maven-failsafe-plugin</artifactId>
254 <groupId>org.codehaus.mojo</groupId>
255 <artifactId>build-helper-maven-plugin</artifactId>
259 <phase>generate-sources</phase>
261 <goal>add-source</goal>
265 <source>${project.build.directory}/generated-sources/annotations/</source>
272 <groupId>org.jacoco</groupId>
273 <artifactId>jacoco-maven-plugin</artifactId>
274 <version>0.8.4</version>
277 <id>default-prepare-agent</id>
279 <goal>prepare-agent</goal>
283 <id>default-report</id>
284 <phase>prepare-package</phase>
292 <groupId>io.fabric8</groupId>
293 <artifactId>docker-maven-plugin</artifactId>
294 <version>${docker-maven-plugin}</version>
295 <inherited>false</inherited>
298 <id>generate-policy-agent-image</id>
299 <phase>package</phase>
304 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
307 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
309 <cleanup>try</cleanup>
310 <contextDir>${basedir}</contextDir>
311 <dockerFile>Dockerfile</dockerFile>
313 <JAR>${project.build.finalName}.jar</JAR>
316 <tag>${project.version}</tag>
324 <id>push-policy-agent-image</id>
330 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
331 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
334 <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
336 <contextDir>${basedir}</contextDir>
337 <dockerFile>Dockerfile</dockerFile>
339 <JAR>${project.build.finalName}.jar</JAR>
342 <tag>${project.version}</tag>
352 <!-- support sonar in multi-module project -->
354 <groupId>org.sonarsource.scanner.maven</groupId>
355 <artifactId>sonar-maven-plugin</artifactId>
356 <version>${sonar-maven-plugin.version}</version>
361 <system>JIRA</system>
362 <url>https://jira.o-ran-sc.org/</url>